From: Benjamin Mako Hill Date: Thu, 13 Apr 2023 21:11:28 +0000 (-0700) Subject: minor tweak to make the last patch actually land... X-Git-Url: https://projects.mako.cc/source/attachcheck/commitdiff_plain minor tweak to make the last patch actually land... --- diff --git a/attachcheck b/attachcheck index 86f110a..19159e4 100755 --- 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 -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 ###########################################