Here's a revised version of the procmail stuff I use to add X-message-flag headers with spam reports so that Outlook can view them.
The first recipe is the same as the original, slightly modified to eliminate an extra space in the X-message-flag header. The second recipe takes the X-message-flag header, looks for scores less than 10 (i.e. 6 or 7.8) and adds a leading zero. This way everything has a 2-digit score, so now I can truly sort by SpamAssassin score in Outlook folders. It's amazing how easy it is to sort through the spam when it is sorted from least to most spammy - false positives, if any, are always at the top. # Add x-message-flag header to flagged spam :0fw * ^X-Spam-Report:.*\/[0-9].*; | formail -I "X-message-flag: $MATCH" -I "X-Spam-Status: Yes" # Add leading zero to x-message-flag for scores < 10 :0fw * ^X-message-flag: +\/[0-9][\. ].* | formail -I "X-message-flag: 0$MATCH" Last but not least, here's one I use that's probably too specialized for most people. This looks for messages that scored 4.0 or higher but aren't flagged as spam, and adds an X-message-flag header with the score. This helps me look for (a) messages that might be spam and (b) messages that were nearly false positives. Note: this one requires the X-Spam-Level header as written so it won't work with older versions of SA. # Add x-message-flag to 4.0 scores and up even if not flagged :0fw * ^X-Spam-Status: No,\/[^\n$]*required=[0-9.]* * ^X-Spam-Level: \*\*\*\* | formail -I "X-message-flag: $MATCH" -- michael moncur mgm at starlingtech.com http://www.starlingtech.com/ "In this business you either sink or swim or you don't." -- David Smith _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk