On Sat, 27 Mar 2004 14:36:56 -0800 "R. Joseph Newton" <[EMAIL PROTECTED]> wrote:
> I'll do some more scanning through my hdr directory to see how many > folded lines I actually see. Ooooh! I see The To line can also get > folded. I think the trick that I showed for testing for initial space > should work for that It is very clear that the input processing has > to use some sort of $curent_tag and$current_value scoped outside the > input loop to handle this., Headers like Received should indeed be > pulled aside for special handling, but I do not think you will find > that many in actual use. > A better design would have a general header scanner and return the unfolded header, since it is semantically what it is according to the standard. A high level design like: while (my $header = get_mail_header) { process header line here.... } Write get_mail_header to return the next valid header or undef at the end of the headers. -- Smoot Carl-Mitchell Systems/Network Architect email: [EMAIL PROTECTED] cell: +1 602 421 9005 home: +1 480 922 7313 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>