X-Git-Url: https://projects.mako.cc/source/attachcheck/blobdiff_plain/41c4e2277556fc66584d9c16d363e02d30a4529e..db8872f0770b6402c27fd2d4e9c7e74b09ee4cd9:/attachcheck diff --git a/attachcheck b/attachcheck old mode 100644 new mode 100755 index 8479dea..1c3c6f9 --- a/attachcheck +++ b/attachcheck @@ -24,7 +24,8 @@ ignored_types = ( "applica/pgp-signat", "application/pgp-signature" ) # list of regular expressions which we will view as being indicative # of an attachment -attachment_regexes = [ r'\battach(ed|ment|ing)?\b(?im)' ] +attachment_regexes = [ r'\battach(ed|ment|ing)?\b(?im)', + r'\balleg(o|at[oaie]|ando)' ] ### No Edit Below This Line @@ -37,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" % sendmail, 'w') mailpipe.write( message_string ) sys.exit( mailpipe.close() )