DavMail Clog for Big File

I’ve been suffered from davmail unable retrieving email from office exchange server. This never happened before. I use POP for Apple Mail connection to retrieve mail from OWA. I once wrote about davmail, and also how to setup it as server gateway to be used by iPhone or iPad.

I tried to several time recreate account configuration in Apple Mail, try to use thunderbird, try to use IMAP instead of POP, try both from laptop or from iPhone (using davmail gateway run on my VPS), but all behave strangely. If I use POP, it stopped to same email from my manager around 27/12/2011. The very same email. If I use IMAP, sometimes it is give long delay to receive it on my apple mail. I checked directly to OWA exchange the mail was there, and there’s no problem on creating / sending email using either POP or IMAP.

The gateway on VPS perform better, it notice my iPhone everytime new email coming. But apple mail give long delay to receive the mail, even after I ask to check and download email it still give nothing. I tried to google it but found nothing. As temporary solution, I just use IMAP and check OWA frequently. Here’s the log showing everyting is fine.


2012-01-05 10:19:50,793 DEBUG [PopConnection-61700] davmail  - > 262 22478
2012-01-05 10:19:50,793 DEBUG [PopConnection-61700] davmail  - > 263 1698105
2012-01-05 10:19:50,793 DEBUG [PopConnection-61700] davmail  - > 264 4508
2012-01-05 10:19:50,793 DEBUG [PopConnection-61700] davmail  - > 265 12350
2012-01-05 10:19:50,793 DEBUG [PopConnection-61700] davmail  - > 266 119775
2012-01-05 10:19:50,793 DEBUG [PopConnection-61700] davmail  - > 267 1391298
2012-01-05 10:19:50,793 DEBUG [PopConnection-61700] davmail  - > 268 24392
2012-01-05 10:19:50,793 DEBUG [PopConnection-61700] davmail  - > 269 1906133
2012-01-05 10:19:50,793 DEBUG [PopConnection-61700] davmail  - > 270 1392016
2012-01-05 10:19:50,793 DEBUG [PopConnection-61700] davmail  - > 271 1409961
2012-01-05 10:19:50,793 DEBUG [PopConnection-61700] davmail  - > 272 5952
2012-01-05 10:19:50,793 DEBUG [PopConnection-61700] davmail  - > 273 3041
2012-01-05 10:19:50,793 DEBUG [PopConnection-61700] davmail  - > .
2012-01-05 10:19:51,162 DEBUG [PopConnection-61700] davmail  - < RETR 81
2012-01-05 10:19:51,162 DEBUG [PopConnection-61700] davmail  - > +OK 

Last night I tried to inspect more detail about the root cause and decided to setup again POP account on Apple Mail and let it run during the night, after wake up I see nothing on my inbox, but in OWA several email coming. Then I decided to check what’s going on after last email received in Apple Mail. I went through the mail in OWA and check mail coming on 27/12/2011, then there it is. After last email I received, a colleague of mine sent HUGE file as symptom from one of problem we’re facing. I then realized maybe davmail failed to retrieve the mail because file is too large (> 10M). Soon after I delete that message through OWA, the next email coming to Apple Mail instantly. Then it clogged again. I check, there was email with 3M attachment. This is really annoying, why davmail can’t handle this file. 10M is still make sense, but 3M it just really really weird to get clogged!!!

I google’d again and seems this is known issue, as can be read from here. I don’t think there’s more option out there with similar functionality as davmail because when the problem arise I ever tried to look for another software but internet kept saying to use DavMail. There’s no solution from davmail community regarding this problem, the summary is DavMail close connection if it is took long time to retrieve an email. And there’s no such configuration to extend the delay time on DavMail. Looks like somebody should look into .jar file directly eh?

Solution for now, I use IMAP on my iPhone as usual (of course, why would I need to download email into mobile phone. Just need it to notice there’s new mail coming). It will become parameter for me in case I receive notification that new mail coming, or I can see the title or header of the mail but I can’t download it through POP connection into my Apple Mail, then somebody must be sending HUGE file to may mail. I am guessing will face this issue frequently in future, as an engineer most of the time I will receive huge file as either symptom or any other stuff sent in attachment :(.

I’ll have a look into davmail source code once have a time to find better solution of this case, meanwhile if somebody got the same problem, just check your OWA for big file especially after last email received on your mail client :).


One thought on “DavMail Clog for Big File

  1. I have the same problem. DavMail w/Thunderbird completely chokes if I receive an email with an attachment larger than about 8Mb. I tried increasing all the timeout settings in Thunderbird, but that didn’t help.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s