]> projects.mako.cc - attachcheck/commitdiff
Have attach check pass sendmail options along to sendmail to turn things
author<mako@atdot.cc> <>
Mon, 25 Jul 2005 12:07:44 +0000 (08:07 -0400)
committer<mako@atdot.cc> <>
Mon, 25 Jul 2005 12:07:44 +0000 (08:07 -0400)
like BCC back on which have been broken.

attachcheck

index 60da1569d6331f87af2b81fda6eb6f17baaf7c58..ebcd6be9a66f7dc75cdf936207423dc9773d107a 100644 (file)
@@ -16,7 +16,7 @@ __author__ = "Benjamin Mako Hill <mako@debian.org>"
 ###########################################
 
 # location of the sendmail binary
 ###########################################
 
 # 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 mimetype which are, for the sake of this program, not
 # attachments
@@ -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 -t" % sendmail_with_args, 'w')
     mailpipe.write( message_string )
     sys.exit( mailpipe.close() )
 
     mailpipe.write( message_string )
     sys.exit( mailpipe.close() )
 

Benjamin Mako Hill || Want to submit a patch?