diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-12-14 12:38:42 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-12-14 12:38:42 +0100 |
commit | 0f4e2f81342caed51709674c96ce5919cfc5913b (patch) | |
tree | 3e70df8cf3139133057204e8eb71b42684362683 /program/steps/mail | |
parent | 3f08b3a35af0305adada893cbef48336aa7851fa (diff) |
Remove brackets for recipients without name
Diffstat (limited to 'program/steps/mail')
-rw-r--r-- | program/steps/mail/sendmail.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc index d48834bb4..36d850f8f 100644 --- a/program/steps/mail/sendmail.inc +++ b/program/steps/mail/sendmail.inc @@ -219,11 +219,11 @@ function rcmail_email_input_format($mailto, $count=false, $check=true) // address in brackets without name (do nothing) if (preg_match('/^<'.$email_regexp.'>$/', $item)) { $item = rcube_idn_to_ascii(trim($item, '<>')); - $result[] = '<' . $item . '>'; + $result[] = $item; // address without brackets and without name (add brackets) } else if (preg_match('/^'.$email_regexp.'$/', $item)) { $item = rcube_idn_to_ascii($item); - $result[] = '<' . $item . '>'; + $result[] = $item; // address with name (handle name) } else if (preg_match('/<*'.$email_regexp.'>*$/', $item, $matches)) { $address = $matches[0]; |