X-Git-Url: https://projects.mako.cc/source/attachcheck/blobdiff_plain/4f860295b5c047929844843b1c46863a25f0ad66:/attachment_checker..a448f42f5fc2c3a63465e32edb1ccf99aed72fa6:/attachcheck?ds=sidebyside diff --git a/attachment_checker b/attachcheck similarity index 92% rename from attachment_checker rename to attachcheck index e99d23d..c72adbf 100644 --- a/attachment_checker +++ b/attachcheck @@ -1,15 +1,14 @@ #!/usr/bin/env python -# (c) 2004 -- Benjamin Mako Hill +# AttachCheck -- A MTA wrapper to help check outgoing email for +# forgotten attachments. -# TODO: -# * check for an attachment overrides line as an alternative type of option +# (c) 2005 -- Benjamin Mako Hill +# Author/Software Homepage at: http://mako.cc __copyright__ = "Copyright (c) 2004 Benjamin Mako Hill" __author__ = "Benjamin Mako Hill " -import re - ### Configuration Options ########################################### @@ -22,15 +21,16 @@ 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)?\b(?im)' ] +attachment_regexes = [ r'\battach(ed|ment|ing)?\b(?im)' ] -### No Need To Edit Below This Line +### No Edit Below This Line ########################################### import sys import os import email +import re ## SUB: send message def send_message():