"Morten Trab" <[EMAIL PROTECTED]> writes:

> ----- Original Message ----- 
> From: "Tim Legant" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, February 08, 2004 12:49 AM
> Subject: Re: Some E-Mails got two X-Original-To headers
>
>
>> Well, the way the deep-down internals of the email parsing code works,
>> TMDA should be looking at the first X-Original-To field encounted,
>> reading from top to bottom of the header.  Maybe that's the problem?
>> In any case, there isn't any way to configure which one it looks at.
>
> It might do so, but the problem is that it doesn't stop looking for the
> header at first encounter... :(

Actually, that was my point; in fact, it does stop at the first.  It
may be that Postfix is appending a field to the header and therefore
the Postfix addition is the second one, which is still a problem.

>> A couple of ideas....  Can Postfix rename an already-existing field to
>> a different name, such as Old-X-Original-To, before adding the new
>> one?  Also, can you tell Postfix to use a different field name, other
>> than X-Original-To; e.g., X-TMDA-Original-To?  Then you can tell TMDA
>> to look for that field instead.  It is extremely unlikely that a
>> header field of that name would show up "in the wild."
>
> No to all of it...
> Postfix prepends the header by setting the O flag in master.cf in the filter
> line concerning TMDA...You can't specify what the header should be named...

Jason's idea is probably best, then; use formail (from the procmail
package) to insert the new field.  It can replace or move existing
fields of the same name so that there is only one for TMDA to find.


Tim

_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to