procmail
[Top] [All Lists]

Re: spam filter experiment question

2001-03-27 18:05:16
"Timothy J. Luoma" wrote:
 
I'd like to try experiment with the following recipe:

:0
* !(^TO_.*myaccount)
/tmp/ilianatest.txt

I'm very new to this (still), so please forgive my cluelessness..

What I'd like to do is create a .procmailrc file in my home directory,
then see what gets excluded, and then add entries into the recipe for
other acceptable TO strings, such that I can still get listmail, etc.
How would I add additional myaccount strings to the above?

My guess is that you meant:

:0:
* ! ^TO_myaccount
/tmp/ilianatest.txt

I'm not sure what the .* or the parens are there for --perhaps somebody
else knows?  I just copied it verbatim, so to speak.
 
(I would not use /tmp, but that's my opinion... I'd rather use $HOME/tmp/)

Just out of curiosity, why not use /tmp?

As far as listmail goes, I would sort them out ahead of time using a set 
string
like the Sender: string

:0:
* ^Sender: procmail(_at_)procmail\(_dot_)org
procmail

and then put your ! ^TO_ exclusion at the end

Hsm, I'm so confused.  Does that mean I could have something like this:

:0:
* ^Sender:(procmail(_at_)informatik(_dot_)rwth-aachen(_dot_)de |
otherlist(_at_)otherlist(_dot_)moon(_dot_)com | 
yetanotherlist(_at_)yetanother(_dot_)moon(_dot_)com)
* $ ! ^TO_.*$ME
/tmp/ilianatest.txt

..and would the above a. make sure listserv stuff could get through and
b. make sure that mail not addressed to the ME variable gets put in 
/tmp/ilianatest.txt?

I actually do something similar to this, but I just use

:0
* ^(To|cc):.*myaccount
not2me

Though I'm not sure, I think the TO_* thang encompasses to, cc, bcc,
etc.  Anyone know if I'm right about that?
 
now that does get false-positives at times, but 98% of the time it works great

As far as addiging additional myaccount strings... I think there is something
hinky about doing that with ^TO_ but I can't remember for sure.... normally it
would just be (someaccount|anotheraccount|athirdaccount) but I'll let someone
else answer that part better.

Again, for me, I prefer to set a variable:

        
ME=(me(_at_)onedomain\(_dot_)com|another(_at_)domain\(_dot_)org|stillanother(_at_)elsewhere\(_dot_)com)

and then use it like so:

:0
* $ ! ^(To|Cc):.*$ME
not2me

Oh, that's cool.  Where do I set that variable?  Within the .procmailrc itself?

Thanks for your effort :-)


-- 
f i l b y  *  6 0 3 . 4 4 8 . 0 0 0 9
  l                                 
  i           t e c h   s u p p o r t
  a
  n
  a
_______________________________________________
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>