Re: Deleting large number of emails from busy mailbox
On Wed, Mar 15, 2023 at 08:47:44AM +0100, Vegard Svanberg wrote: > Multi-threaded GUI version coming up any time soon? ;-) Let's hope not. That would massively increase Mutt's attack surface and the burden on its maintainer. People who really want to expose themselves to the risk that multi-threaded GUI email clients typically entail, and who are fine with headaches for maintainers, already have several options to choose from. Cheers.
Re: Deleting large number of emails from busy mailbox
* Kevin J. McCarthy [2023-03-14 19:16]: > > After reading the fine manual, I don't see an immediate way to disable > > trash. Assuming I'll have to move it to IMAP then. Which is fine, just > > wondering if trash could be disabled as I don't really need it. > > $trash starts out empty, so there must be a line in your muttrc setting it. > Just comment out that line. > > But, in general, to unset it, you can just 'set trash=""' or 'unset trash' > in your muttrc file. Yes, it was me making a thinko here. I somehow interpreted the manual that there was a default trash and you could only override it with another one. Thanks - working as I want it now! P.S. Multi-threaded GUI version coming up any time soon? ;-) -- Vegard Svanberg [*Takapa@IRC (EFnet)]
Re: Deleting large number of emails from busy mailbox
* Patrick Shanahan [2023-03-14 12:56]: > > After reading the fine manual, I don't see an immediate way to disable > > trash. Assuming I'll have to move it to IMAP then. Which is fine, just > > wondering if trash could be disabled as I don't really need it. > > you haven't gone deep enough. [snip] You're absolutely right. Thanks! That worked. -- Vegard Svanberg [*Takapa@IRC (EFnet)]
Re: Deleting large number of emails from busy mailbox
On Tue, Mar 14, 2023 at 08:40:24AM +0100, Vegard Svanberg wrote: After reading the fine manual, I don't see an immediate way to disable trash. Assuming I'll have to move it to IMAP then. Which is fine, just wondering if trash could be disabled as I don't really need it. $trash starts out empty, so there must be a line in your muttrc setting it. Just comment out that line. But, in general, to unset it, you can just 'set trash=""' or 'unset trash' in your muttrc file. -- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA signature.asc Description: PGP signature
Re: Deleting large number of emails from busy mailbox
* Vegard Svanberg [03-14-23 03:41]: > * Kevin J. McCarthy [2023-03-13 21:07]: > > > Do you mean the 2000 emails you want to delete, or the half-million emails > > in the mailbox? > > The 2000 I want to delete, yes. :-) > > > If it's the first, it sounds as if Mutt thinks the value in $trash is not > > the same server as the mailbox you are connected do. Otherwise it would do > > a UID COPY on the server side, which would be faster. > > Holy moly, I just re-discovered I had a trash! Which, needless to say, is > huge... I'd forgotten all about it. > > You're right, they're not the same. Mailbox is on IMAP, trash is a local > file. > > Well, that explains it, then. > > After reading the fine manual, I don't see an immediate way to disable > trash. Assuming I'll have to move it to IMAP then. Which is fine, just > wondering if trash could be disabled as I don't really need it. you haven't gone deep enough. man muttrc: maildir_trash Type: boolean Default: no If set, messages marked as deleted will be saved with the maildir trashed flag instead of unlinked. Note: this only applies to maildir-style mailboxes. Setting it will have no effect on other mailbox types. and there is "mh_purge" and trash Type: path Default: “” If set, this variable specifies the path of the trash folder where the mails marked for deletion will be moved, instead of being irremediably purged. NOTE: When you delete a message in the trash folder, it is really deleted, so that you have a way to clean the trash. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.orgopenSUSE Community Memberfacebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc
Re: Deleting large number of emails from busy mailbox
* Dan Ritter [2023-03-14 00:29]: > You could: > * operate on local storage with mutt -f Maildir/ That's actually slower than letting Dovecot handling it... > or > * build lists with doveadm-search and delete with > doveadm-expunge That's a good idea, I'll look into that. Thanks. > Even on good SSDs, a half-million messages is too many to be > sensibly dealt with by humans. Move things into a folder system > automatically, discard or archive messages when you are done > with them. Nah, works brilliantly for me and has for many, many years. Even on spinning rust! :) -- Vegard Svanberg [*Takapa@IRC (EFnet)]
Re: Deleting large number of emails from busy mailbox
* Kevin J. McCarthy [2023-03-13 21:07]: > Do you mean the 2000 emails you want to delete, or the half-million emails > in the mailbox? The 2000 I want to delete, yes. :-) > If it's the first, it sounds as if Mutt thinks the value in $trash is not > the same server as the mailbox you are connected do. Otherwise it would do > a UID COPY on the server side, which would be faster. Holy moly, I just re-discovered I had a trash! Which, needless to say, is huge... I'd forgotten all about it. You're right, they're not the same. Mailbox is on IMAP, trash is a local file. Well, that explains it, then. After reading the fine manual, I don't see an immediate way to disable trash. Assuming I'll have to move it to IMAP then. Which is fine, just wondering if trash could be disabled as I don't really need it. > > a few minutes), Mutt never gets around to actually removing the > > messages. It just seems to abort in the middle of the operation and I > > have to do expunge again until I eventually succeed after a few > > attempts. > > > > Anything I could do my end to solve this? > > That's unfortunately an old issue with Mutt's sync design. It checks the > mailbox for any reopen/new/flag updates before trying to sync and aborts if > that's the case. Well at least that explains why it's behaving that way. Thank you! -- Vegard Svanberg [*Takapa@IRC (EFnet)]
Re: Deleting large number of emails from busy mailbox
On Mon, Mar 13, 2023 at 08:47:14AM +0100, Vegard Svanberg wrote: Latest mutt on local IMAP (Dovecot). My mailbox is rather busy (and contains around half a million emails). Say I want to delete 2000 emails. I tag them, ;d and press X to expunge. Mutt starts fetching every email (not sure why that is - does it have to?), then would normally remove them after that. Do you mean the 2000 emails you want to delete, or the half-million emails in the mailbox? If it's the first, it sounds as if Mutt thinks the value in $trash is not the same server as the mailbox you are connected do. Otherwise it would do a UID COPY on the server side, which would be faster. You can check this by running mutt with '-d 3' and search in the log for imap_fast_trash. If that wasn't intentional, try to see if $trash and the current mailbox URL differ somehow and try to make them the exact same. Problem is: if a new email arrives during this process (which could take a few minutes), Mutt never gets around to actually removing the messages. It just seems to abort in the middle of the operation and I have to do expunge again until I eventually succeed after a few attempts. Anything I could do my end to solve this? That's unfortunately an old issue with Mutt's sync design. It checks the mailbox for any reopen/new/flag updates before trying to sync and aborts if that's the case. -- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA signature.asc Description: PGP signature
Re: Deleting large number of emails from busy mailbox
On 03/13 08:47, Vegard Svanberg wrote: > Hi, > > Latest mutt on local IMAP (Dovecot). > > My mailbox is rather busy (and contains around half a million emails). > > Say I want to delete 2000 emails. > > I tag them, ;d and press X to expunge. Mutt starts fetching every email > (not sure why that is - does it have to?), then would normally remove > them after that. > > Problem is: if a new email arrives during this process (which could take > a few minutes), Mutt never gets around to actually removing the > messages. It just seems to abort in the middle of the operation and I > have to do expunge again until I eventually succeed after a few > attempts. > > Anything I could do my end to solve this? Hacky, but: could you take down your SMTP server for several minutes, while you do the deletions? ~ Kira > > Thanks! > > -- > Vegard Svanberg [*Takapa@IRC (EFnet)] >
Deleting large number of emails from busy mailbox
Hi, Latest mutt on local IMAP (Dovecot). My mailbox is rather busy (and contains around half a million emails). Say I want to delete 2000 emails. I tag them, ;d and press X to expunge. Mutt starts fetching every email (not sure why that is - does it have to?), then would normally remove them after that. Problem is: if a new email arrives during this process (which could take a few minutes), Mutt never gets around to actually removing the messages. It just seems to abort in the middle of the operation and I have to do expunge again until I eventually succeed after a few attempts. Anything I could do my end to solve this? Thanks! -- Vegard Svanberg [*Takapa@IRC (EFnet)]