]> projects.mako.cc - attachcheck/commitdiff
minor tweak to make the last patch actually land... master
authorBenjamin Mako Hill <mako@atdot.cc>
Thu, 13 Apr 2023 21:11:28 +0000 (14:11 -0700)
committerBenjamin Mako Hill <mako@atdot.cc>
Thu, 13 Apr 2023 21:11:28 +0000 (14:11 -0700)
attachcheck

index 86f110aeaa6cae27c3b2819fee42a77e997da699..19159e456b692c37944fc37af05bbaca6598bb8c 100755 (executable)
@@ -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
-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)
-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
 ###########################################

Benjamin Mako Hill || Want to submit a patch?