mhonarc-users

Re: bug-report

1998-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              
        

Attachment: binliklmj1EXx.bin
Description: prsfrom.pl


NAME

prsfrom - supply missing Date: and From: fields to mailboxes


SYNOPSIS

prsfrom [-o output_mailbox] [input_mailbox]

prsfrom [-h]


DESCRIPTION

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.

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.


Options

-h
A usage summary is written to standard output. No further processing is done

-o output_mailbox
Default the new mailbox is written to standard output. With the -o option a file to receive the new mailbox can be specified. If the -o option is specified, some statistics are written to standard output.


RESTRICTIONS

prsfrom also changes the headers of message in mailboxes included as attachments in other message.


RETURN VALUE

The return value of prsfrom is always 0


SEE ALSO

See the mhonarc home-page.


AUTHOR

A.R. Burgers
Netherlands Energy Research Foundation ECN
P.O. Box 1, 1755 ZG Petten, The Netherlands
e-mail: burgers(_at_)ecn(_dot_)nl

Attachment: binCEoxW2ybR3.bin
Description: prsfrom.pod

--- Begin Message ---
help

From aburgers Tue Feb 23 10:28:15 1993
To: 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

--- End Message ---
<Prev in Thread] Current Thread [Next in Thread>