Getting neomutt to download all headers and messages

3

1

By setting the variables header_cache and message_cachedir, you can make neomutt cache messages headers and even the message bodies. This allows way quicker searching among other benefits.

The problem is though, that this caching does not seem to happen automatically. I'd have to go though each mailbox and search for a body term that does not exist - it then would download all the messages.

Is there a way of forcing neomutt to build this cache, either one off or, preferred, continually?

Remo

Posted 2018-12-05T18:33:27.457

Reputation: 155

Just to be safe. You created the folders the variables point to? – ploth – 2018-12-05T19:16:02.663

Your mutt version 1.5.7 or later? – ploth – 2018-12-05T19:20:56.357

Don't specify a cache file! Only specify a folder. It can be the same folder for both variables. – ploth – 2018-12-05T19:22:44.980

Thank you. Well, the cache works. But I haven't found any way to force building the cache without entering a mailbox and searching in it. What I would like is a command that I can execute (i.e. over night) and have all mailboxes cached. – Remo – 2018-12-10T12:56:18.710

Answers

1

You should consider stop using IMAP in neomutt and start downloading your messages using offlineimap, isync, or other syncing tool. Because obviously that's what you want.

Jakub Jindra

Posted 2018-12-05T18:33:27.457

Reputation: 503

0

the fetchmail program works good for me, ...in linux 19 or so.

Fetchmail lets you configure mail collection from here, there, and everywhere (gmail).....and schedule timely retrievals in the background on your terms.

Linseed Earl

Posted 2018-12-05T18:33:27.457

Reputation: 1

This completely disregards the question, which is about mutt. – Dmitry Grigoryev – 2019-09-24T12:02:01.337

No it was about neomutt. – Linseed Earl – 2019-09-25T18:01:20.687