Roundcube Community Forum

 

Problem replying to some addresses, with fix

Started by cheeks, January 25, 2007, 03:52:57 PM

Previous topic - Next topic

cheeks

I'm using SVN 461, but I also saw this problem in beta2.

If you receive a message from someone with certain characters in the "comment" portion of their address, you might not be able to reply to them. For example, I received mail from: "joe > sally"
When I click reply, the recipient field in the reply composition page looks like:

  joe > sally

Note the quote marks have been removed from the comment section of the address. When roundcube submits this to my SMTP
server, it chokes on the message, complaining about unbalanced angle brackets.

I don't know enough about roundcube's internals yet to say exactly where this should be fixed. For myself I chose to tweak
decode_address_list() in program/include/rcube_imap.inc. Here's the change:

<    $string = $name!==$address ? sprintf('%s <%s>', strpos($name, ',')!==FALSE ? '&quot;'.$name.'&quot;' : $name, $address) : $address;
---
>    $string = $name!==$address ? sprintf('&quot;%s&quot; <%s>', strpos($name, ',')!==FALSE ? '&quot;'.$name.'&quot;' : $name, $address) : $address;

Is this the "correct" fix?

Thanks,

Mark

ozmo

Hi Mark,

Sorry, I don't have a solution. I am hoping you have discovered a solution.

Any luck?

Cheers,

ozmo