6.0.0-alpha12
6/7/25

[#5412] SMTP error when using a particular fullname
Summary SMTP error when using a particular fullname
Queue IMP
Queue Version 4.1.4
Type Bug
State Resolved
Priority 2. Medium
Owners slusarz (at) horde (dot) org
Requester reg (at) evolix (dot) fr
Created 05/30/2007 (6583 days ago)
Due
Updated 06/12/2007 (6570 days ago)
Assigned 05/30/2007 (6583 days ago)
Resolved 06/12/2007 (6570 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
06/12/2007 12:28:38 AM Michael Slusarz Comment #7
State ⇒ Resolved
Reply to this comment
Fixing this uncovered another bug - we were not wrapping these long 
encoded words in the correct place.  Both of these bugs have been 
fixed in Horde 3.1.5 and HEAD.
05/30/2007 08:22:56 AM Jan Schneider Assigned to Michael Slusarz
State ⇒ Assigned
 
05/30/2007 07:46:37 AM reg (at) evolix (dot) fr Comment #6 Reply to this comment
I'm tired, but I have a patch :-)
Of course, it's "\n", not '\n' in the patch.


05/30/2007 03:45:42 AM reg (at) evolix (dot) fr Comment #5
New Attachment: horde-mime.diff Download
Reply to this comment
I'm tired, but I have a patch :-)

Comments welcome.
05/30/2007 03:27:53 AM reg (at) evolix (dot) fr Comment #4 Reply to this comment
And second part of this strange problem is in Horde/MIME.php  and 
_encode function :



         /* RFC 2047 [2] states that no encoded word can be more than 75

            characters long. If longer, you must split the word. */

         if (($txt_len + $char_len + 7) > 75) {

             $pos = intval((68 - $char_len) / 2);

             return MIME::_encode(substr($text, 0, $pos), $charset) . 
'  ' . MIME::_encode(substr($text, $pos), $charset);



That's why this problem depends of the lenght of the Full Name !
05/30/2007 02:02:28 AM reg (at) evolix (dot) fr Comment #3 Reply to this comment
The problem is with an ASCII "Line Feed" caracter detected at the end 
of $atom...
05/30/2007 01:07:06 AM reg (at) evolix (dot) fr Comment #2 Reply to this comment
This bug seems similar to #1577.Then I precise that I use PEAR from 
Debian Sarge.



The problem is in RFC822.php :



// Check for control characters (ASCII 0-31):

if (preg_match('/[\\x00-\\x1F]+/', $atom)) {



If I print atom, I see :

=?iso-8859-1?b?6Xh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHg=?=




05/30/2007 12:35:28 AM reg (at) evolix (dot) fr Comment #1
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Queue ⇒ IMP
Summary ⇒ SMTP error when using a particular fullname
Type ⇒ Bug
Reply to this comment
When I set  this particular fullname (31 caracters and the first have 
a french accent => EACUTE in HTML) in my personal information:

"éxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", I can't sent a mail with IMP !

I have the message: "Error  There was an error sending your message: 
unable to set sender to [@]" and my mail server (Postfix) says me that 
MAIL FROM is illegal (I use $conf['mailer']['type'] = 'smtp';).

This bug is very strange for me but I see it on different systems 
(browser+server).

Saved Queries