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 would not use /tmp, but that's my opinion... I'd rather use $HOME/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
I actually do something similar to this, but I just use
:0
* ^(To|cc):.*myaccount
not2me
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
but as anyone will tell you, I'm not the one you want to base 'normal' off of
;-)
TjL
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail