Can't open mail with UTF-8 attachment filename

View: New views
6 Messages — Rating Filter:   Alert me  

Can't open mail with UTF-8 attachment filename

by Alexei-17 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

SM hung trying to open message with UTF-8 attachment filename (Cyrillic letters).

If I rename message to English letters only everything OK.

 

In Apache error log:

[Wed Jul 29 12:20:08 2009] [error] [client 192.168.3.206] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\functions\\imap_general.php on line 92, referer: http://192.168.3.9/src/right_main.php

 

SM 1.4.19 and 1.4.17

Apache 2.2.11

PHP 5.2.9

 

Invalid message header:

 

Return-Path: Gamova-ER@...

Received: from mx.chsb.ru ([127.0.0.1])

            by chsb.ru

            ; Wed, 29 Jul 2009 09:41:54 +0600

Received: from 88.205.208.89

        (SquirrelMail authenticated user Gamova-ER)

        by mx.chsb.ru with HTTP;

        Wed, 29 Jul 2009 09:41:54 +0600 (Ekaterinburg Daylight Time)

Message-ID: <01ac83b62c5bb792026eea5d4f4a1e6b.squirrel@...>

Date: Wed, 29 Jul 2009 09:41:54 +0600 (Ekaterinburg Daylight Time)

Subject: test

From: Gamova-ER@...

To: oss@...

User-Agent: SquirrelMail/1.4.17

MIME-Version: 1.0

Content-Type: multipart/mixed;boundary="----=_20090729094154_52245"

X-Priority: 3 (Normal)

Importance: Normal

 

------=_20090729094154_52245

Content-Type: text/plain; charset="utf-8"

Content-Transfer-Encoding: 8bit

 

gdfgdfgdfdd

------=_20090729094154_52245

Content-Type: text/richtext; name="

 =?utf-8?Q?=D0=A3=D1=81=D0=BB=D0=BE=D0=B2=D0=B8=D1=8F_=D0=BA=D1=80=D0=B5?=

 =?utf-8?Q?=D0=B4=D0=B8=D1=82=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F_=D0=B2_?=

 =?utf-8?Q?=D0=A1=D0=B1=D0=B5=D1=80=D0=B1=D0=B0=D0=BD=D0=BA=D0=B5_=D0=A0?=

 =?utf-8?Q?=D0=BE=D1=81=D1=81=D0=B8=D0=B8.rtf?="

Content-Transfer-Encoding: 8bit

Content-Disposition: attachment; filename="

 =?utf-8?Q?=D0=A3=D1=81=D0=BB=D0=BE=D0=B2=D0=B8=D1=8F_=D0=BA=D1=80=D0=B5?=

 =?utf-8?Q?=D0=B4=D0=B8=D1=82=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F_=D0=B2_?=

 =?utf-8?Q?=D0=A1=D0=B1=D0=B5=D1=80=D0=B1=D0=B0=D0=BD=D0=BA=D0=B5_=D0=A0?=

 =?utf-8?Q?=D0=BE=D1=81=D1=81=D0=B8=D0=B8.rtf?="

 

 


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
-----
squirrelmail-devel mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-devel@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel

Re: Can't open mail with UTF-8 attachment filename

by ZedAlert :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have the same error with non-latin attachments. Any fixes?

Re: Can't open mail with UTF-8 attachment filename

by Tomas Kuliavas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ZedAlert wrote:
I have the same error with non-latin attachments. Any fixes?
Original report is several months old. Please provide more information about your setup. Developers must be able to reproduce it in order to understand it.

In Courier-IMAP + Apache + PHP setup attachments with 8bit names can be downloaded without timeout error. Attachment name should not affect attachment retrieval in imap_general.php line 92. Code does not use attachment name there.

Which IMAP server are you using? Do you use some proxy, third party extensions in webserver or PHP? How big is that attachment? What memory limits are set in your PHP configuration? Do you have issues with text/richtext only or application/octet-stream attachments also show that error?

--
Tomas

Re: Can't open mail with UTF-8 attachment filename

by ZedAlert :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have the same sonfiguration, like in first post:
hMailServer 5.1.1 + MySQL 5.1.34
Apache 2.2.11 + PHP 5.2.9 (memory_limit 128M, bz2 curl gd2 gettext imap mbstring mcrypt mhash mysql zip)
SquirrelMail 1.4.19 (without any plugins)

Problem is only with non-latin name attachments (no matter how large it is, from 1k to 15M), other attachments works fine when opening message. From standalone client (ie OutlookExpress) there is no problem with any attachments in any encoding.

Re: Can't open mail with UTF-8 attachment filename

by Tomas Kuliavas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ZedAlert wrote:
I have the same sonfiguration, like in first post:
hMailServer 5.1.1 + MySQL 5.1.34
Apache 2.2.11 + PHP 5.2.9 (memory_limit 128M, bz2 curl gd2 gettext imap mbstring mcrypt mhash mysql zip)
SquirrelMail 1.4.19 (without any plugins)

Problem is only with non-latin name attachments (no matter how large it is, from 1k to 15M), other attachments works fine when opening message. From standalone client (ie OutlookExpress) there is no problem with any attachments in any encoding.
hMailServer fails to parse message body structure correctly. It is possible that issue was fixed along with http://www.hmailserver.com/issues/?241 fixes or in some other fix. I can reproduce your problem on hMailServer 5.1.1, but can't on 5.3 b1617.

Consider upgrading your mail server. Newer hMailServer versions include fixes and imap performance improvements. Current beta versions fix 8bit search issues. hMailServer developers should release new beta build this week in order to fix some message indexing performance issues.

Outlook Express does not have problem with that message, because it does not use IMAP same way as SquirrelMail does.

--
Tomas

Re: Can't open mail with UTF-8 attachment filename

by ZedAlert :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tomas Kuliavas wrote:
Consider upgrading your mail server. Newer hMailServer versions include fixes and imap performance improvements.
--
Tomas
Thanks Tomas! I have no idea that my mail server software is outdated, upgrading to 5.3 fixed my problem!