How to suppress some progress messages?

2023-03-13 Thread Dan Jacobson
These progress messages are great, but how does one suppress some of them?

Reading imaps://j
Looking up mail.d
Connecting to mai
SSL/TLS connectio
Authenticating (PLAIN)...
Selecting INBOX.S
Fetching message headers...
Sorting mailbox...
Mailbox is unc
Closing connection to m

Thanks.


Re: Deleting large number of emails from busy mailbox

2023-03-13 Thread Kevin J. McCarthy

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

2023-03-13 Thread Kira Oakley
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

2023-03-13 Thread Vegard Svanberg
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)]