procmail
[Top] [All Lists]

RE: --> reading multiple TO addresses from a file.

2000-09-15 14:54:44
Sean,

Hurray, both your method and david's are working.  I can use (add1|add2) or
add1|\
add2
in myaddress.txt and it works like charm.
Now I'm close to what I want to accomplish.

Finally, this might be an easy one, how can I reverse the rule?
Say instead of the mail from mydomain go to IN.junks
* ^From.*mydomain.com
IN.junks

I want mail NOT from mydomain go to IN.junks?
AGain, thanks much for all the help.

-wk




-----Original Message-----
From: procmail-admin(_at_)Lists(_dot_)RWTH-Aachen(_dot_)DE
[mailto:procmail-admin(_at_)Lists(_dot_)RWTH-Aachen(_dot_)DE]On Behalf Of 
Professional
Software Engineering
Sent: Friday, September 15, 2000 11:14 AM
To: procmail(_at_)Lists(_dot_)RWTH-Aachen(_dot_)DE
Subject: RE: --> reading multiple TO addresses from a file.


At 10:50 2000-09-15 -0700, Widodo Krisman wrote:
I added $ and it works.  But it won't read from multiple line that I got in
myaddress.
 * $ ^TO`cat /etc/myaddress.txt`

What a surprise.  I recall saying that IT WOULD NOT WORK because these
addresses are not a regexp.  Could you please re-read my post and verify
that for me?

If you say match ^TOA B C, procmail is, not surprisingly, going to expect
to see "A B C" on the line.  Not A or B or C, but A B C - not in any order,
but exactly that order, and exactly with the separators you're using
(spaces, newlines(?), tabs, commas, whatever).  Thus the need to format the
myaddress.txt contents as a regexp, of which I am sure I gave an example,
again please re-read my post and verify that for me, would you?

Actually, this is just my beginning testing as I'm new to procmail.  What
I'm trying to accomplish is to only allow mail FROM certain my domain to be
able to send to my "myaddress.txt" global lists (kind of for internal list
only without getting spam or mail from outsiders).  So if the mail is sent

I hope nobody spoofs your mailserver, since this is a popular way for
spammers to get past people's defences...

[big snip]

---
  Please DO NOT carbon me on list replies.  I'll get my copy from the list.

  Sean B. Straw / Professional Software Engineering
  Post Box 2395 / San Rafael, CA  94912-2395


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


_______________________________________________
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>