X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/c665eae75cbe272fbaca4a69135eebcc290b3278..738ccfc6ab6240ad466793412bfa15b7c6d80b25:/procmail/cleanup diff --git a/procmail/cleanup b/procmail/cleanup index 3eacdd7..b739291 100644 --- a/procmail/cleanup +++ b/procmail/cleanup @@ -1,17 +1,14 @@ -:0 -* ^X-Trained-As: \/(h|sp)am -{ TRAINED_AS=$MATCH } - -# remove all headers added in the *local* mail chain +# remove all headers added in the *local* mail chain: +# 1. added by this mailfilter +# (but not X-Tickle, X-Delayed, or X-Resubmitted) +# 2. added by the retraining system +# 3. added by offlineimap +# 4. added by the MUA :0 fw |$FORMAIL \ - # headers added by this mailfilter - -IX-EqDomain -IX-EqTo -IX-Justme \ - # headers added by the retraining system + -IX-EqDomain -IX-EqTo -IX-Justme -IX-Spamtrapped \ -IX-Trained-As \ - # headers added by offlineimap -IX-UID -IX-OfflineIMAP- \ - # headers added by the MUA -IX-Status -IStatus -IX-Keywords -IContent-Length # now should be idempotent