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

> ----- Original Message ----- 
> From: "Tim Legant" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, February 09, 2004 12:09 AM
> Subject: Re: Some E-Mails got two X-Original-To headers
>
>
>
>> 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.
>
> I've been looking at the man pages of formail and found out that I need
> something like this: /usr/bin/formail -Y -u "X-Original-To" to do the
> stuff..
>
> Now my biggest concern is how to get the outcome of formail sent to
> TMDA...It doesn't seem that a | /usr/bin/tmda-filter after the formail
> string helps me out, as it says

This should be the correct way to do it (formail's output piped into
tmda-filter.

> Uncaught Python 2.3.3 Exception (Mon Feb  9 09:15:04 2004):
> -----------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/bin/tmda-filter", line 53, in ?
>     execfile(os.path.join(execdir, 'tmda-rfilter'))
>   File "/usr/bin/tmda-rfilter", line 219, in ?
>     orig_msgin_headers_as_raw_string = Util.headers_as_raw_string(msgin)
>   File "/usr/local/lib/python2.3/site-packages/TMDA/Util.py", line 609, in
> headers_as_raw_string
>     idx = msgtext.index('\n\n')
> ValueError: substring not found

This implies that only the header, or a portion of the header is
making it to tmda-filter.  Try your formail command without the -Y
flag.


Tim

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

Reply via email to