Hi,
I’v installed RTFM and activated canned reply in
/servicos/rt3/local/html/Callbacks/etux/
/servicos/rt3/local/html/Callbacks/etux/Elements
/servicos/rt3/local/html/Callbacks/etux/Elements/MessageBox
/servicos/rt3/local/html/Callbacks/etux/Elements/MessageBox/Default
/servicos/rt3/local/html/Callbacks/etux/Ticket
/servicos/rt3/local/html/Callbacks/etux/Ticket/Update.html
/servicos/rt3/local/html/Callbacks/etux/Ticket/Update.html/BeforeMessageBox
The combobox of canned reply apear when i try to reply to an email. But when i
pick an option a click “GO” to add the reply to the main box it doesn’t work.
The main textarea remains blank.
In the logs i have:
[Tue Dec 4 09:53:42 2007] [error]: error: unexpected end of header
error: couldn’t parse head; error near:
teste template (/servicos/rt3/lib/RT/Template_Overlay.pm:338)
Any info?
Thanks
Nuno Fernandes
signature.asc (189 Bytes)
At Tuesday 12/4/2007 04:58 AM, Nuno Fernandes wrote:
In the logs i have:
[Tue Dec 4 09:53:42 2007] [error]: error: unexpected end of header
error: couldn’t parse head; error near:
teste template (/servicos/rt3/lib/RT/Template_Overlay.pm:338)
Any info?
Thanks
Nuno Fernandes
Hi Nuno,
Is the first line of your template blank? I think RT’s template
parser requires this.
Steve
At Tuesday 12/4/2007 04:58 AM, Nuno Fernandes wrote:
In the logs i have:
[Tue Dec 4 09:53:42 2007] [error]: error: unexpected end of header
error: couldn’t parse head; error near:
teste template (/servicos/rt3/lib/RT/Template_Overlay.pm:338)
Any info?
Thanks
Nuno Fernandes
Hi Nuno,
Is the first line of your template blank? I think RT’s template
parser requires this.
No… it wasn’t. It works now… thanks!! 
I didn’t find any info on the first line being blank. Where did you find it?
Best regards,
Nuno Fernandes
At Tuesday 12/4/2007 09:57 AM, Nuno Fernandes wrote:
No… it wasn’t. It works now… thanks!! 
I didn’t find any info on the first line being blank. Where did you find it?
Best regards,
Nuno Fernandes
It’s a bit obscure - there’s a mention of it in
Template - Request Tracker Wiki . The real requirement is
a blank line between mail headers and the message body in the
complete mail message assembled by RT from your template plus other
stuff RT adds. RT will put mail headers before your template - so if
your template itself contains headers, you need a blank line between
your headers and the body. If your template has no headers, the first
line must be blank.
Steve
At Tuesday 12/4/2007 09:57 AM, Nuno Fernandes wrote:
No… it wasn’t. It works now… thanks!! 
I didn’t find any info on the first line being blank. Where did you find
it?
Best regards,
Nuno Fernandes
It’s a bit obscure - there’s a mention of it in
Template - Request Tracker Wiki . The real requirement is
a blank line between mail headers and the message body in the
complete mail message assembled by RT from your template plus other
stuff RT adds. RT will put mail headers before your template - so if
your template itself contains headers, you need a blank line between
your headers and the body. If your template has no headers, the first
line must be blank.
That’s not quite it. If the template has no headers and the first line
contains a :, then the first line must be blank. Otherwise, RT can’t
tell the difference and tries to make it a header
jesse
At Tuesday 12/4/2007 04:56 PM, Jesse Vincent wrote:
It’s a bit obscure - there’s a mention of it in
Template - Request Tracker Wiki . The real requirement is
a blank line between mail headers and the message body in the
complete mail message assembled by RT from your template plus other
stuff RT adds. RT will put mail headers before your template - so if
your template itself contains headers, you need a blank line between
your headers and the body. If your template has no headers, the first
line must be blank.
That’s not quite it. If the template has no headers and the first line
contains a :, then the first line must be blank. Otherwise, RT can’t
tell the difference and tries to make it a header
jesse
Jesse,
I’m finding that a template with no headers always has to have the
first line blank (vanilla RT 3.6.5). Otherwise I get:
error: couldn’t parse head; error near: First line not blank
Am I missing something?
Thanks,
Steve
That’s not quite it. If the template has no headers and the first line
contains a :, then the first line must be blank. Otherwise, RT can’t
tell the difference and tries to make it a header
jesse
Jesse,
I’m finding that a template with no headers always has to have the
first line blank (vanilla RT 3.6.5). Otherwise I get:
error: couldn’t parse head; error near: First line not blank
Am I missing something?
No. it looks like someone removed my feature at some point 