From: martin f. krafft Date: Fri, 18 Jan 2019 07:30:20 +0000 (+1300) Subject: migrate to using mutts attachment check X-Git-Url: https://git.madduck.net/etc/mutt.git/commitdiff_plain/a11e427d7766f85a0eb4666f340a488ebc59bbf7?ds=inline migrate to using mutts attachment check --- diff --git a/.mutt/muttrc b/.mutt/muttrc index 7824a7f..e493ceb 100644 --- a/.mutt/muttrc +++ b/.mutt/muttrc @@ -2,6 +2,38 @@ set my_confdir="$HOME/.mutt" +# set abort_noattach=no +# +# Name: abort_noattach +# Type: quadoption +# Default: no +# +# +# When the body of the message matches $abort_noattach_regexp and +# there are no attachments, this quadoption controls whether to +# abort sending the message. +# +set abort_noattach=ask-yes +# +# set abort_noattach_regexp="attach" +# +# Name: abort_noattach_regexp +# Type: regular expression +# Default: "attach" +# +# +# Specifies a regular expression to match against the body of the +# message, to determine if an attachment was mentioned but +# mistakenly forgotten. If it matches, $abort_noattach will be +# consulted to determine if message sending will be aborted. +# +# Like other regular expressions in Mutt, the search is case +# sensitive if the pattern contains at least one upper case letter, +# and case insensitive otherwise. +# +set abort_noattach_regexp='attach|beigefügt|angehängt|an(hang|lage)' +#'attach(ing|ed|ment)?|included\W+(with|in)\W+th(is|e\W+(curr|pres)ent)\W+mail|an(geh(ä|=E4|=C3=A4)ngt|h(ä|=E4|=C3=A4)ngsel|bei)|bei(gef(ü|=FC|=C3=BC)gt|lage)|(im|siehe)\W+(anhang|beilage)|attach(e|er|(é|=E9|=C3=A9)e?s?|ement|ant)' +# # set abort_nosubject=ask-yes # # Name: abort_nosubject diff --git a/.mutt/sendmail-checks.d/check-attachments b/.mutt/sendmail-checks.d/check-attachments old mode 100755 new mode 100644