[rt-users] RT misparsing From header

Sebastian Flothow sebastian at flothow.de
Thu May 2 12:33:26 EDT 2002


At 9:30 Uhr +0100 22.4.2002, Smylers wrote:
>This sounds like what I postulated as being a problem a few week's ago:
>
>   http://lists.fsck.com/pipermail/rt-users/2002-March/007455.html

Indeed.
I applied the modification proposed at the end of this post, which 
solves the problem (and doesn't cause any new problems as far as I 
can see).
Jesse: will this be included in a future version of RT?


>  > This is RT 2.0.13, sending mail via qmail.
>
>We're using 'Exim'; Phil Oester who had the problem last time uses
>'Sendmail'.  This could be significant.

Well, it supports the assumption that there's nothing wrong with the MTA.


>Can you look up the entry for Joe Random's user account in 'RT' and look
>to see what his real name is set to.  In particular, does it have quotes
>in it?

It's set to "Random, Joe", including the quotes. This shows that the 
 From header gets parsed correctly (unlike I assumed initially).


>It looks like quotes are being added in two places (one of them probably
>being when "via RT" is appended).

Not quite - RT adds quotes only once, when "via RT" is appended, 
which causes trouble if the name already has quotes.
Thus, another way of fixing this would be to strip quotes when users 
are auto-created on ticket creation.


>And you've probably got
>your MTA configured so that local e-mail addresses can consist of just
>the username part and have the domain added automatically.

Yes, qmail does this by default.



-- 
Sebastian Flothow
sebastian at flothow.de
#include <stddisclaimer.h>




More information about the rt-users mailing list