SA Bugzilla – Bug 133
option to set X-message-flag?
Last modified: 2002-03-26 01:47:32 UTC
If a message has an X-message-flag header, Outlook will display the text of that header in a small yellow box with the headers. This would be a good way to indicate reasons for marking a message as spam, when using a tearse report in the subject.
I have this set up already as a procmail hack, but built-in functionality would be nice. One implementation note: Currently mine sends an X-message-flag header like "7.8 hits; 6 required" - if SA could use a leading zero for scores < 10, brain-damaged Outlook could sort the messages by score correctly. Also note that there are some known and unknown issues getting Outlook to consistently display this header. In my procmail code, I had to replace SA's default X-Spam-Status header with a simple "Yes" or else Outlook would ignore the X-message-flag header. Outlook also ignores the message flag header when messages are viewed in an IMAP folder - this trick works only with POP3 mail. Procmail code follows - I use this after the main :0fw line for SpamAssassin and before the delivery rules. This just grabs part of the X-Spam-Report field. :0fw * ^X-Spam-Report: \/.*; | /usr/bin/formail -I "X-message-flag: $MATCH" -I "X-Spam-Status: Yes"
I had forgotten about this only working for POP mailboxes. I just tried it now and confirmed that it didn't work (I don't usually use outlook, but many people here do). I sent myself a test message with an "X-message-flag:" header, and it didn't display the message. However, if I clicked on the flag toolbar button, the default message to use for the flag was the one I had in the header. After setting the flag, the message displayed fine. It looks like Outlook only looks at the X-message-flag: header if the message has the \Flagged flag set. AFAIK, you can't set message flags during delivery. Now UW IMAP stores flags as extra headers in the mbox file, so you can probably work around the problem there by setting the appropriate header. However, I am using Cyrus, so this doesn't really help me -- might be useful to other people though. /me wonders if a sieve script can set message flags
*** This bug has been marked as a duplicate of 104 ***