in reply to Re: Re: accessing mailbox files
in thread accessing mailbox files
If all you are trying to do is to take some raw email messages in files and forward them to another account, then look at using formail. It is installed along side sendmail, and is useful for parsing email messages.
I have used the following to send an entire mbox file to another user:
cat <mboxfile> | formail +1 -ds sendmail -oem <dest-address>
I admit that I have not read your other questions, so I may be off base with what you are trying to achieve, but I always think it wise to look at the tools you have available with your mail system before starting to write your own...
- Cees
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: accessing mailbox files
by jc23 (Acolyte) on Jul 29, 2003 at 16:03 UTC | |
by cees (Curate) on Jul 30, 2003 at 05:09 UTC | |
by jc23 (Acolyte) on Jul 30, 2003 at 18:56 UTC | |
by cees (Curate) on Jul 30, 2003 at 20:49 UTC |