The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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@ecn.nl