procmail
[Top] [All Lists]

Another question

1997-12-05 14:42:22
First of all, thanks to everyone that made suggestions about my wanting to
extract a senders name from an email.  After looking back in some old
emails that I had saved I decided that my best bet would be to save the
email address itself.
However I have a second questiion.  I want to be able to remove an address
from a file if someone sends me a notice.  The following is my recipie so
far.  Any suggestions would be helpful.

:0 WEh
* ^Subject: remove
{
        REMOVE = `formail -rzx "From:"`

        :0 c
        | (sed -n /$REMOVE/d .address > $HOME/temp_file \
        mv tempfile .address) ;\

        :0
        (send notice saying they were removed.  this parts already works)
}

Peace,
Bishop