The newer mailutil program (part of imap-2002 and later versions) has an option to delete messages from the source as part of a copy. The imap-utils are for the most part obsolete.
- Command line method to delete mail from IMAP mailbox? Stewart, John
- Re: Command line method to delete mail from IMAP... Joseph S Barrera III
- Re: Command line method to delete mail from IMAP... Matti Aarnio
- RE: Command line method to delete mail from IMAP... Stewart, John
- RE: Command line method to delete mail from ... Mark Crispin
- RE: Command line method to delete mail from IMAP... Stewart, John
- Re: Command line method to delete mail from ... Marion Hakanson