Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In Thunderbird, I have the following folder structure:

  • IMAP
    • INBOX
    • Archives
      • 2014
  • Local
    • Archives
      • 2012
      • 2013
      • 2014

When I am in the IMAP inbox, I can press a and it will move it into IMAP/Archives/$YEAR, which I use to archive all messages that do not require any more action. Since the IMAP space is limited, I drag the IMAP/Archives/2014 emails into the Local/Archives/2014 folder once in a while.

With mutt, I would do the same thing: Moving emails out of the IMAP inbox into a local yearly archive file, just like I have with Thunderbird now.

How could I do this?

share|improve this question

1 Answer 1

I think this isn't possible with mutt's integrated features. From my experience, even IMAP itself is rather a kludge with mutt. If it would be acceptable to you, I'd suggest syncing your IMAP folders into a .maildir on local disk; from my experience this makes efficiently handling mail with mutt a lot easier and your archiving problem would get feasible »fly by«.

I've made positive experience using offlineimap (although I switched to mu4e after using mutt for aprox. 10 years, since at some time I didn't get mutt to do a rather complex setup with multiple accounts, etc. in a convenient way without either segfaulting cause its config got too complex or not doing what I want).

share|improve this answer
    
Wouldn't this mean that all emails are taken offline right away? With my current workflow, the inbox is still synchronous with my phone. –  queueoverflow Mar 17 at 13:23
    
No, the name offlineimap is rather misleading here: offlineimap syncronizes your remote and local mailbox. –  Andreas Wiese Mar 17 at 13:27
    
Okay, so mutt ↔ maildir ↔ offlineimap ↔ IMAP server ↔ phone? I would then still have to do something to move emails to another maildir that is local only. –  queueoverflow Mar 17 at 13:38
    
Yes, but with a synchronized local maildir you just can move the messages out of this to another local location and offlineimap cares about expunging them from your IMAP space on next sync. For moving from your local 'sync'-maildir to another one you could use the usual mutt operations (like tagging and saving with S). –  Andreas Wiese Mar 17 at 13:43
    
»Tag and save« actually would also work with your regular IMAP account from within mutt. I personally prefer the sync'ed approach either. –  Andreas Wiese Mar 17 at 14:02

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.