From: Date: Mon, 25 Jul 2005 12:07:44 +0000 (-0400) Subject: Have attach check pass sendmail options along to sendmail to turn things X-Git-Url: https://projects.mako.cc/source/attachcheck/commitdiff_plain/23604a138fba0b335152f5fed4c675fac58b0bfc?hp=023d680cdab18123a86099680f3ac33f95196b67 Have attach check pass sendmail options along to sendmail to turn things like BCC back on which have been broken. --- diff --git a/attachcheck b/attachcheck index 60da156..ebcd6be 100644 --- a/attachcheck +++ b/attachcheck @@ -16,7 +16,7 @@ __author__ = "Benjamin Mako Hill " ########################################### # 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 @@ -38,7 +38,11 @@ import re ## 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() )