in reply to Re: Re: Re: Re: accessing mailbox files
in thread accessing mailbox files
Yes it will allow this. With the command I gave you above, formail will parse the mbox file, split out the separate email messages, and pipe each message to sendmail. Sendmail gets the parameters -oem <dest-address> which will send the mails to that email address. So if you had 5 messages in your mbox file, sendmail will send 5 separate messages.
Here is what the switches do:
A quick search on google found many man pages on formail. They might give some more insight into what it can do. The best way to learn is just to try it out and see.
By the way, I initially said that formail came with sendmail. That was incorrect. It comes as part of the procmail package.
- Cees
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Re: accessing mailbox files
by jc23 (Acolyte) on Jul 30, 2003 at 18:56 UTC | |
by cees (Curate) on Jul 30, 2003 at 20:49 UTC |