SM 1.4.10 and problems with attachments.

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

SM 1.4.10 and problems with attachments.

Josef Karliak-2
   Hi there,
   SM 1.4.10 has some problems with displaying national characters in  
the attachments. Some user sent a file named "N3254622401- FK, pí  
Sárová, 21,10,11.p df" (don't ask :-/), SM change PDF to P_DF (SM  
recognize it as a "application/octet-stream") and user couldn't open  
it of course. Is there some issue with encoding/decoding ? Running on  
sles 11 sp1, apache2 2.2.10, php5.2.14. Any kick to the right way ?
   BTW, I tried SM 1.4.22, problem persists. Isn't problem with some  
config of the PHP/apache ?
   Thanks you all.
   J.K.

--
Ma domena pouziva zabezpeceni a kontrolu SPF (www.openspf.org) a  
DomainKeys/DKIM (with ADSP) . Pokud mate problemy s dorucenim emailu,  
zacnete pouzivat metody overeni puvody emailu zminene vyse. Dekuji.
My domain use SPF (www.openspf.org) and DomainKeys/DKIM (with ADSP)  
policy and check. If you've problem with sending emails to me, start  
using email origin methods mentioned above. Thank you.

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
-----
squirrelmail-i18n mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
Information about translations: http://squirrelmail.org/wiki/LanguageTranslation
Statistics for translations: http://l10n-stats.squirrelmail.org/
List address: [hidden email]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.internationalization
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-i18n

attachment0 (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: SM 1.4.10 and problems with attachments.

Tomas Kuliavas
Josef Karliak-2 wrote
   Hi there,
   SM 1.4.10 has some problems with displaying national characters in  
the attachments. Some user sent a file named "N3254622401- FK, pí  
Sárová, 21,10,11.p df" (don't ask :-/), SM change PDF to P_DF (SM  
recognize it as a "application/octet-stream") and user couldn't open  
it of course. Is there some issue with encoding/decoding ? Running on  
sles 11 sp1, apache2 2.2.10, php5.2.14. Any kick to the right way ?
   BTW, I tried SM 1.4.22, problem persists. Isn't problem with some  
config of the PHP/apache ?
Enable message_details plugin in SquirrelMail and check email source. Or use other tools to view rfc822 message source.

Please show all Content-* headers that are set for that attachment or mime part.

--
Tomas
Reply | Threaded
Open this post in threaded view
|

Re: SM 1.4.10 and problems with attachments.

Josef Karliak-2
   Hi Tom,

   "message detail" plugin shows me :
Tělo zprávy
Entita Typ obsahu (Content-Type) Jméno Kódování
1 multipart/related
1.1 multipart/alternative
1.1.1 text/plain quoted-printable
1.1.2 text/html quoted-printable
1.2 image/gif image001.gif base64
1.3 image/gif image002.gif base64
2 application/octet base64


  and this is a header from that crazy named attachment:
   ------_=_NextPart_001_01CC8FE5.193179FD
Content-Type: application/octet-stream;
name="=?iso-8859-2?Q?N411021401-_FNHK=2C_p=ED_S=E1gnerov=E1=2C_21=2C10=2C11=2Ep?=
=?iso-8859-2?Q?df?="
Content-Transfer-Encoding: base64
Content-Description:  
=?iso-8859-2?Q?N411021401-_FNHK=2C_p=ED_S=E1gnerov=E1=2C_21=2C10=2C11=2Ep?=
=?iso-8859-2?Q?df?=
Content-Disposition: attachment;
filename="=?iso-8859-2?Q?N411021401-_FNHK=2C_p=ED_S=E1gnerov=E1=2C_21=2C10=2C11=2Ep?=
=?iso-8859-2?Q?df?="

JVBERi0xLjQKJcfsj6IKNSAwIG9iago8PC9MZW5ndGggNiAwIFIvRmlsdGVyIC9GbGF0ZURlY29k
ZT4+CnN0cmVhbQp4nO09yY5cx5HQ2HPpi36hLsZUyazn3BcBA1gjaWRtlkxy7IHkwaDZTYlLk5Ra
ZI/FT/GP+OzjfAaPPugHBhAwEblFvHr5amk2KcqWBEhR+XKNjIiMjIiM/nohBqkWAv+twMmDI4Bj
.............

   Thanks for your time.
   J.K.


Cituji Tomas Kuliavas <[hidden email]>:

