X-Git-Url: https://projects.mako.cc/source/attachcheck/blobdiff_plain/023d680cdab18123a86099680f3ac33f95196b67..6365b7fdcfabce5f929e2608deaab73bd3989142:/attachcheck diff --git a/attachcheck b/attachcheck old mode 100644 new mode 100755 index 60da156..5864de0 --- a/attachcheck +++ b/attachcheck @@ -3,14 +3,24 @@ # AttachCheck -- A MTA wrapper to help check outgoing email for # forgotten attachments. -# (c) 2005 -- Benjamin Mako Hill -# Author/Software Homepage at: http://mako.cc +# (c) 2004-2009 -- Benjamin Mako Hill +# Software Homepage at: http://mako.cc/projects/attachcheck -# This software comes with ABSOLUTELY NO WARRANTY. -# This is free software and is licensed under the GNU GPL. +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or (at +# your option) any later version. -__copyright__ = "Copyright (c) 2004 Benjamin Mako Hill" -__author__ = "Benjamin Mako Hill " +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +__copyright__ = "Copyright (c) 2004-2009 Benjamin Mako Hill" +__author__ = "Benjamin Mako Hill " ### Configuration Options ########################################### @@ -38,7 +48,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" % sendmail, 'w') mailpipe.write( message_string ) sys.exit( mailpipe.close() )