Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: add X-MSMail-Priority

...

No Format

# Remove low priority headers by piping through formail.
# If end-users filter on low priority headers, this will avoid
# false positives.  This is a procmail "or" rule requiring any
# of the threefour headers to trigger.

:0fw: formail1.lock
* ^X-Priority: 5|\
  ^Priority: Non-Urgent|\
  ^Importance: low
| formail -I "X-Priority" -I "Priority" -I "Importance" -I "X-MSMail-Priority"

:0fw: spamassassin.lock
* < 256000
| spamassassin

# Pipe likely spam through formail adding
# the threefour headers that represent low priority

:0fw: formail2.lock
* ^X-Spam-Flag: YES
| formail -I "X-Priority: 5" -I "Priority: Non-Urgent" -I "Importance: low" -I "X-MSMail-Priority: Low"

The same with maildrop:

No Format
if ($SIZE < 256000)
{
   exception {
     xfilter "spamassassin"
   }
}

if (/^X-Spam-Flag: YES$/)
{
   # add the threefour headers that represent low priority
   exception {
     xfilter 'reformail -I "X-Priority: 5" \
                        -I "Priority: Non-Urgent"
                        -I "Importance: low" \
                        -I "X-MSMail-Priority: Low"'
   }
}
else
{
   if (/^X-Priority: 5$/ || \
       /^Priority: Non-Urgent$/ || \
       /^Importance: low$/ || \
       /^X-MSMail-Priority: Low$/)
   {
     # Remove low priority headers by piping through reformail.
     # If end-users filter on low priority headers, this will avoid
     # false positives.
     exception {
       xfilter 'reformail -I "X-Priority:" \
                          -I "Priority:" \
                          -I "Importance:" \
                          -I "X-MSMail-Priority"'
   }
}