Factor trim format function out Also clarify that it trims both, leading and trailing whitespace. (Note that it is a special trim function. We cannot simply replace it with sbr/trim.c. Nonetheless, its readability is somehow bad.)
Add %(unmailto) format function for List-Post headers With the unmailto format function it is possible to extract the address from a List-Post header, which e.g. is: List-Post: <mailto:mmh@marmaro.de> Applying %(unmailto{list-post}) extracts: ``mmh@marmaro.de'', which then can be used as recipient address for list replies. A format file (to be used with ``repl -form repllistcomps'') is included.
Fix spelling errors, including binaries ones Signed-off-by: Dmitry Bogatov <KAction@gnu.org>
Fix order of (trim) and (decode) in repl*comps Before MH had (decode), the format escapes used to be: %(void{comp})%(trim)%(putstr) i.e. set the internal str register to the component text, trim trailing whitespace from it, then print the value. Later (putstr) was simply replaced by (decode), which first RFC-2047 decodes the string and then prints it (if it is the outermost function). That almost always produced the correct result. But this way the whitespace trimming is done at the wrong point. Correct is to first decode the string and then trim it. tests/scan/test-mh-format checks for that.
Cleanup manpage mh-format(5) - More suitable scan listing examples - Adjust paths - There are no ``local mh experts'' anymore in the mmh world - Add overview on the escape types - %(decode) does print str as well - Decode Subject header in the example - Further minor stuff
Fix spelling and encoding errors in manpages and an error message
Change some "nmh" into "mmh" in man pages This is to avoid confusion between nmh and mmh
Man pages: Replaced \*(lq and \*(rq with ` and '. Using the quotes directly is staight-forward and convenient to read and write.
Fixed a bunch of minor man page formating problems. (Revealed by `groff -ww'.) Pulled in from nmh. Thanks to David Levine.
mh-format.man5: Restored the warning placeholder. We must have lost it somewhen.
Removed support for Encrypted: headers, which were removed in RFC 2822. This is a relict from RFC 822.
Removed the -fcc switch from repl(1). None of comp, dist, forw has it, why should repl then have it? It likely had been added as the replcomps are not just copied but processed. It had been quite easy to add this feature but nobody went far enough to process components, distcomps, forwcomps as well to be able to have such an -fcc switch for those tools as well.
Scan listings shall not contain body content. Hence, removed this feature. Scan listings shall operator on message headers and non-message information only. Displaying the beginning of the body complicates everything too much. That's no surprise, because it's something completely different. If you want to examine the body, then use show(1)/mhshow(1). Changed the default scan formats accordingly.
Removed LBL compile condition (format: addtoseq).
Renames: s/+outbox/+sent/ and s/cc:/Cc:/ IMO ``sent'' specifies more exactly what it contains. ``outbox'' would mean to me that these messages are prepared for delivery, but are not already sent.
Reworked the man page system and some man page contents (mmh-intro). Now it's possible to have two equally named pages in two different sections. This appeared to be interesting for mmh(X), but I don't use it now. Let's see if we keep the new system or even rework it to become simpler.