[Mimedefang] action_wrap_header

Mickey Hill mickey at rudolphtire.com
Wed Jan 23 11:16:27 EST 2002


You are exactly right.  RFC 2822 refers to "folding" (inserting a CRLF
before white space, and leaving the whitespace at the beginning of the
next line) and "unfolding" (removing any CRLF that is immediately
followed by any white space).

My intention was actually not to just fold/wrap a single long line
containing the spam report, which wouldn't appear formatted the way I
want it, but rather to make a nicely formatted, easier to read multiline
report in the header.  So, perhaps what I am doing would be more
appropriately called action_add_multiline_header?

All of this is assuming that the header is even an appropriate place to
put such a potentially large amount of information. :)  Is there a
specified limit on the total length of the headers?

-------------------------
Mickey Hill
Rudolph's Inc
2021 Rob Mason Rd
PO Box 69
Murray KY 42071 USA
Phone (270) 753-0686 x124
Fax   (270) 753-0753
mickey at rudolphtire.com
www.rudolphtire.com


> -----Original Message-----
> From: mimedefang-admin at lists.roaringpenguin.com 
> [mailto:mimedefang-admin at lists.roaringpenguin.com] On Behalf 
> Of David F. Skoll
> Sent: Wednesday, January 23, 2002 10:48 AM
> To: mimedefang at lists.roaringpenguin.com
> Subject: Re: [Mimedefang] action_wrap_header
> 
> 
> Hi,
> 
> > X-Spam-Score: 7.1, Required: 5
> > X-Spam-Tests: PURE_PROFIT,OPPORTUNITY
> > X-Spam-Report: SPAM: ---- Start SpamAssassin results
> ...
> > X-Spam-Report: SPAM: ---- End of SpamAssassin results
> 
> That's a neat trick, but it's not header-wrapping in the RFC sense.
> The Internet mail format RFC specifies that long headers can 
> be continued
> on subsequent lines by beginning each continued line with whitespace
> (or maybe a tab character is required.)  So what you'd want 
> for a wrapped
> header is more like this:
> 
> X-Wrapped-Header: Here is a very long header with lots of pointless
> 		text just to show how you can continue lines according
> 		to the RFC
> X-Next-Header: And here's the next header.
> 
> However, for X-Spam-Report: headers, your solution is probably
> fine.
> 
> Regards,
> 
> David.
> 
> _______________________________________________
> MIMEDefang mailing list
> MIMEDefang at lists.roaringpenguin.com
> http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
> 





More information about the MIMEDefang mailing list