in reply to Re: Re: Re: saving pdf attachments
in thread saving pdf attachments

Hi Tachyon, I figured out the problem. For pdf files at least, the quoted-printable format was missing an "=" at the end of one or two lines. So, when I ran it through the MIME::QuotedPrint::decode_qp, the extra control-M (\r) was getting stripped. I'm not sure why it works, but I'm doing a s/\n$/\r\n/ on lines that don't end with =.

Thanks for all the help to everyone!

busch4al

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: saving pdf attachments
by tachyon (Chancellor) on Feb 28, 2003 at 21:24 UTC

    You should be unwrapping it accoring to the spec (soft line breaks). Then modifying this to allow for the corrupt examples. But I guess you are now.....

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print