BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] Scripting IMAP for large numbers of messages?
- Subject: [Discuss] Scripting IMAP for large numbers of messages?
- From: dsr at randomstring.org (Dan Ritter)
- Date: Thu, 7 Jan 2021 10:07:07 -0500
- In-reply-to: <f54b6db6-540e-29b3-cf24-46886f90a653@mattgillen.net>
- References: <mailman.1.1608915603.20520.discuss@lists.blu.org> <24567.7045.5978.618618@blazemonger.com> <f54b6db6-540e-29b3-cf24-46886f90a653@mattgillen.net>
Matthew Gillen wrote: > On 1/7/2021 9:32 AM, Daniel Barrett wrote: > > > > Has anyone done any scripting to manipulate email on a remote IMAP > > server? I'd like to select about 50,000 emails from an Inbox of > > ~80,000 (say, all emails from 2020) and move them to a different > > folder on the same IMAP server. I'm wondering if fetchmail or similar > > tools can do this (but am open to other suggestions). > > > > FYI, I've tried this operation in several GUI IMAP clients but they > > all either (1) fail for large numbers of messages, or (2) have such a > > cumbersome selection process (for "all emails from 2020") that it > > would take an hour to highlight all the emails. > > > > Thanks for any tips, or even just a pointer to the best tool(s) for > > the job. > > I'd be surprised if mutt didn't do the trick for you. If you're a vi > person, you'll like mutt. > > http://mutt.org/ > > Specific examples of tagging messages: > http://therandymon.com/woodnotes/mutt/node19.html > mutt is my everyday client, but I also strongly recommend it for situations where you need to deal with more than 10,000 messages. I have used it on folders with more than 1MM messages. tag all messages from 2020: t~d20200101-20201231 mnemonic: tag with date move tagged messages to new folder and mark as deleted in current folder: ;s mnemonic: save clear deleted messages from current folder: $ mnemonic: sync -dsr-
- References:
- [Discuss] Scripting IMAP for large numbers of messages?
- From: dbarrett at blazemonger.com (Daniel Barrett)
- [Discuss] Scripting IMAP for large numbers of messages?
- From: me at mattgillen.net (Matthew Gillen)
- [Discuss] Scripting IMAP for large numbers of messages?
- Prev by Date: [Discuss] Scripting IMAP for large numbers of messages?
- Next by Date: [Discuss] Boston Linux VIRTUAL Meeting Wednesday, January 20, 2021 - Deploying An Openshift Cluster using Ansible Automation
- Previous by thread: [Discuss] Scripting IMAP for large numbers of messages?
- Next by thread: [Discuss] Scripting IMAP for large numbers of messages?
- Index(es):