I use getmail for two gmail accounts and it works flawlessly for getting new emails. Now I want to download certain emails that have been read (i.e. not new unread mail) from another account. I found an article showing how to do this (
here), but the getmailrc file the site shows is exactly the same as the one I use to get new emails. I set it up for this other account and, sure enough, it only gets new mail and doesn't download the messages I want.
I tried marking the emails I want to download as unread and ran it again, but it downloaded nothing.
I tried with "getmail -a -r" and with just -r. (a=download all messages, r=specify getmailrc to use)
I tried deleting
~/.getmail/gmail.log and
~/.getmail/oldmail-pop.gmail.com-995-me@gmail.com but that had no effect.
The emails I want in gmail are labeled. When viewing them on gmail.com, it appears as if they are put in a subfolder of the inbox, but I don't know if they actually are. However, I tried adding different mailboxes to the getmailrc and even moving the email to the inbox, but nothing worked.
How can I get those emails that have been read from gmail to my hard drive? I don't have to use getmail, but now it's bugging me and I want to know how to beat getmail at this game.
This is my getmailrc
[retriever]
type = SimplePOP3SSLRetriever
server = pop.gmail.com
username =
me@gmail.com
password = mypass
#neither of these work
#mailboxes = ("INBOX")
#mailboxes = ("label")
[destination]
type = Maildir
path = ~/Mail/
[options]
verbose = 2
message_log = ~/.getmail/gmail.log