procmail
[Top] [All Lists]

New Cook... Recipe Help

2001-01-10 11:31:52
Here is what i have for a recipe currently.

# .procmailrc
# routes incoming mail to appropriate mailboxes
PATH=/usr/bin:/usr/local/bin
MAILDIR=$HOME/mail   # all mailboxes are in .mailspool/
DEFAULT=/var/spool/mail/$LOGNAME
LOGFILE=$HOME/maillog
SHELL=/bin/sh

:0:
* HB ?? ^Content-type:.*image/*
* ^(From)(_dot_)*brian(_at_)jbbent(_dot_)com
me

:0:
* HB ?? ^Content-type:.*video/*
* ^(From)(_dot_)*brian(_at_)jbbent(_dot_)com
me

:0
* ^(From)(_dot_)*brian(_at_)jbbent(_dot_)com
/dev/null


I have 2 questions.

How can I condense the above so i do not have 3 separate entrees for 1 message. IE If the email is from brian(_at_)jbbent(_dot_)com and has an image or video attachment move to me Else if it is from brian(_at_)jbbent(_dot_)com and does not have an image or video attachment delete!

The second deals with taken the attachments and automatically saving them to a directory on my computer and then delete the email. I have seen several script but I do not understand what they were doing !!

Thanks to everyone for your help!..

Brian
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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