[Mimedefang] Question about add_recipient
James Ebright
jebright at esisnet.com
Tue Jan 11 13:46:58 EST 2005
Is there a particular reason you are reinventing the wheel and not using
something like an alias do do what you are describing? (Just curious because
there may be a valid reason like you are a mail relay, etc).
While I do not know if this is a bug or not.. why not riterate through the
list and print it to the syslog to see what is in it for testing purposes, if
you have only a single entry for recip2 then you know the issue lies
elsewhere....
Jim
On Tue, 11 Jan 2005 13:10:09 -0500, Cormack, Ken wrote
> 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 at pagingvendor.net');
> add_recipient ('pager3 at 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?
--
EsisNet.com Webmail Client
More information about the MIMEDefang
mailing list