procmail
[Top] [All Lists]

Re: questions abt procmail

1998-03-23 16:12:15


On Mon, 23 Mar 1998, Ivan Au wrote:

Date: Mon, 23 Mar 1998 16:49:32 +0800 (SGT)
From: Ivan Au <ivan(_at_)nii(_dot_)ncb(_dot_)gov(_dot_)sg>
To: procmail(_at_)informatik(_dot_)rwth-aachen(_dot_)de
Subject: questions abt procmail


Hi ,

I am trying to write a procmail that performs a autoresponding.
This procmail will receive the mail and will also instantaneously returns
a mail to the sender.

The undermentioned are the excerpts of the procmail I have written.
-------------------------------------------------------------------------
#procmail for Ivan
SENDMAIL=/usr/lib/sendmail
HOME=/home/ivan
PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:.
MAILDIR=/usr/var/spool/mail
DEFAULT=$MAILDIR/ivan

:O
{
:O c
* ^From: .*
|(formail -brt ; \
  echo "Returning your mail " ;\
 ) | $SENDMAIL -t

:O
/home/ivan/mail/in-box
}
-------------------------------------------------------------------------

What could not work ?

I could return the mail but not able to saved the mail in
my mail box.   How do I work around.


This is the way I set up a simular task.

:0
* ^From:.*
{
   :0c
   |gzip -f

   :0
   $LIST
}

So far this seems to work quit well. 

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