PDF Woes -- Need example
Julian Field
mailscanner at ecs.soton.ac.uk
Fri May 28 12:08:09 IST 2004
I have found the problem, but can't figure out how to correct it. The docs
in the MIME-tools say that the CRLF sequences are fuzzed on output, which
is the problem. But I cannot find the actual code that does this. For 7bit
decoding it is dead easy to find, but that code is not used by the
quoted-printable handler and I can't find any others.
:-(
At 10:10 28/05/2004, you wrote:
>As already emailed... Happy to supply PDF & example mutt command that will
>guarantee a broken PDF from both solaris & linux env's.
>
>-----Original Message-----
>From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On
>Behalf Of Julian Field
>Sent: 28 May 2004 02:01
>To: MAILSCANNER at JISCMAIL.AC.UK
>Subject: Re: PDF Woes -- Need example
>
>At 01:18 28/05/2004, you wrote:
> > > -----Original Message-----
> > > From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK]
> > > On Behalf Of Julian Field
> > > Sent: Friday, 28 May 2004 12:29 AM
> > > To: MAILSCANNER at JISCMAIL.AC.UK
> > > Subject: Re: PDF Woes
> > >
> > >
> > > Here is the start of a PDF file before Outlook has got anywhere near it:
> > > 0000000 % P D F - 1 . 3 \r % â ã Ï Ó \r \n
> > > 0000020 1 3 1 7 4 0 o b j \r
> > > And when it has been sent to a copy of sendmail (but before sendmail
> > > has done anything with the data at all) %
> > > 0000660 P D F - 1 . 3 = 0 D % = E 2 = E
> > > 0000700 3 = C F = D 3 \n 1 3 1 7 4 0
> > > 0000720 o b j = 0 D
> > > The first \r gets correctly turned into =0D. The \r\n is converted
> > > into \n.
> > > So Outlook has already screwed the file by converting it into
> > > quoted-printable. When these lines are put back together by
> > > MailScanner, if it has had to rebuild the body of the message, it
> > > packs them according to the quoted-printable spec, which leaves them
> > > in a state where Acrobat can't read them.
> > >
> > > What I will try is have MailScanner rebuild text/pdf and
> > > application/pdf (and the x- versions) as Base64, to see if that
> > > helps. It can't help Outlook's corruption, which has already
> > > happened, but it may avoid making the situation any worse.
> >
> >Thankyou!
>
>Do you have a PDF file which you know which both
>a) Outlook 2003 sends as quoted printable, and
>b) gets corrupted by the clean message signing function ?
>
>I need something to test against to see if rebuilding using Base64 makes
>any difference at all, or whether the damage is already done before the
>message is rebuilt. I don't want to just "suck it and see" as it probably
>is going to waste a lot of my time...
>
>If you can get something to me quickly, I can add the code before the 1st
>June release. Would be good to have a fix in that release if we can.
>--
>Julian Field
>www.MailScanner.info
>Professional Support Services at www.MailScanner.biz MailScanner thanks
>transtec Computers for their support PGP footprint: EE81 D763 3DB0 0BFD
>E1DC 7222 11F6 5947 1415 B654
>
>-------------------------- MailScanner list ----------------------
>To leave, send leave mailscanner to jiscmail at jiscmail.ac.uk
>Before posting, please see the Most Asked Questions at
>http://www.mailscanner.biz/maq/ and the archives at
>http://www.jiscmail.ac.uk/lists/mailscanner.html
>
>
>
>====================================================================
>This e-mail and any attachments may be confidential and/or legally
>privileged. If you have received this e-mail and you are not a named
>addressee, please inform Landmark Information Group on 01392 441700
>and then delete the e-mail from your system. If you are not a named
>addressee you must not use, disclose, distribute, copy, print or rely
>on this e-mail. This email and any attachments have been scanned for
>viruses and to the best of our knowledge are clean. To ensure
>regulatory compliance and for the protection of our clients and
>business, we may monitor and read e-mails sent to and from our
>servers.
>
>-------------------------- MailScanner list ----------------------
>To leave, send leave mailscanner to jiscmail at jiscmail.ac.uk
>Before posting, please see the Most Asked Questions at
>http://www.mailscanner.biz/maq/ and the archives at
>http://www.jiscmail.ac.uk/lists/mailscanner.html
--
Julian Field
www.MailScanner.info
MailScanner thanks transtec Computers for their support
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
-------------------------- MailScanner list ----------------------
To leave, send leave mailscanner to jiscmail at jiscmail.ac.uk
Before posting, please see the Most Asked Questions at
http://www.mailscanner.biz/maq/ and the archives at
http://www.jiscmail.ac.uk/lists/mailscanner.html
More information about the MailScanner
mailing list