On Tue, Jan 27, 2004 at 11:47:59PM -0500, Dan Vicente wrote:
At the moment what I want to do is:
filter using lists. makes it easier than editing the procmailrc. also can
use something like excel to sort it out. Maybe even use a database so other
people can submit.
One way I've seen this done was to use 'cat' like, ^subject: `cat file`. the
other is grep. something like ^subject: |egrep -e -f file
I'm not sure what is the difference between the two. As for my grep
knowledge is pretty minimal. I understand some basics. What I think is the
most complicated part is the keywords to filter by. I would like to filter
emails based on 'from', 'subject', and/or 'body', individually, combining 2,
or all three.
I'm having a hard time figuring out exactly what you are asking. You
probably will get good mileage from checking the searchable list archives
linked far down the page from www.procmail.org.
Look for things that will explain the MATCH operator to you and for
standard ways to isolate and save the values of Subject, From, etc.
The second thing I'd like to do is filter out certain attachments. Basically
everything but pictures and some .zips. Like the ones coming in now. I'd
like to filter out document.zip.
:0
* ^Content-Type:.*(multi|attach)
* B ?? ()\<document\.zip\>
/dev/null
is a very rough, fast start. Look in the archives and read this list's
entries for the past month to get some cleaner ideas.
BOSE=ofBOSE=off
I don't believe you can use syntax like "foo=bar=blah"
COMSAT=no
Should be default
####### SUBJECT FILTER ###########
:0
* ^Subject: \[ADV\]|\
Document\.lastModified $|\
A.*([a-z]+|[a-z]+ [a-z]+).*(game|tool|website)$|\
W32\.Elkern|\
Re: Thank you!|\
Remind me never to reply to your note of thanks.
Basically, though, you need parens around your ORed statement set
or you will false-poz.
## clean environment (this gets passed on to users)
VERBOSE=
LOGABSTRACT=
LOGFILE=
COMSAT=
To unset vars, just type their name. Using an equals
sign sets them to null rather than unsetting.
I would not want to have an account on a system whose admin
was filtering on subjects like that!
--
dman
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail