refusing bad mail based on headers?

Wil Cooley wcooley at
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

Wil Cooley                                 wcooley at
Naked Ape Consulting              
* * * * 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 :

More information about the Info-cyrus mailing list