Having intermittent trouble with mutt 2.2.12 on debian stable. It uses an imap server (dovecot) over a wireguard VPN. When my laptop resumes from suspend, a few seconds elapse before the VPN becomes available and mutt usually reconnects automatically.
Sometimes, about one time in 5, it doesn't. In those cases I make mutt reconnect by opening a folder. It's not a grave problem but I'd prefer mutt to try a little harder to reconnect, if that can be done. I'm attaching two extracts from .muttdebug0, running with '-d 2'. reconn-ok.txt shows mutt reconnecting after running my preconnect script. reconn-failed.txt shows mutt failing to reconnect and without running my preconnect script. I obscured one folder name with **** for privacy. Why does mutt sometimes fail to reconnect? Thanks -- Nick Asunción 08:36 PYT ► 21°C ◆ cielo claro ◆ 11Km/h SSE ◆ 66% HR
[2024-04-17 19:44:00] 4< * STATUS Junk (RECENT 2 UIDNEXT 335 UIDVALIDITY 1519640566 UNSEEN 0) [2024-04-17 19:44:00] 4< a3058 OK Status completed (0.001 + 0.000 secs). [2024-04-17 19:44:00] 4< * STATUS ******* (RECENT 0 UIDNEXT 1551 UIDVALIDITY 1519640578 UNSEEN 0) [2024-04-17 19:44:00] 4< a3059 OK Status completed (0.001 + 0.000 secs). [2024-04-18 05:41:01] 4> a3060 NOOP [2024-04-18 05:41:12] tls_socket_read (Error in the pull function.) [2024-04-18 05:41:16] imap_cmd_step: Error reading server response. [2024-04-18 05:41:16] A fatal error occurred. Will attempt reconnection. [2024-04-18 05:41:16] imap_exec: command failed: [2024-04-18 05:41:16] Trying to reconnect... [2024-04-18 05:41:16] Reading imaps://rolly.vpn/INBOX... [2024-04-18 05:41:16] Executing preconnect: wait-for-ping -v -l ~/.local/logs/mutt-preconnect.log rolly.vpn 20 [2024-04-18 05:41:16] Preconnect result: 0 [2024-04-18 05:41:16] Looking up rolly.vpn... [2024-04-18 05:41:16] Connecting to rolly.vpn... [2024-04-18 05:41:18] SSL/TLS connection using TLS1.3 (ECDHE-RSA/AES-256-GCM/AEAD) [2024-04-18 05:41:18] Connected to rolly.vpn:993 on fd=4 [2024-04-18 05:41:18] 4< * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ AUTH=PLAIN] Dovecot (Debian) ready. [2024-04-18 05:41:18] imap_authenticate: Using any available method. [2024-04-18 05:41:18] imap_auth_gsasl: using mech PLAIN [2024-04-18 05:41:18] Authenticating (PLAIN)...
[2024-04-18 07:55:25] 4< * STATUS Junk (RECENT 2 UIDNEXT 335 UIDVALIDITY 1519640566 UNSEEN 0) [2024-04-18 07:55:25] 4< a5509 OK Status completed (0.001 + 0.000 secs). [2024-04-18 07:55:25] 4< * STATUS ******* (RECENT 0 UIDNEXT 1551 UIDVALIDITY 1519640578 UNSEEN 0) [2024-04-18 07:55:25] 4< a5510 OK Status completed (0.001 + 0.000 secs). [2024-04-18 08:26:31] 4> a5511 NOOP [2024-04-18 08:26:34] 4< * BYE Disconnected for inactivity. [2024-04-18 08:26:34] Handling BYE [2024-04-18 08:26:34] Disconnected for inactivity. [2024-04-18 08:26:36] A fatal error occurred. Will attempt reconnection. [2024-04-18 08:26:36] imap_exec: command failed: * BYE Disconnected for inactivity. [2024-04-18 08:26:36] Trying to reconnect... [2024-04-18 08:26:36] Reading imaps://rolly.vpn/alert... [2024-04-18 08:26:36] Selecting alert... [2024-04-18 08:26:36] 5> a0292 STATUS "Drafts" (MESSAGES) a0293 SELECT "alert" [2024-04-18 08:26:36] tls_socket_read (Error in the pull function.) [2024-04-18 08:26:40] imap_cmd_step: Error reading server response. [2024-04-18 08:26:40] Reconnect failed. Mailbox closed. [2024-04-18 08:26:40] mutt_socket_close: Attempt to close closed connection.