###########################################
# location of the sendmail binary
-sendmail = "/usr/sbin/sendmail"
+sendmail = "/usr/sbin/sendmail -oi"
# list of mimetype which are, for the sake of this program, not
# attachments
# list of regular expressions which we will view as being indicative
# of an attachment
-attachment_regexes = [ r'\battach(ed|ment|ing)?\b(?im)' ]
+attachment_regexes = [ r'\battach(ed|ment|ing)?\b(?im)',
+ r'\balleg(o|at[oaie]|ando)' ]
### No Edit Below This Line
## SUB: send message
def send_message():
- mailpipe = os.popen("%s -t" % sendmail, 'w')
+
+ global sendmail
+ sendmail = sendmail + " " + " ".join( sys.argv[1:] )
+
+ mailpipe = os.popen("%s -t" % sendmail_with_args, 'w')
mailpipe.write( message_string )
sys.exit( mailpipe.close() )