procmail
[Top] [All Lists]

Re: New Cook... Recipe Help

2001-01-10 12:55:06
Try this (untested, of course!).

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

        :0E
        /dev/null
}


For your second question, check the archives.  I think past solutions
use 'metamail'.


On Wed, 10 Jan 2001, Brian C. Doyle wrote:

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>