2 messages in com.mysql.lists.eventum-develRe: Two small patches.
FromSent OnAttachments
Jeffrey D. Wheelhouse06 Jul 2005 00:42.txt, .txt
Elan Ruusamäe06 Jul 2005 15:54 
Subject:Re: Two small patches.
From:Elan Ruusamäe (gl@delfi.ee)
Date:07/06/2005 03:54:40 PM
List:com.mysql.lists.eventum-devel

On Wednesday 06 July 2005 10:43, Jeffrey D. Wheelhouse wrote:

+                "sender_name" => preg_replace("/\"/","",Mail_API::getName($sender))

i believe it's better to trim it in a pairs, and also trim single quotes, which outlook-type clients like to include, because there could be names like Jeffrey 'o Wheelhouse or Jeffrey "D" Wheelhouse :)

preg_replace('/^(["\'])(.+)(\1)$/g', '$2', Mail_API::getName($sender));

ps: pattern not tested, don't take it as full truth :)