maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   How to cache email for offline reading? (https://talk.maemo.org/showthread.php?t=43505)

matthew_exon 2010-02-05 20:59

How to cache email for offline reading?
 
I've just got my new N900. I'm scared to ask this question in case the answer is as I suspect, but anyway...

How do I make the email client download all my email so I can read it offline?

With my N810, Nokia had apparently decided that no-one should ever be allowed to read email on a train or plane and you had to be connected to wifi to use it. This led me to the utterly absurd lengths of porting the dovecot email server to Maemo, running that on the device, and then writing a giant pile of perl scripts to synchronise the email on my server with the device. It worked, just about, but I was really looking forward to getting a N900 where, I assumed, Nokia would have woken up to the absurdity of assuming people were permanently online and have written a proper email application with basic features implemented. So please, someone tell me I was right? Please?

geno123 2010-02-05 21:33

Re: How to cache email for offline reading?
 
i have a question that is somewhat related to this. i have a few folders in my mail account that contain lists of accounts that I don't really care about - gamespy or EA for example account names and passwords listed - mostly junk passwords. not my secure ones of course.

i would like these folders to not be cached on my n900 locally ever and would like to password protect them even when online. is this possible?

at the moment my n900 seems to cache most of the messages that i open while online and i am able to access them while offline. not all but most of my inbox is available offline. i'm guessing the emails that i viewed on the phone are the cached ones (not entirely sure about that)

shadowjk 2010-02-07 23:59

Re: How to cache email for offline reading?
 
Unfortnately since N900 has cellular radio, Nokia is even moreconinced tha before that it's always online...

Claws on N810 has synchronize folder feature. I haven't tried it on N900 though.

unkno 2010-02-08 00:13

Re: How to cache email for offline reading?
 
The N900 caches the last email read...it might be possible to set it to cache all new incoming emails. Perhaps someone should file an enhancement request in bugzilla.

davall 2010-02-08 07:38

Re: How to cache email for offline reading?
 
Hi,

offlineimap is your friend. Works like a charm.

Regards, davall

TomJ 2010-02-26 23:01

Re: How to cache email for offline reading?
 
Could someone expand upon this? Is offlineimap a setting in Modest or an extra program you have to install?

tpaixao 2010-02-26 23:36

Re: How to cache email for offline reading?
 
Quote:

Originally Posted by TomJ (Post 548332)
Could someone expand upon this? Is offlineimap a setting in Modest or an extra program you have to install?

It's an extra program, written in Python.

here: http://software.complete.org/software/wiki/offlineimap

I have no experience on well it works but there you have it.

matthew_exon 2010-03-20 08:08

Re: How to cache email for offline reading?
 
Modest is based on Tinymail, and Tinymail is based on Camel. Camel's IMAP support has this feature built-in, but it's switched off in Tinymail.

So I tried patching Modest and Tinymail to switch it on. The result is that it seems to work. However, whenever I try to build the Tinymail libraries from source, the resulting packages cause frequent crashes in Modest. This is with or without my patches, so I don't think it's due to the changes I made.

I tried to get in touch with the developers on the mailing list, but didn't get any reply.

So for what it's worth, here are my patches. Maybe someone else can get the SDK to actually work.

There's still plenty wrong with this. Once an account is selected for synchronisation, it will only download mail once it detects that there are new messages. That usually means you need to go into the folder and look at the message list, then wait for it to finish downloading. And it won't download messages it already knows about. I might, but probably won't, have time to come up with a solution.

Also, it seems that when you're in offline mode and you start modest, it forgets about folders other than the standard ones. That doesn't bother me much, my usual situation is I want to keep reading my news feeds (which arrive in their own folders) even when the train goes underground. But it's not the way it should work.

Anyway:

http://mat.exon.name/tinymail.diff
http://mat.exon.name/modest.diff

matthew_exon 2010-03-28 07:35

Re: How to cache email for offline reading?
 
Just to clarify the discussion of OfflineIMAP above, it won't work with Modest as an email client, you need to use Mutt in an xterm or some other mail program that supports Maildir as a local cache.

That's a deal-breaker for me personally, I can't live without a finger-friendly UI. So at the moment I'm playing an absurd game where when I want to cache email, I install my version of libtinymail-camel, then when I'm done I install the official libtinymail-camel to read them. It's good enough for the moment.

I submitted this bug to tinymail:
http://tinymail.org/trac/tinymail/ticket/91

lma 2010-03-28 09:32

Re: How to cache email for offline reading?
 
Quote:

Originally Posted by matthew_exon (Post 585095)
Just to clarify the discussion of OfflineIMAP above, it won't work with Modest as an email client, you need to use Mutt in an xterm or some other mail program that supports Maildir as a local cache.

Or an IMAP server that can serve email from local Maildir folders (such as dovecot) and your favourite IMAP client talking to that. Many people use that setup on laptops, but I haven't tried it on the N900.

matthew_exon 2010-04-01 19:29

Re: How to cache email for offline reading?
 
I have tried using dovecot on my N810, and the full story is here:

http://mat.exon.name/logs/maemo

I don't wanna go back to that. Far, far too much pain.

Jesper Cheetah 2010-05-05 16:18

Re: How to cache email for offline reading?
 
Quote:

Originally Posted by matthew_exon (Post 585095)
Just to clarify the discussion of OfflineIMAP above, it won't work with Modest as an email client, you need to use Mutt in an xterm or some other mail program that supports Maildir as a local cache.

Would you happen to know if someone has already ported and packaged mutt and offlineimap? I've searched a lot and a few people have mentioned mutt and offlineimap on n900, but I just can't find any packages of them anywhere.

sirloon 2010-06-11 07:42

Re: How to cache email for offline reading?
 
Quote:

Originally Posted by Jesper Cheetah (Post 644772)
Would you happen to know if someone has already ported and packaged mutt and offlineimap? I've searched a lot and a few people have mentioned mutt and offlineimap on n900, but I just can't find any packages of them anywhere.

Hi,

I've just found this thread and wanted to mention I wrote a small tutorial about installing and configuring offlineimap, mutt and dovecot, trying to improve n900 modest email sync reliability. deb packages can be found as links at the end of this wiki page:

http://wiki.maemo.org/Improving_Mode...nc_reliability

Careful: some packages were done really quick & dirty... (namely offlineimap)

see also this thread:

http://talk.maemo.org/showthread.php?t=55665

I hope to find enough time to clean packages and submit them to extras-devel, as it seems to be the best place for such files.

HIH
Cheers
Seb


All times are GMT. The time now is 09:51.

vBulletin® Version 3.8.8