>
>
> Josef Karliak-2 wrote:
>>
>>    Hi there,
>>    SM 1.4.10 has some problems with displaying national characters in
>> the attachments. Some user sent a file named "N3254622401- FK, pí
>> Sárová, 21,10,11.p df" (don't ask :-/), SM change PDF to P_DF (SM
>> recognize it as a "application/octet-stream") and user couldn't open
>> it of course. Is there some issue with encoding/decoding ? Running on
>> sles 11 sp1, apache2 2.2.10, php5.2.14. Any kick to the right way ?
>>    BTW, I tried SM 1.4.22, problem persists. Isn't problem with some
>> config of the PHP/apache ?
>>
> Enable message_details plugin in SquirrelMail and check email source. Or use
> other tools to view rfc822 message source.
>
> Please show all Content-* headers that are set for that attachment or mime
> part.
>
> --
> Tomas
> --
> View this message in context:  
> http://old.nabble.com/SM-1.4.10-and-problems-with-attachments.-tp32708393p32711763.html
> Sent from the squirrelmail-i18n mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> The demand for IT networking professionals continues to grow, and the
> demand for specialized networking skills is growing even more rapidly.
> Take a complimentary Learning@Cisco Self-Assessment and learn
> about Cisco certifications, training, and career opportunities.
> http://p.sf.net/sfu/cisco-dev2dev
> -----
> squirrelmail-i18n mailing list
> Posting guidelines: http://squirrelmail.org/postingguidelines
> Information about translations:  
> http://squirrelmail.org/wiki/LanguageTranslation
> Statistics for translations: http://l10n-stats.squirrelmail.org/
> List address: [hidden email]
> List archives:  
> http://news.gmane.org/gmane.mail.squirrelmail.internationalization
> List info (subscribe/unsubscribe/change options):  
> https://lists.sourceforge.net/lists/listinfo/squirrelmail-i18n


--
Ma domena pouziva zabezpeceni a kontrolu SPF (www.openspf.org) a  
DomainKeys/DKIM (with ADSP) . Pokud mate problemy s dorucenim emailu,  
zacnete pouzivat metody overeni puvody emailu zminene vyse. Dekuji.
My domain use SPF (www.openspf.org) and DomainKeys/DKIM (with ADSP)  
policy and check. If you've problem with sending emails to me, start  
using email origin methods mentioned above. Thank you.

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
-----
squirrelmail-i18n mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
Information about translations: http://squirrelmail.org/wiki/LanguageTranslation
Statistics for translations: http://l10n-stats.squirrelmail.org/
List address: [hidden email]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.internationalization
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-i18n

attachment0 (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: SM 1.4.10 and problems with attachments.

Tomas Kuliavas
Your attachment name doesn't have space between 'p' and 'df'. Two
consecutive encoded parts must be joined without space when header is
decoded. It is displayed correctly in SquirrelMail 1.4.22 with UW imap, if
I haven't lost some whitespace when copied your header into sample email.

Which IMAP server are you using?

When you view that message in SquirrelMail message listing, URL looks like
'something/src/read_body.php?mailbox=SOMENAME&passed_id=SOMENUMBER&startMessage=1'.

Could you enable info plugin, go to SquirrelMail user Options -> IMAP
server information and execute two tests.

TEST_0 - replace INBOX with SOMENAME as it is written in your URL.

for example in my test it is 'SELECT mail/Drafts'

and

TEST_6 - Put 'UID FETCH SOMENUMBER BODYSTRUCTURE' instead of that FETCH
command.

For example in my test it is 'UID FETCH 2 BODYSTRUCTURE'.

Both tests must be executed at the same time. It should not break anything
in your email account as SELECT and UID FETCH commands don't modify
mailbox.

If I remember correctly SquirrelMail gets that name from BODYSTRUCTURE
response and some IMAP servers like to re-encode headers. Your file name
has one catch. If some "smart" encoder tries to encode such name, it can
fail to encode second part properly.

2011.10.25 08:11 Josef Karliak rašė:

>    Hi Tom,
>
>    "message detail" plugin shows me :
> Tělo zprávy
> Entita Typ obsahu (Content-Type) Jméno Kódování
> 1 multipart/related
> 1.1 multipart/alternative
> 1.1.1 text/plain quoted-printable
> 1.1.2 text/html quoted-printable
> 1.2 image/gif image001.gif base64
> 1.3 image/gif image002.gif base64
> 2 application/octet base64
>
>
>   and this is a header from that crazy named attachment:
>    ------_=_NextPart_001_01CC8FE5.193179FD
> Content-Type: application/octet-stream;
> name="=?iso-8859-2?Q?N411021401-_FNHK=2C_p=ED_S=E1gnerov=E1=2C_21=2C10=2C11=2Ep?=
> =?iso-8859-2?Q?df?="
> Content-Transfer-Encoding: base64
> Content-Description:
> =?iso-8859-2?Q?N411021401-_FNHK=2C_p=ED_S=E1gnerov=E1=2C_21=2C10=2C11=2Ep?=
> =?iso-8859-2?Q?df?=
> Content-Disposition: attachment;
> filename="=?iso-8859-2?Q?N411021401-_FNHK=2C_p=ED_S=E1gnerov=E1=2C_21=2C10=2C11=2Ep?=
> =?iso-8859-2?Q?df?="
>
> JVBERi0xLjQKJcfsj6IKNSAwIG9iago8PC9MZW5ndGggNiAwIFIvRmlsdGVyIC9GbGF0ZURlY29k
> ZT4+CnN0cmVhbQp4nO09yY5cx5HQ2HPpi36hLsZUyazn3BcBA1gjaWRtlkxy7IHkwaDZTYlLk5Ra
> ZI/FT/GP+OzjfAaPPugHBhAwEblFvHr5amk2KcqWBEhR+XKNjIiMjIiM/nohBqkWAv+twMmDI4Bj
> .............
>
>    Thanks for your time.
>    J.K.
>
>
> Cituji Tomas Kuliavas <[hidden email]>:
>
>>
>>
>> Josef Karliak-2 wrote:
>>>
>>>    Hi there,
>>>    SM 1.4.10 has some problems with displaying national characters in
>>> the attachments. Some user sent a file named "N3254622401- FK, pí
>>> Sárová, 21,10,11.p df" (don't ask :-/), SM change PDF to P_DF (SM
>>> recognize it as a "application/octet-stream") and user couldn't open
>>> it of course. Is there some issue with encoding/decoding ? Running on
>>> sles 11 sp1, apache2 2.2.10, php5.2.14. Any kick to the right way ?
>>>    BTW, I tried SM 1.4.22, problem persists. Isn't problem with some
>>> config of the PHP/apache ?
>>>
>> Enable message_details plugin in SquirrelMail and check email source. Or
>> use
>> other tools to view rfc822 message source.
>>
>> Please show all Content-* headers that are set for that attachment or
>> mime
>> part.
>>
>> --
>> Tomas
>> --
>> View this message in context:
>> http://old.nabble.com/SM-1.4.10-and-problems-with-attachments.-tp32708393p32711763.html
>> Sent from the squirrelmail-i18n mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> The demand for IT networking professionals continues to grow, and the
>> demand for specialized networking skills is growing even more rapidly.
>> Take a complimentary Learning@Cisco Self-Assessment and learn
>> about Cisco certifications, training, and career opportunities.
>> http://p.sf.net/sfu/cisco-dev2dev
>> -----
>> squirrelmail-i18n mailing list
>> Posting guidelines: http://squirrelmail.org/postingguidelines
>> Information about translations:
>> http://squirrelmail.org/wiki/LanguageTranslation
>> Statistics for translations: http://l10n-stats.squirrelmail.org/
>> List address: [hidden email]
>> List archives:
>> http://news.gmane.org/gmane.mail.squirrelmail.internationalization
>> List info (subscribe/unsubscribe/change options):
>> https://lists.sourceforge.net/lists/listinfo/squirrelmail-i18n
>
>
>
> --
> Ma domena pouziva zabezpeceni a kontrolu SPF (www.openspf.org) a
> DomainKeys/DKIM (with ADSP) . Pokud mate problemy s dorucenim emailu,
> zacnete pouzivat metody overeni puvody emailu zminene vyse. Dekuji.
> My domain use SPF (www.openspf.org) and DomainKeys/DKIM (with ADSP)
> policy and check. If you've problem with sending emails to me, start
> using email origin methods mentioned above. Thank you.
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>



------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
-----
squirrelmail-i18n mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
Information about translations: http://squirrelmail.org/wiki/LanguageTranslation
Statistics for translations: http://l10n-stats.squirrelmail.org/
List address: [hidden email]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.internationalization
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-i18n