Posted in Misc

Gmail IMAP under Thunderbird : problems with PDF files ?

November 12, 2007 - 3 comments

My wife had some problems today sending her resume in PDF to some companies.
She used the web interface of Gmail.
Some people reported they were unable to open the file.

We’ve made some tests. She tried to send an email with the PDF attachment to these recipients (carbon copy, not separate emails) :
- HER Gmail address configured in Thunderbird using IMAP
- MY Gmail address using the web interface
- MY work address configured in Thunderbird using IMAP (courier-imap server)

I was able to open the file on my home and work addresses while she was not able to open the file in Thunderbird.

I fetched the corrupted attachment on her side and compared both versions :

-rw-r–r– 1 sw sw 138052 2007-11-12 19:55 cv_ok.pdf
-rwxr–r– 1 sw sw 136198 2007-11-12 19:56 cv_not_ok.pdf

cv_ok.pdf is the file I received..
cv_not_ok.pdf is the file she received..

Apparently the file gets corrupted at the Gmail IMAP level.
Indeed, if she tries to open the PDF using the web interface it works fine.

Now, we still need to figure out why some people were not able to open the file. I’m sure they don’t use Gmail IMAP.

She has been sending that copy of her resume for months and she never had any issue until today.

I found this link, which confirms there are issues with PDF in Gmail :
http://groups.google.com/group/Gmail-POP-and-Forwarding/browse_thread/thread/6d831984edf6a1ac/a62973111852bc82?lnk=raot

Any idea is welcomed !

Comments

Luca

November 14, 2007 - 15:59

Here’s a workaround: open the options, go to the advanced tab and open the config editor.
Search these 2 variables:

mail.imap.fetch_by_chunks
mail.server.default.fetch_by_chunks

and set them both to false.
Restart TBird. Enjoy your attachments ;)

Brecht

November 18, 2007 - 14:24

Luca, you made my day!

I had a bunch of pdf’s in my (IMAP) inbox; couldn’t open any of them in TB. I had to use webmail (firefox) instead. Setting the chunk-prefs to false solved the problem. I had to move the mails to another folder and back though to redownload them.

chad

November 25, 2007 - 15:17

Luca!! Thanks! That solved my problem!

Leave Comment

Please consider visiting the partners below if you enjoyed this article :

If this post saved you time and money, please consider checking my Amazon wishlist.

Before submitting, some rules :
- Is your comment related to the article ?
- You're having a problem ? Have you checked Google, other howtos, docs, manpages ?
- You're still having the problem ? Have you raised log verbosity, checked traces, ran tcpdump ?
- Have you checked your configuratoin for typo ?
Unless your comment is providing additional info or respect the rules above, DON'T comment.
If you don't understand what you are doing, I urge you to read the documentation, I'm not your free Level 1 helpdesk guy.