hi jon, thanx for your reply,
below is my previous post... it's quite complete ;)
i was going to send u a pdf test file... but then i realized that i could send
a link to one: http://www.stillhq.com/pdfdb/000019/data.pdf
Send this pdf with an outlook 2000 or higher, with default confs...
The problem seems to be in the quoted-printable decoding... briefing: it's done twice, and pairs of "=\n" chars at end
of a line (they occur in pdf encoded images) are deleted in the second one... this lead to less lines and less chars (but few, and not always) in the received file.
My installations:
1: php 4.3.3 and/or php 4.3.2, squirrel 1.4.2 and/or 1.4.3, apache 1.3.27 and/or 1.3.29, remote imap server (Imapd Pop2d & Pop3d, www.Washington.EDU, version 2000,REV=2001.05.21.04.41)
2: php 4.3.3 and/or php 4.3.2, squirrel 1.4.2 and/or 1.4.3, apache 1.3.27 and/or 1.3.29, local imap server (courier imap, 2.2.1) with authdaemon.
---------------------------------------------------------
my previous post:
>Date: 05/31/2004 21:28
>
>hi,
>related to my problem with mangled pdf's...
>i upgraded to 1.4.3RC1, but this hasn't resolve my problem...
>sorry, i erroneously thought it could be related with b64 decoding, but i've seen it's not: it's a "quoted-printable" attachment
>
>I know IE has pdf issues, but my behaviour occurs with every web browser i've tested, so i assume it's not an IE issue.
>I've gone deeper into my problem: i've checked the file in the server: it's "Content-Transfer-Encoding: quoted-printable" encoded in the mail recipient, and i'm almost sure it's ok: a POP connection or an IMAP FETCH via telnet 143 shows a perfect attachment...
>The decoding process involves, as far as i've seen, the next points:
> it's almost ascii (a pdf ascii formated) with just "Lf" line returns, except for some "=XX" codes... i've noted that these codes are again decoded into "8 bit chars"... and i've seen that all of them are correctly managed, and with a little trick:
> an "=" char at end of line "seems to mean": "delete next line jump, cause this is a single line" (this is correctly done),
> but after all this decoding has been done "some other app makes a second decoding applying the same rules" to what should be left as is... and i have enough bad lucky that an ascii encoded image in the pdf file contains a "=" at the end of a line... so i end up with some lines with double length... and the pdf is that way mangled.
>My question is: it's possible that squirrel php code is applied twice somewhere in the downloading process? how could i eliminate this possibility? i assume that apache or my imap server should be ok... as many other people would end with damaged pdf's all time...
>BTW: i'm trying to replicate the process from a PC, but it seems not possible: the machine which actually sends the emails is a PC with Outlook (i'm not its admin), and i've noticed that other computers prefer b64 attachments while this one prefers "quoted-printable"... may be the best solution would be figth with just this machine... but i think you, squirrel developers, should know about this behaviour... in case it's related with squirrel...
>
>any comment is wellcome,
>thanks
--------------------------------------------------------- >Date: Sun, 13 Jun 2004 16:45:21 -0500 (CDT) >Subject: Re: [SM-USERS] SM mangle quoted printable attachments >From: "Jonathan Angliss" <[EMAIL PROTECTED]> > >>> nobody answered my post about quoted-printable attachments > > >I'm unable to find your email, mind reposting? Specific setup informatio= >n >is often required, such as platform, PHP, webserver, etc etc. > >>> now i'm able to reproduce the error: >>> begin with: >>> - Ms Outlook 2000 or higher as client app which sends email. Default >>> options (or even any other "usual" conf) >>> - squirrel (last version) as reader >>> - pdfs usually produced by Oracle apps as attachments (but not "all" >>> pdfs... i'll explain the point to a developer if needed) > > >Might this not be caused by an issue with the PDFs created by Oracle?=20 >Would be interested to see the PDF if possible. > >>> - mangled pdf impossible to view or heavily truncated. > > >Mangled in what way? Have you looked at it in a byte editor? > >--=20 >Jonathan Angliss ><[EMAIL PROTECTED]> >
------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 -- squirrelmail-users mailing list List Address: [EMAIL PROTECTED] List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
