Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I use getmail to IMAP check my gmail.

It works great, but the bigger my INBOX is, the longer each check takes.

I can set "delete = true" in getmail, but I like having the mail backed up on gmail. I just don't want them all in the INBOX.

How can I tell getmail (or gmail) to move read messages to "Archived", instead of deleting them outright.

Previously, I've manually archived read messages in my INBOX, but it'd be nice to do this automatically.

share|improve this question

1 Answer 1

Try "Advanced IMAP Controls" in Gmail Labs.

UPDATED:

1) In Gmail go to Settings -> Labs an enable "Advanced IMAP Controls".

2) Under Settings -> "Forward and POP/IMAP" in the "IMAP Access" section select "Limit IMAP folders to contain no more than this many messages" and set the limit to 1000. (A lower number is not possible at the time of writing.) This should limit the number of visible messages through IMAP in your inbox.

3) Also make sure that under "When a message is expunged from the last visible IMAP folder" you have selected "Archive the message" to make sure that deleting an email through IMAP will leave a copy of it in your "All Mail" Gmail folder.

share|improve this answer
    
Could you expand on your answer such as adding the steps that need to be taken to solve this issue? Although your answer may be correct it would be far more helpful if it contained more information. Thanks –  Barry Feb 12 '11 at 17:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.