refusing bad mail based on headers?

Wil Cooley wcooley at nakedape.cc
Sun Nov 13 00:37:07 EST 2005


On Sat, 2005-11-12 at 22:32 -0500, Bill Kearney wrote:

> Is there a way to a) have cyrus clean up the headers or b) ignore then and
> perhaps somehow flag them for later clean up?

If you've identified the offending header, you could delete it with:

$ sed -i.bak -e '/^X-Message-Status/d' mailbox

Run that on each of the failing mailboxes.  First, however, you should
grep for the header with a line or two of trailing context (grep -A 2 -E
'^X-Message-Status') and verify that the none of them are longer than a
line.

Wil
-- 
Wil Cooley                                 wcooley at nakedape.cc
Naked Ape Consulting                        http://nakedape.cc
* * * * Linux, UNIX, Networking and Security Solutions * * * *
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.andrew.cmu.edu/mailman/private/info-cyrus/attachments/20051112/c3b189e1/attachment.bin


More information about the Info-cyrus mailing list