projects
/
attachcheck
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added documentation, licensing, and renamed the files.
[attachcheck]
/
attachcheck
diff --git
a/attachment_checker
b/attachcheck
similarity index 92%
rename from
attachment_checker
rename to
attachcheck
index e99d23df8132b6e6f30cdb0254a01b3bc03fc25d..c72adbfd92ac452a307e50a266bc169155624404 100644
(file)
--- a/
attachment_checker
+++ b/
attachcheck
@@
-1,15
+1,14
@@
#!/usr/bin/env python
#!/usr/bin/env python
-# (c) 2004 -- Benjamin Mako Hill <mako@bork.hampshire.edu>
+# 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 <mako@bork.hampshire.edu>
+#
Author/Software Homepage at: http://mako.cc
__copyright__ = "Copyright (c) 2004 Benjamin Mako Hill"
__author__ = "Benjamin Mako Hill <mako@debian.org>"
__copyright__ = "Copyright (c) 2004 Benjamin Mako Hill"
__author__ = "Benjamin Mako Hill <mako@debian.org>"
-import re
-
### Configuration Options
###########################################
### 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
# 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 sys
import os
import email
+import re
## SUB: send message
def send_message():
## SUB: send message
def send_message():
Benjamin Mako Hill
||
Want to submit a patch?