Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#1486174 closed Bugs (wontfix)

Separated words on subject

Reported by: jasb Owned by:
Priority: 5 Milestone: 0.3.1
Component: MIME parsing Version: git-master
Severity: normal Keywords:
Cc:

Description

Hi there,
I've been seeing in some emails, that on the subject the words split by themself.
Attach there a sample and the raw message.
The word in case is:

"DecimalFire?-Direcção"
and it's displayed as:
"Decimal Fire-Direcção"

Attachments (2)

separates words.JPG (8.6 KB) - added by jasb 4 years ago.
separeted words.txt (2.7 KB) - added by jasb 4 years ago.

Download all attachments as: .zip

Change History (13)

Changed 4 years ago by jasb

Changed 4 years ago by jasb

comment:1 Changed 4 years ago by jasb

  • Component changed from Addressbook to MIME parsing
  • Version changed from 0.3-stable to svn-trunk

comment:2 Changed 4 years ago by alec

  • Milestone changed from later to 0.3.1

comment:3 Changed 4 years ago by netbit

I can't reproduce it here with latest trunk. What's your server OS, IMAP server, PHP version, etc? What your IMAP debug says?

Here's my IMAP debug output:

[27-Sep-2009 22:15:34 -0300]: S: From: Jorge Bastos - Decimal <decimal@decimal.pt>
To: 'Jorge Bastos - Decimal' <jorge@decimal.pt>
Subject: =?iso-8859-1?Q?ver_isto_=3D=3E_FW:_Envio_de_erro_da_aplica=E7=E3o_Decimal?=
	=?iso-8859-1?Q?Fire-Direc=E7=E3o?=

comment:4 Changed 4 years ago by jasb

Debian on SID
PHP 5.2.11
DBMail IMAP server (GIT HEAD on 2.3x series)

Hum i already deleted the message, but I'm going to get another message with that symptom.

comment:5 Changed 4 years ago by alec

Also works for me.

comment:6 Changed 4 years ago by alec

If you want to do more tests, check line 2703 in include/rcube_imap.php:

$input = preg_replace("/\?=\s+=\?/", '?==?', $input);

and line 1565 in lib/imap.inc

$string = preg_replace('/\n\s*/', ' ', $string);

comment:7 Changed 4 years ago by jasb

That is for netbit or for me?
I know nothing about REGEX :P

comment:8 Changed 4 years ago by alec

Maybe you could create a test account on your IMAP server, that I could connect to from my box? Write to alec at alec.pl.

comment:9 Changed 4 years ago by alec

So, after testing, that are your IMAP server issues. Let's see. For specified headers

Subject: =?utf-8?B?RGlzZnJ1dGEgZG9zIG1lbGhvcmVzIGpvZ29zIG5vIHRldSB0?=
 =?utf-8?B?ZWxlbcOzdmVsDQ==?=
Subject: =?ISO-8859-1?Q?SoundStation2_a_nova_gera=E7=E3o_de_telefones_de_confer=EAncia_d?=
	=?ISO-8859-1?Q?a_Polycom?=

your server reply for FETCH BODY[HEADER.FIELDS (SUBJECT)] is

subject: Disfruta dos melhores jogos no teu t =?iso-8859-1?q?elem=F3vel?=
subject: SoundStation2 a nova =?iso-8859-1?b?Z2VyYefjbw==?= de telefones de =?iso-8859-1?q?confer=EAncia?= d    a Polycom

I'll see if we can handle this cases.

comment:10 Changed 4 years ago by alec

  • Resolution set to wontfix
  • Status changed from new to closed

This replies breaks RFC2047 rules, so we won't fix this. A solution would be to fetch raw message headers and perse them, but for performance reasons it's not good idea.

comment:11 Changed 4 years ago by jasb

This was fixed today on DBMail GIT HEAD.
Has you said, was a IMAP Server bug!

Thanks Alec :)
You can close this,

Note: See TracTickets for help on using tickets.