Re: [rt-users] Problems in templates in Rt 4.2.1

2014-01-03 Thread Guadagnino Cristiano
-Messaggio originale-
Da: Cristiano Guadagnino guadagnino.cristi...@creval.it
Inviato: Fri Jan 03 2014 08:03:12 GMT+0100 (CET)
A: rt-users@lists.bestpractical.com
Oggetto: Re: [rt-users] Problems in templates in Rt 4.2.1

 -Messaggio originale-
 Da: Cristiano Guadagnino guadagnino.cristi...@creval.it
 Inviato: Fri Jan 03 2014 07:59:45 GMT+0100 (CET)
 A: rt-users@lists.bestpractical.com
 Oggetto: Re: [rt-users] Problems in templates in Rt 4.2.1

 Alex Vandiver ha scritto:
 On Thu, 2014-01-02 at 16:18 +, Guadagnino Cristiano wrote:
 This message is related to my previous thread titled HTML templates
 in RT 4.2.1.
 This is a known bug in 4.2.1, relating to how RT attempts to generate a
 plain-text version of HTML templates.  A fix will be in 4.2.2 which will
 ensure that mail is always sent out, even if it lacks a text/plain part
 due to failure of the HTML-text conversion.
   - Alex
 Thank you very much Alex!
 Do you know if a patch is available?


 Never mind Alex, I just read about it in another reply.

 Bye
 Cris

Hi Alex,
while trying to apply the patch in

https://github.com/bestpractical/rt/commit/8807f0d0.patch

I get this:

can't find file to patch at input line 26

Looking at the patch file, I see it is trying to patch two files:

/opt/rt4/lib/RT/Template.pm
/opt/rt4/t/mail/html-outgoing.t

The second file is non-existent here. Actually, I don't have any 
/opt/rt4/t directory nor any html-outgoing.t file under /opt/rt4.

Can you help me?

T.I.A.
Bye
Cris


Re: [rt-users] Problems in templates in Rt 4.2.1

2014-01-03 Thread Guadagnino Cristiano
-Messaggio originale-
Da: Cristiano Guadagnino guadagnino.cristi...@creval.it
Inviato: Fri Jan 03 2014 10:22:21 GMT+0100 (CET)
A: rt-users@lists.bestpractical.com
Oggetto: Re: [rt-users] Problems in templates in Rt 4.2.1

 -Messaggio originale-
 Da: Cristiano Guadagnino guadagnino.cristi...@creval.it

 -Messaggio originale-
 Da: Cristiano Guadagnino guadagnino.cristi...@creval.it

 Alex Vandiver ha scritto:
 On Thu, 2014-01-02 at 16:18 +, Guadagnino Cristiano wrote:
 This message is related to my previous thread titled HTML templates
 in RT 4.2.1.
 This is a known bug in 4.2.1, relating to how RT attempts to generate a
 plain-text version of HTML templates.  A fix will be in 4.2.2 which
 will
 ensure that mail is always sent out, even if it lacks a text/plain part
 due to failure of the HTML-text conversion.
   - Alex
 Thank you very much Alex!
 Do you know if a patch is available?


 Never mind Alex, I just read about it in another reply.

 Bye
 Cris

 Hi Alex,
 while trying to apply the patch in

 https://github.com/bestpractical/rt/commit/8807f0d0.patch

 I get this:

 can't find file to patch at input line 26

 Looking at the patch file, I see it is trying to patch two files:

 /opt/rt4/lib/RT/Template.pm
 /opt/rt4/t/mail/html-outgoing.t

 The second file is non-existent here. Actually, I don't have any
 /opt/rt4/t directory nor any html-outgoing.t file under /opt/rt4.

 Can you help me?

 T.I.A.
 Bye
 Cris

Alex,
I figured that I needed to apply the patch to the source tree, so I did 
it successfully. Then I did a make upgrade. All of this was done on a 
test server.

After that, I compared the new tree in /opt/rt4 with a backup of the old 
tree. Diff says only /opt/rt4/lib/RT/Template.pm is changed.

Is it safe to just copy the new Template.pm into our production server 
and clear the mason cache? Will it suffice to fix the bug?

Thank you in advance
Cris

Re: [rt-users] Problems in templates in Rt 4.2.1

2014-01-03 Thread Jesse Griffin
 Hi Alex,
 while trying to apply the patch in

 https://github.com/bestpractical/rt/commit/8807f0d0.patch

 I get this:

 can't find file to patch at input line 26

 Looking at the patch file, I see it is trying to patch two files:

 /opt/rt4/lib/RT/Template.pm
 /opt/rt4/t/mail/html-outgoing.t

 The second file is non-existent here. Actually, I don't have any
 /opt/rt4/t directory nor any html-outgoing.t file under /opt/rt4.

 Can you help me?

 T.I.A.
 Bye
 Cris
 
 Alex,
 I figured that I needed to apply the patch to the source tree, so I did 
 it successfully. Then I did a make upgrade. All of this was done on a 
 test server.
 
 After that, I compared the new tree in /opt/rt4 with a backup of the old 
 tree. Diff says only /opt/rt4/lib/RT/Template.pm is changed.
 
 Is it safe to just copy the new Template.pm into our production server 
 and clear the mason cache? Will it suffice to fix the bug?
 
 Thank you in advance
 Cris

I tried just making the changes in the Template.pm file and that did *not* work.
 Doing that caused fatal problems, resulting in 500 errors... unless I did
something wrong?

--
Thank you,
Jesse Griffin
tummy.com, ltd.


[rt-users] Triggering two separate templates

2014-01-03 Thread Landon Stewart
Hi Folks,

Currently we have a situation where when a custom field is changed to a
certain value via ticket “edit” a template for that custom field value is
used to correspond with the requestor.  It’s actually a “TERMINATION”
notice telling them they no longer have an account with us.

I’d like to also send an email to other department to have them take an
action as well though.  Basically the customer gets a termination notice
and we want billing to get a request from us to terminate the account.

Does anyone have any ideas on how I’d trigger a second email that the
requestor won’t see?  I thought of just CCing the other department when
that template is used but that’s not really a viable thing to do in this
case.  The other department needs some data from a template that shouldn’t
be sent to the requestor so the emails have to be entirely different.

-- 
Landon Stewart :: lstew...@iweb.com
Lead Specialist, Abuse and Security Management
Spécialiste principal, gestion des abus et sécurité
http://iweb.com :: +1 (888) 909-4932