projects
/
attachcheck
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ec0cb0c
)
minor tweak to make the last patch actually land...
master
author
Benjamin Mako Hill
<mako@atdot.cc>
Thu, 13 Apr 2023 21:11:28 +0000
(14:11 -0700)
committer
Benjamin Mako Hill
<mako@atdot.cc>
Thu, 13 Apr 2023 21:11:28 +0000
(14:11 -0700)
attachcheck
patch
|
blob
|
history
diff --git
a/attachcheck
b/attachcheck
index 86f110aeaa6cae27c3b2819fee42a77e997da699..19159e456b692c37944fc37af05bbaca6598bb8c 100755
(executable)
--- a/
attachcheck
+++ b/
attachcheck
@@
-34,11
+34,11
@@
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'
(?im)
\battach(ed|ment|ing)?\b',
- r'
(?im)
\balleg(o|at[oaie]|ando)' ]
+attachment_regexes = [ r'\battach(ed|ment|ing)?\b',
+ r'\balleg(o|at[oaie]|ando)' ]
# ignore quoted text (which might refer to attachments in previous emails)
# ignore quoted text (which might refer to attachments in previous emails)
-attachment_regexes = [ r'(^|^[^\n>].*)' + x for x in attachment_regexes ]
+attachment_regexes = [ r'(
?im)(
^|^[^\n>].*)' + x for x in attachment_regexes ]
### No Edit Below This Line
###########################################
### No Edit Below This Line
###########################################
Benjamin Mako Hill
||
Want to submit a patch?