Hi Ken,
You'd have to deal with a header that would take up a lot of space.
Vertically? Otherwise "<foo> <bar>" and "<foo>\n <bar>" isn't a lot
different.
Also, if you want 'nice' formatting, you need something smarter that
knows about the length of the header (like what formataddr does).
Really, I think you could adapt most of the formataddr code, except
for splitting at commas. It may be that my concerns about "nice"
header formatting are not worthwhile.
Things that might complicate the code... I've come across Reference
headers in the past where the message IDs have been truncated by
something so they're '<foo@ba'. Not everything in the References header
is necessarily a simple message ID, e.g.
To: nmh-workers(_at_)nongnu(_dot_)org
From: Paul Fox <pgf(_at_)foxharp(_dot_)boston(_dot_)ma(_dot_)us>
In-reply-to:
<20140323103420(_dot_)CDA8A1F909(_at_)orac(_dot_)inputplus(_dot_)co(_dot_)uk>
(sfid-20140323_063434_994284_B0C77B71)
References:
<201403230404(_dot_)s2N44rO6012835(_at_)hedwig(_dot_)cmf(_dot_)nrl(_dot_)navy(_dot_)mil>
<20140323103420(_dot_)CDA8A1F909(_at_)orac(_dot_)inputplus(_dot_)co(_dot_)uk>
(sfid-20140323_063434_994284_B0C77B71)
Message-Id:
<20140323190121(_dot_)6B15B518037F(_at_)grass(_dot_)foxharp(_dot_)boston(_dot_)ma(_dot_)us>
Subject: Re: [Nmh-workers] mhshow flag: -combined ?
Date: Sun, 23 Mar 2014 15:01:21 -0400
I guess those "sfid"s are comments and legally OK?
--
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy
_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers