Re: bug-report1998-01-21 06:27:01
Not me :-P Seriously, on a related issue, it may be nice to gather contributions from users that have had to create preprocessors of various formats for use with mhonarc. Also, common MSGSEP and MHPATTERN resource settings will be useful. Contributions can be included in the FAQ. --ewh
In response to this remark I have taken a little effort to write a perlscript (perl4 and perl5) and some documentation for it in POD (Perls Own Documentation format).
From the documentation I copy the following introduction.
prsfrom is a tool meant to be used in conjunction with mhonarc. mhonarc extracts the date from a message from Date: or Received: fields from the message-header. The sender is extracted from a From: field. There are several cases when these fields are missing ( e.g. out-boxes of Eudora, DEC-mailx). In all these cases it is possible to extract the sender and the date from the message separator line and create a modified mailbox with From: and Date: fields The attachments are: 1) perl-script 2) HTML documentation (created from POD) 3) POD documentation source 4) Sample mailbox with missing From:/Date:/Received: fields regards (I have not subscribed to the mailling list) Drs A.R. Burgers Netherlands Energy Research Foundation ECN Phone: +31-224-564703 Renewable Energy, PV Cells & Modules Fax : +31-224-563214 P.O. Box 1 email: burgers(_at_)ecn(_dot_)nl 1755 ZG Petten, The Netherlands
prsfrom checks messages in mailbox input_mailbox (or standard input if input_mailbox is not specified) for the presence of Date:, Received: and From: fields. If information is missing prsfrom attempts to construct these fields from the message separator. prsfrom assumes the message are separated by a line of the following form.
>From sender date
The new Date: and From: fields are written directly after the message separator. A new mailbox is written to standard output or the file specified with the -o option. If the -o option is used some statistics are reported to standard output.
If the -h option is specified a usage summary is written to standard output.
Netherlands Energy Research Foundation ECN
P.O. Box 1, 1755 ZG Petten, The Netherlands
--- Begin Message ---helpFrom aburgers Tue Feb 23 10:28:15 1993To: vanloon(_at_)ecn(_dot_)nl Subject: Brief aan dhr Albada/ARB Status: RO Content-Length: 1900 X-Lines: 79 Hallo Esther, Wil je svp deze brief even uitwerken? Alvast bedankt, Teun