Hi all,

My first posting to the list so please go easy on me if I'm breaking any
project etiquette. IlohaMail 0.8.14 RC3 (the login page says RC2 of course)
running on PHP 4.3.4. When attempting to compose and send (or simply
forward) a message with the following "real" single-quote character:

'

(if you see a normal single-quote it's possible that my mailer or the list
manager did some charset translation for us--- how helpful :)

Anyway, IlohaMail returns a "User unspecified:" on a blank page when sending
any message that contains this character.

I have a one-line workaround that I added to compose2.php::cmp_send in this
block of code

   /****  Encode  ****/
   $subject=stripslashes($subject);
   $subject=LangEncodeSubject($subject, $my_charset);

   if (!$gpg_encrypted){
    $message=stripslashes($message);
    // [GG] Added to work around strange quote behaviour
    $message=str_replace("'","'",$message);
    $part[0]=LangEncodeMessage($message, $my_charset);
   }else{
    $part[0]["data"] = $message;
   }
   /***********************/

It's a hack but it does the job. I'm not sure if a more elegant solution is
available through, perhaps, the PHP configuration file. Anyway, please let
me know if any more information is required. I can even submit a udiff for
this if anybody wants one.

-- Gene

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Gene Goykhman, (416) 815-0759 x211
Indigo Technologies Ltd.
Fast, effective time tracking software your people will actually use.
http://www.timetiger.com




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Ilohamail-devel mailing list
Ilohamail-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ilohamail-devel

Reply via email to