like BCC back on which have been broken.
###########################################
# 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
## 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() )