###########################################
# location of the sendmail binary
-sendmail = "/usr/sbin/sendmail -oi"
+sendmail = "/usr/sbin/sendmail"
# list of mimetype which are, for the sake of this program, not
# attachments
global sendmail
sendmail = sendmail + " " + " ".join( sys.argv[1:] )
- mailpipe = os.popen("%s -t" % sendmail_with_args, 'w')
+ mailpipe = os.popen("%s" % sendmail, 'w')
mailpipe.write( message_string )
sys.exit( mailpipe.close() )
# check for the confirmation
if re.search( r'Subject: CONFIRM', message_string ):
- message_string = re.sub( r'(Subject: )(CONFIRM )(.*?)\n',
+ message_string = re.sub( r'(Subject: )(CONFIRM)(.*?)\n',
r'\1\3\n', message_string )
send_message()