Re: [Mimedefang] MIME::Head question

2013-12-12 Thread David F. Skoll
On Thu, 12 Dec 2013 12:06:43 -0700 Philip Prindeville wrote: > If I want to add a header via: > $entity->head()->add('Received', "some-multiline-folded-text"); MIME::Head is really a Mail::Header and it wants to take care of folding the line on your behalf. You have to give it a long unfolded

[Mimedefang] MIME::Head question

2013-12-12 Thread Philip Prindeville
If I want to add a header via: $entity->head()->add(‘Received’, “some-multiline-folded-text”); how do I encode the header value such that newlines aren’t stripped? Do I need \r\n\t ? Or \n\t ? I tried both but couldn’t get either to work. Thanks.