Removed the requirement that there be whitespace between CONFIRM and
[attachcheck] / attachcheck
old mode 100644 (file)
new mode 100755 (executable)
index 60da156..6a625e9
@@ -38,7 +38,11 @@ import re
 
 ## SUB: send message
 def send_message(): 
 
 ## 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" % sendmail, 'w')
     mailpipe.write( message_string )
     sys.exit( mailpipe.close() )
 
     mailpipe.write( message_string )
     sys.exit( mailpipe.close() )
 
@@ -111,7 +115,7 @@ if attachment_expected:
         # check for the confirmation
 
         if re.search( r'Subject: CONFIRM', message_string ):
         # 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()
 
                                      r'\1\3\n', message_string )
             send_message()
 

Benjamin Mako Hill || Want to submit a patch?