procmail
[Top] [All Lists]

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

2004-07-27 22:42:05
I used to maintain a majordomo-serviced email list, but had lost my server and now have to use
a service from an ISP.
I was suggested to use the "procmail" (available on my ISP's server).

I am experimenting with the following script:

===
LIST_NAME = "all(_at_)domainY"
LIST_ADDR = "zenon(_at_)domainX"
ALL_LIST = "test1(_at_)domainX test2(_at_)domainX"
LIST_DATE = `date '+%a, %d %h %Y %H:%M:%S %Z'`
LIST_ERR = "errors(_at_)domainX"


:0 fhw
*$ !^X-list: $LIST_NAME
*$ ^TO()$LIST_NAME
| /home/users/zenon1/procmail/add_mt.sh | /usr/local/bin/formail -A "X-List: $LIST_NAME" -I "Resent-To: $LIST_ADDR " -i "Resent-Date: $LIST_DATE" -I "Errors-To: $LIST_ERR" -A "Precedence: bulk" -A "X-Loop: $COMSAT"

:0 a
! test1(_at_)fdomainX test2(_at_)domainX
===

FYI, the add_mt.sh script just modifies the email Subject (and this modification works OK). I have added some "formail" modifiers, but I don't know it the modifications are needed or not.

Having the above script saved as "procmail_test", I run

cat email_text | procmail -m procmail_test

I hoped to obtain 2 copies of the "email_text", sent to the test1(_at_)domainX, but instead I am getting just one copy, addressed to myself (with all expected modifications, true, but seemingly
as being sent just to myself and not to test1 and test2 addresses).

What am I missing ?

Thanks,  Zenon.

PS.
After I will succeed sending multiple copies, I will add a more extended list definition, verification
of the sender, etc.


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