List,

The incident with one recipient getting two copies may have been a fluke.  I
can only find one occurance of the affected recipient's email address in my
maillog, for that test message.  And that log entry refers to the added
address only once.


-----Original Message-----
From: Cormack, Ken 
Sent: Tuesday, January 11, 2005 1:10 PM
To: 'mimedefang@lists.roaringpenguin.com'
Subject: [Mimedefang] Question about add_recipient


List,

I have been asked to find a way to have alerts that are emailed to a
particular pager automatically copied to two other engineer's pager email
addresses.  I'm experimenting with the following code snippet, and would
like to see if someone can explain an anomaly I'm seeing...

In sub filter_end, I'm doing the following:

    foreach $recip(@Recipients) {
        if ($recip =~ /pager1\@pagingvendor\.net/i) {
            add_recipient ('pager2@pagingvendor.net');
            add_recipient ('pager3@pagingvendor.net');
            last;
        }
    }

When we sent a test-page to pager #1.  Pager #3 received one copy (as
expected), but pager #2 received TWO copies of the test page.  Looking at
the description of the "add_recipient" function in `man mimedefang-filter`,
it is unclear whether successive calls to this function would cause the
glitch that I'm seeing.

Can anyone explain why I am seeing TWO copies sent to the first added
recipient, and how I may stop that from happening?

Thanks!

Ken
_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

