procmail
[Top] [All Lists]

sending copies to a list of users - how to correct my script ?

2004-07-31 11:35:19
This is my "closing followup" to the question which I have posted to this list on 7/28/2004. The essence of the question was, how to modify the ".procmailrc" script to send a copy of selected
messages to a list of email addresses.
My tests led me to a conclusion, that I was sending a copy to only one address.

Hints from the list suggested to use a comma between the addresses, and not pure spaces.

I have tested with the commas, but the results were the same: I was sending the message to the
first address from the list only.

Well, the solution to the puzzle was, that my testing list of addresses was too simple: They were all addresses which the MTA (a sendmail in my case) had recognized as being sent to effectively the same addressee (myself). So it had *optimized* and sent one copy only. :)

My final solution to the "list of addresses" is the following:
In the part which was sending the copies I have used the "cat" to get the addresses as follows:

...

:0 a
! `cat file_with_the_addresses`

...

and in the "file_with_the_addresses" I have placed the list of addresses simply each in a line, like
for example:

...
email_address1
email_address2
email_address3
...

It happens to work fine with my MTA (sendmail).

Thanks for your suggestions to the original question.
Your comments helped me to believe, that my original ".procmailrc" script SHOULD work,
as it was logically correct.

Thanks,  Zenon.


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>