procmail
[Top] [All Lists]

Using procmail to requeue incoming email?

1999-03-03 15:03:13
Hi,

Sorry if this has been asked before, I just joined this
list, but...

I need to take email addressed to an account, test(_at_)cuenet(_dot_)com,
and queue it in it's own queue. I am running Sendmail. So
in my aliases file I:

test: user

Then in user's account I tried to setup a .procmailrc like:

PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:.
MAILDIR=$HOME/                 # You'd better make sure it exists
DEFAULT=/var/spool/mail/user
LOGFILE=$HOME/Mail/from
LOCKFILE=$HOME/.lockmail
ARCDATE=`/bin/date +%y-%m`
SENDMAILFLAGS= "-oem -odq -oi  -oC/etc/sendmail.cf2 -oQ/home/lists/mqueue"

                :0
                * !^Subject:.*retrieve
                !


The condition is just there to satisfy the recipe's need for a
condition, 'retrieve' will never occur there or will be replaced later.

This is what appears in the 'from' file when I send an email to
'test':

From cueman(_at_)orbital(_dot_)cuenet(_dot_)com  Wed Mar  3 10:56:49 1999
 Subject: testing
  Folder: /usr/sbin/sendmail -oem -odq -oi -oQ/home/user/mqueue


But the email 'testing' never gets requeued in /home/user/mqueue.

I need to queue these emails then run that queue at a later time
independantly of my main mail queue.

Any suggestions on how I can accomplish this would be appreciated.

Thanks,

--Paul T.


<Prev in Thread] Current Thread [Next in Thread>