Mailinglist Archive: opensuse (4053 mails)

< Previous Next >
Re: [SLE] Quick way to forward all the messages in a spool to a remote address
  • From: Mads Martin Jørgensen <mmj@xxxxxxxx>
  • Date: Wed, 1 Aug 2001 10:45:22 -0700
  • Message-id: <20010801104522.V8575@xxxxxxxx>
* Jonathan Wilson <wilson@xxxxxxxxxxx> [Aug 01. 2001 10:10]:
> Hello,
> I'm having a situation where I need to forward the last mails in
> someone's spool dir to anthoer address. Please note that I'm using
> Postfix for my MTA. I tried the following:
> cat /var/spool/virtual/domain.tld/jw | sendmail jw@xxxxxxxxxxx
> But that sends the whole file as one enormous message. I need it to
> read the spool and break it up into messages.
> Any ideas? I have several spools to do this to, so I cannot do it by hand.

procmail is your friend.

man procmail

Mads Martin Jørgensen,
"Why make things difficult, when it is possible to make them cryptic and
totally illogic, with just a little bit more effort."
-- A. P. J.

< Previous Next >