New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
downloading limited number of headers from IMAP/other box, based on search #1327
Comments
That's a great idea! Like Notmuch's virtual folders. A quick look through the IMAP RFC shows lots of searching commands. Because the server's doing the work, there would be a few limitations:
That said, even simple "time windows" would be very useful to power users with too much mail. |
Here's some info to get you started:
Inside NeoMutt, an email looks like: There's also a global When NeoMutt opens a mailbox, it calls Later NeoMutt will connect to the server and issue commands:
There's a lot to know to get started, so ask lots of questions. |
Thanks a lot for the pointers! I read through these documents, cloned the repo, built the master branch (to play with and to read). I'm using vim/ctags for now, it seems to be enough to navigate the parts I'm interested in. I'll spend some time now with reading and in the debugger. I'll be back. Possibly with some questions. :) |
@flatcap This could be the need of the hour, it takes a lot of time for neomutt to start. I have 150k+ emails in gmail, and it does take quite a bit of time (45 seconds) each time for neomutt to launch (it says "Evaluating cache... X%"). Quitting is even worse, it hangs and doesn't quit at all (it does for another gmail account which has fewer emails). I waited for 10 minutes for it to quit before killing the process. It mostly maintained a 0% CPU usage, which went up to 0.6% only after every 5-15 seconds. When I killed it with C-c, it exited with segmentation fault. So far I have been excited about using neomutt, though the handling of accounts with a lot of emails makes me rethink if it's feasible to use it as a main email client. Is there something that can be done about this at the moment? |
What would you like to be able to do?
In the time of Webmail clients like Google/Fastmail/..., mailboxes grow huge, with tens of thousands of emails in people's Inbox, because
I use Fastmail, both via Webmail and IMAP (sometimes with mutt, sometimes with bare openssl client_s, etc). I'm doing a the todo-list Inbox paradigm, but after being done, I just drop emails to Archive and search later if something is needed.
I don't like mutt for the latter activity (searching in Archive), because when I open the mailbox, it could take minutes to fetch the headers.
So my idea is --
To have a mailbox syntax for starting with a search, something like imaps://server/Inbox?search%20all%20on%2013-Jul-2018 (which is the IMAP syntax here, but the date could be "today") and then maintain an "active search", and when it changes, perform another IMAP search, like "search all subject foo" and fetch only the headers returned by the IMAP server.
What needs to change in NeoMutt?
I guess this could be some kind of extension.
Have you tried any alternative methods?
Not yet.. Let me know if this could already be done somehow.
Additional Info
I'm a developer myself and interested enough to give this feature some love and implement it. If you find it interesting.
The text was updated successfully, but these errors were encountered: