RE: [otrs] code to fix ’ and other codes when sending e-mail?

Thats called html encoding. The best way to handle it is to use an html decoding function right before inserting your data into the db.
-----Original Message-----
From: Jo Rhett

My apologies for not previously researching this, but the answer I'm looking for is a simple one. (Mostly Yes or no.) We had a user accidentally record several notes in the wrong part of a two linked tickets. Does anyone know if it would be a simple process to go into the DB and modify the records to move the notes to the correct ticket? This isn't big enough issue to challenge corrupting the db over. I would think this to be very simple. If you also happen to know what would need modifying would appreciate the additional info. I you have an opinion or knowledge let me know. tia, LQM

Hi, I'm guessing this is as simple as selecting the notes from the article database and updating the ticket_id field to set it to the correct ticket number. To get to a ticket_id from a ticket number do a : SELECT * FROM ticket where tn='<ticket number>'; The 'id' field should match the ticket_id field in the article database. Regards, Arnold.
-----Original Message----- From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of LQ Marshall Sent: donderdag 20 maart 2008 20:22 To: 'User questions and discussions about OTRS.org' Subject: [otrs] Move a Note
My apologies for not previously researching this, but the answer I'm looking for is a simple one. (Mostly Yes or no.)
We had a user accidentally record several notes in the wrong part of a two linked tickets.
Does anyone know if it would be a simple process to go into the DB and modify the records to move the notes to the correct ticket? This isn't big enough issue to challenge corrupting the db over. I would think this to be very simple.
If you also happen to know what would need modifying would appreciate the additional info.
I you have an opinion or knowledge let me know.
tia,
LQM
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support or consulting for your OTRS system? => http://www.otrs.com/

On Mar 20, 2008, at 11:20 AM, Steve Morrey wrote:
Thats called html encoding.
yes that is what I described.
The best way to handle it is to use an html decoding function right before inserting your data into the db.
Is the e-mail sent from the database, or from the update? It would appear the outbound e-mail is generated when processing the update, and thus changing the data going to the database wouldn't affect the e-mail? And anyway, you are now at the heart of the question: what routine/ method should be adjusted for this change?
-----Original Message----- From: Jo Rhett
Sent: Thursday, March 20, 2008 12:15 PM To: User questions and discussions about OTRS.org Subject: [otrs] code to fix ’ and other codes when sending e- mail? So it's fairly common for people to cut/paste text into their ticket. Unfortunately, many common things are converted to HTML codes when sent. The most common is an apostrophe being converted to ’ (right-tick apostrophe)
Obviously this is not very useful when sending plain text e-mail. Is there already an appropriate place to fix e-mail when sending, where replacements like this can be done/
-- Jo Rhett Net Consonance : consonant endings by net philanthropy, open source and other randomness
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support or consulting for your OTRS system? => http://www.otrs.com/
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support or consulting for your OTRS system? => http://www.otrs.com/
-- Jo Rhett Net Consonance : consonant endings by net philanthropy, open source and other randomness
participants (4)
-
Arnold Ligtvoet
-
Jo Rhett
-
LQ Marshall
-
Steve Morrey