Ladies and Gentlemen,

I have reported the following problem to the tmda-users list, but did
not get any answers. Since I suspect that this is either a misreading of
the documentation on my part, or may actually be a bug, I would like for 
you to look at it.

Thank you, AG

P.S. I am not currently subscribed to the tmda-worker list, so a direct
        cc would be appreciated.

--------------------------- first message --------------------------------
I am trying to use a cc tag action in the outgoing filter like this:
        to echo@<some.host> tag
                from    extension=testing
                cc      extension=tester
with a message that includes a Cc: line with a target other@<other.host>
The outgoing log indicates that the filter is taken for echo, but of
course not for other.

When I send the message with the above filter without the "cc" action in
it, both recipients receive a message that contains a Cc: line with the 
target. However, if I send the same message with the "cc" action in the 
filter, two things happen: 
 * echo gets a message that contains a Cc: line with an address that is
   constructed from the name and hostname of the sender plus the proper 
   tag, as I would have expected
 * other gets a message that contains NO Cc: line
>From various additional experiments I have concluded that the tag actions 
will *replace* the identified header line according to the specified 
action for any header field specified, as opposed to modify the existing 
header line, and more importantly, it looks like the header line(s) in 
question are removed for any recipients that are processed *after* the 
recipient that caused the filter action.
--------------------------- second message -------------------------------
The outgoing filter lines in question:
        to echo@<target> tag
                from    extension=testing
                cc      extension=tester

The message that is being sent:
        envelope sender: me
        From: me
        To: me+before, echo@<target>
        Cc: me+after

Before receives, as expected (note the location of the TMDA line):
        envelope sender: me
        To: me+before, echo@<target>
        Cc: me+after
        From: me
        X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew)

Echo receives, again as I would have expected (From: and Cc: by TMDA):
        envelope sender: me+testing
        To: me+before, echo@<target>
        X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew)
        From: me+testing
        Cc: me+tester

But after receives no Cc: header line (watch the reordering for From:):
        envelope sender: me
        To: me+before, echo@<target>
        X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew)
        From: me
==>>    the From: line appears after the TMDA line
==>>    the Cc: line has been eliminated completely.

Please note,
 * no other filters are involved,
 * using "reply-to" or "to" instead of "cc" has a similar effect on any
   respective header (if it exists), i.e. the header line disappears for 
   all recipients that appear after the recipient that is being processed 
   by the filter,
 * any recipients in the To: line after the recipient that is being 
   processed by the filter are similarly affected (i.e. no Cc: line),
 * the same thing may actually happen to the From: header, except that
   in this case TMDA recreates it in order to be protocol correct,
 * if e.g. the "cc" line contains multiple entries, in the filtered case
   the header is completely replaced by a header generated by the filter.

I have no problem with the fact that the modified header line is only
visible to the filtered recipient, as you said, we wouldn't want to give
the tags away. I can also understand that the filtered recipient gets a 
header that only contains what is specified in the filter. However, I 
wonder why the header line should be completely removed from some 
recipients, and if that were the goal, I would expect that it be removed 
from all recipients.

BTW, I think I know what happens, during filter processing the header 
line in question is cleared in the message that is used for all subsequent
recipients, and never restored. But it was my understanding that a filter
like the one above should not affect other recipients.
---------------------------------------------------------------------------

-- 
 ----------------------------------------------------------------------
   Alfred Ganz                                  alfred-ganz:at:agci.com
   AG Consulting, Inc.                          (203) 624-9667
   440 Prospect Street # 11
   New Haven, CT 06511
 ----------------------------------------------------------------------
_________________________________________________
tmda-workers mailing list ([email protected])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to