Message contains invalid header

Henrique de Moraes Holschuh hmh at debian.org
Fri Oct 27 14:32:14 EDT 2006


On Fri, 27 Oct 2006, Marten Lehmann wrote:
> especially this appears very often. Does Cyrus actually mean the whole 
> message, or message body or header? What can I do with existing messages?

Last time I had a problem like this, I piped them all through tr -d '\000'.
Nowadays, postfix is set to reject this crap before it comes near Cyrus in
some places, and in others (where we need the messages), we strip the NULs
away shamelessly.

After all, common courtesy of not modifying data in-transit extends only to
email, and whatever something with embedded NULs is, it certainly ain't
email.  They just resemble email enough that they can (often) be converted
into email with some NUL-stripping ;-)

The same goes to messages with empty message-id headers. We strip them away
so that they become email ;p

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh


More information about the Info-cyrus mailing list