'mailfmt' is a Unix and Win32 tool for reformatting news and mail messages. It removes leading quotations strings (most often the '>' character, but this is user selectable from the command line) and wraps lines to a user specified width. This allows news or mail messages which have been extensively forwarded and/or quoted to be easily reformat- ted for ease of reading.
On Unix systems, 'mailfmt' reads from stdin and writes to stdout.
On Win32 systems, 'mailfmt' reads from the clipboard and then writes the results to the clipboard. This is really handy if your are running a GUI mail client. You cut the desired text (thereby placing it on the clipboard). Then you run 'mailfmt' - this is best done with a keyboard shortcut - Then paste back to your mail client and, voila!, your text has been reformatted.
On Win32 systems, the input and output can be reassigned to stdin and stdout using command line options.
'mailfmt' can be found at:
A FreeBSD port has also been submitted.