1
I hope "resumable" is the correct term.
I just installed mutt on my laptop. AFAIK mutt itself cannot download mails to the local filesystem, so you'll need something like fetchmail. I installed it, and here's my ~/.fetchmailrc
poll imap.gmail.com
protocol IMAP
user 'xxxxx@xxxxxx.xxxxx.xxxxx'
there with password 'xxxxxxxxxx'
mda "/usr/bin/procmail -d %T"
options
fetchall
keep
ssl
sslcertck
sslcertpath /home/anta40/.certs/
As you can see, my email is a Google Apps mail. I ran fetchmail -v. It worked: fetchmail downloaded my mails, starting from my very first mail. Now the problem is: fetchmail takes a long time to download all of my mails. I ran it at this 3 AM, and now at 6.20 AM, it's still running. This is the current output:
fetchmail: IMAP< A8479 OK Success
not flushed
fetchmail: IMAP> A8480 STORE 12783 +FLAGS (\Seen)
fetchmail: IMAP< * 12783 FETCH (FLAGS (\Seen))
fetchmail: IMAP< A8480 OK Success
fetchmail: IMAP> A8481 FETCH 12784 RFC822.HEADER
fetchmail: IMAP< * 12784 FETCH (RFC822.HEADER {1570}
reading message xxxxx@xxxxx.xxxxx.xxxxx@gmail-imap.l.google.com:12784 of 40346 (1570 header octets) #
fetchmail: IMAP< )
fetchmail: IMAP< A8481 OK Success
fetchmail: IMAP> A8482 FETCH 12784 BODY.PEEK[TEXT]
fetchmail: IMAP< * 12784 FETCH (BODY[TEXT] {4370}
(4370 body octets) **********************************.******************************.**********************.*************************.*********
fetchmail: IMAP< )
fetchmail: IMAP< A8482 OK Success
not flushed
fetchmail: IMAP> A8483 STORE 12784 +FLAGS (\Seen)
fetchmail: IMAP< * 12784 FETCH (FLAGS (\Seen))
fetchmail: IMAP< A8483 OK Success
fetchmail: IMAP> A8484 FETCH 12785 RFC822.HEADER
fetchmail: IMAP< * 12785 FETCH (RFC822.HEADER {2137}
reading message xxxxx@xxxxx.xxxxx.xxxxx@gmail-imap.l.google.com:12785 of 40346 (2137 header octets) #
fetchmail: IMAP< )
fetchmail: IMAP< A8484 OK Success
fetchmail: IMAP> A8485 FETCH 12785 BODY.PEEK[TEXT]
fetchmail: IMAP< * 12785 FETCH (BODY[TEXT] {10257}
(10257 body octets) ***************************.********************************.*********************************.************************************.*******************************.*******************************************.****************************.*****************************************.**************************************.*****************************.*
fetchmail: IMAP< )
fetchmail: IMAP< A8485 OK Success
not flushed
fetchmail: IMAP> A8486 STORE 12785 +FLAGS (\Seen)
fetchmail: IMAP< * 12785 FETCH (FLAGS (\Seen))
fetchmail: IMAP< A8486 OK Success
12785 mails of 40346 mails downloaded. Hopefully my laptop will not get overheat. Well If I stop this operation, is it possible for fetchmail to resume the download, so it will not download starting from zero again?
Hmm... I removed fetchall and keep from .fetchmailrc, and when I ran fetchmail -v on mutt, there were no new mails in the inbox. I guess that was because I already read all the mails, via iPad. But when I ran Thunderbird, I could see those mails in the inbox. So can we assume that the iPad didn't mark the already read mails? – anta40 – 2011-12-31T20:49:49.270
@anta40: See updated Answer. – RedGrittyBrick – 2012-01-01T11:36:05.340