[Tickets #12116] Re: Unicode Domains are passed to sendmail -> Can't send emails to/from unicode domains

noreply at bugs.horde.org noreply at bugs.horde.org
Sat Mar 30 15:31:12 UTC 2013


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/12116
------------------------------------------------------------------------------
  Ticket             | 12116
  Updated By         | peter.meier+horde at immerda.ch
  Summary            | Unicode Domains are passed to sendmail -> Can't send
                     | emails to/from unicode domains
  Queue              | Horde Framework Packages
  Version            | Git master
  Type               | Bug
  State              | Resolved
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             | Michael Slusarz
------------------------------------------------------------------------------


peter.meier+horde at immerda.ch (2013-03-30 15:31) wrote:

> commit c7eea0d03139cd8994cef27be3d9cfcfdec6b346
> Author: Michael M Slusarz <slusarz at horde.org>
> Date:   Fri Mar 15 18:49:02 2013 -0600
>
>     [mms] Correctly encode IDN domains when sending mail (Bug #12116).

This fixes the bug only partially: For the recipients.

However it does not fix it if the sending address should also be  
encoded as IDN, as $from is not touched.

As a workaround I added:

         $from = new Horde_Mail_Rfc822_Address($from);
         $from = $from->writeAddress(array('idn' => true));

before:

         $mail = @popen($this->_sendmailPath .  
(empty($this->_sendmailArgs) ? '' : ' ' . $this->_sendmailArgs) . ' -f  
' . escapeshellarg($from) . ' -- ' . $recipients, 'w');

Should I open a new ticket for this issue?





More information about the bugs mailing list