prsfrom - supply missing Date: and From: fields to mailboxes
prsfrom [-o output_mailbox] [input_mailbox]
prsfrom [-h]
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.
A usage summary is written to standard output. No further processing is done
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.
prsfrom also changes the headers of message in mailboxes included as attachments in other message.
The return value of prsfrom is always 0
To install MHonArc::UTF8, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MHonArc::UTF8
CPAN shell
perl -MCPAN -e shell install MHonArc::UTF8
For more information on module installation, please visit the detailed CPAN module installation guide.