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: richard.pieri at gmail.com (Rich Pieri)
- Date: Thu, 7 Jan 2021 10:06:34 -0500
- In-reply-to: <24567.7045.5978.618618@blazemonger.com>
- References: <mailman.1.1608915603.20520.discuss@lists.blu.org> <24567.7045.5978.618618@blazemonger.com>
imapfilter might be the tool you need: https://github.com/lefcha/imapfilter I use it to move and expire mailing lists like so: for i,mbox in ipairs(mailboxes) do print("Moving messages older than ".. move_older .." days in ".. mbox .." to Trash.") messages = account1[mbox]:is_older(move_older) messages:move_messages(account1['Trash']) end For your needs you would use arrived_before instead of is_older. On Thu, 7 Jan 2021 09:32:37 -0500 Daniel Barrett <dbarrett at blazemonger.com> 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). -- Rich Pieri
- References:
- [Discuss] Scripting IMAP for large numbers of messages?
- From: dbarrett at blazemonger.com (Daniel Barrett)
- [Discuss] Scripting IMAP for large numbers of messages?
- Prev by Date: [Discuss] Scripting IMAP for large numbers of messages?
- Next by Date: [Discuss] Scripting IMAP for large numbers of messages?
- Previous by thread: [Discuss] Scripting IMAP for large numbers of messages?
- Next by thread: [Discuss] Boston Linux VIRTUAL Meeting Wednesday, January 20, 2021 - Deploying An Openshift Cluster using Ansible Automation
- Index(es):