On Wed, Dec 10, 2008 at 10:57:02AM +0100, Rocco Rutte wrote: > what if the header > you're printing already is illegal by containing a newline like so and > is overly long: > > Message-ID: <foo@\nbar.domain> > > It hope does a sane thing now but won't with a simple fprintf() leaving > a broken header either way. It seems that during parsing any illegal characters within the message-id are stripped by mutt_extract_message_id. Therefore the message-id passed to mutt_write_rfc822_header should be valid and printable using fprintf. Thanks, -- Peter
Attachment:
signature.asc
Description: Digital signature