[rt-users] RT fooled by "headers" in body
Yeow
yeowhui at i-dns.net
Wed Aug 22 02:57:58 EDT 2001
I'm using the global correspondence template with the following code:
{
$Transaction->Attachments('text/plain')->First->Content ||
$Transaction->Attachments('text/html')->First->Content ||
"No Viewable Message."
}
--------
This works best for me because most of mails I get are multipart text+html
messages.
( till RT can forward mails "as is" :-) )
RT stores the mails correctly. The "header" lines in the body are correctly
intepretted as text.
But mails sent out does not have the extra header lines as text.
Following your clue, I introduced a new line(in fact any character) before
the code in the template and everything works fine now.
So now I see that the template is indeed powerful. Thanks for the help.
Yeow
----- Original Message -----
From: "Jesse Vincent" <jesse at bestpractical.com>
To: "Yeow" <yeowhui at i-dns.net>
Cc: "rt-users" <rt-users at lists.fsck.com>
Sent: Wednesday, August 22, 2001 2:20 PM
Subject: Re: [rt-users] RT fooled by "headers" in body
> That _sounds_ like you've set up a custom template containing only
> the following line
>
> <%$Transaction->Content%>
>
> or something like it. RT would interpret your transaction's content as
> the whole of the template, including using its header as the mail
message's
> header.
>
> Is what's stored in RT 'correct' or does it look like the mail messages
> that are being sent out?
>
>
>
More information about the rt-users
mailing list