Bug 4843 - Claws Mail: Do not block process upon issue with IMAP connection (now hangs asking for password input even though the password has not changed)
Summary: Claws Mail: Do not block process upon issue with IMAP connection (now hangs a...
Status: NEW
Alias: None
Product: Claws Mail
Classification: Unclassified
Component: Other (show other bugs)
Version: 4.3.0
Hardware: PC Windows 10
: P3 enhancement
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2025-01-10 01:26 UTC by Marc Laporte
Modified: 2025-01-11 08:33 UTC (History)
0 users

See Also:


Attachments
Demonstrating error message, and current settings (164.96 KB, image/png)
2025-01-10 01:26 UTC, Marc Laporte
Details

Description Marc Laporte 2025-01-10 01:26:05 UTC
Created attachment 2528 [details]
Demonstrating error message, and current settings

I have several IMAP accounts, and Claws logs in every 10 minutes to get latest emails and apply filters. All good.

However, every once in a while, there is an issue (like IMAP server is not responding properly), and Claws Mail hangs with a request to enter a new password. I need to click cancel and then all is good, until it happens again.

Maybe this interface could self-cancel after 1 minute or so?

Thanks!
Comment 1 Paul 2025-01-10 07:26:28 UTC
What does the IMAP server say which prompts this behaviour in Claws Mail? (/Tools/Network Log)
Comment 2 Paul 2025-01-10 07:36:56 UTC
Can you confirm that you use a Session password rather than saving it in your Account Preferences?
Comment 3 Marc Laporte 2025-01-11 01:46:58 UTC
The password is saved (When I reboot machine, I don't need to enter again)

/Tools/Network Log shows this (I redacted the server name and folder names):

[2025-01-10 20:27:40] IMAP< 20 OK Status completed (0.001 + 0.000 secs). 
[2025-01-10 20:27:41] IMAP> 21 STATUS "XYZ" (MESSAGES UIDNEXT UIDVALIDITY UNSEEN) 
[2025-01-10 20:27:41] IMAP< * STATUS XYZ (MESSAGES 108 UIDNEXT 109 UIDVALIDITY 1701236492 UNSEEN 0) 
[2025-01-10 20:27:41] IMAP< 21 OK Status completed (0.001 + 0.000 secs). 
[2025-01-10 20:27:41] IMAP> 22 STATUS ABC (MESSAGES UIDNEXT UIDVALIDITY UNSEEN) 
[2025-01-10 20:27:41] IMAP< * STATUS ABC (MESSAGES 250 UIDNEXT 251 UIDVALIDITY 1701236493 UNSEEN 0) 
[2025-01-10 20:27:41] IMAP< 22 OK Status completed (0.001 + 0.000 secs). 
* Account 'monitoring@example.com': Connecting to IMAP server: imap.example.com:993...
[2025-01-10 20:27:41] IMAP< * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ AUTH=PLAIN AUTH=LOGIN] Example ready. 
* IMAP connection is un-authenticated
[2025-01-10 20:27:42] IMAP> 1 CAPABILITY 
[2025-01-10 20:27:42] IMAP< * CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ AUTH=PLAIN AUTH=LOGIN 
[2025-01-10 20:27:42] IMAP< 1 OK Pre-login capabilities listed, post-login capabilities have more. 
[2025-01-10 20:27:42] IMAP> Logging monitoring@example.com to imap.example.com using PLAIN
[2025-01-10 20:27:49] IMAP< Authentication failed.
** IMAP error on imap.example.com: LOGIN error
[2025-01-10 20:27:49] IMAP< Error logging in to imap.example.com
[2025-01-10 20:27:49] IMAP> Logging monitoring@example.com to imap.example.com using LOGIN
[2025-01-10 20:28:01] IMAP< Authentication failed.
** IMAP error on imap.example.com: LOGIN error
[2025-01-10 20:28:01] IMAP< Error logging in to imap.example.com
[2025-01-10 20:28:01] IMAP> Logging monitoring@wikisuite.com to imap.example.com using plaintext
[2025-01-10 20:28:09] IMAP< Authentication failed.
** IMAP error on imap.example.com: LOGIN error
[2025-01-10 20:28:09] IMAP< Error logging in to imap.example.com
*** Connection to imap.example.com failed: login refused.
[2025-01-10 20:28:31] IMAP> 51 NOOP 
[2025-01-10 20:28:31] IMAP< 51 OK NOOP completed (0.001 + 0.000 secs). 
[2025-01-10 20:28:31] IMAP> 88 NOOP 
[2025-01-10 20:28:31] IMAP< 88 OK Completed 
[2025-01-10 20:28:32] IMAP> 23 NOOP 
[2025-01-10 20:28:32] IMAP< 23 OK NOOP completed (0.097 + 0.000 + 0.096 secs). 
[2025-01-10 20:29:31] IMAP> 52 NOOP 
[2025-01-10 20:29:31] IMAP< 52 OK NOOP completed (0.001 + 0.000 secs). 
[2025-01-10 20:29:31] IMAP> 89 NOOP 
[2025-01-10 20:29:31] IMAP< 89 OK Completed 
[2025-01-10 20:29:32] IMAP> 24 NOOP 
[2025-01-10 20:29:32] IMAP< 24 OK NOOP completed (0.041 + 0.000 + 0.040 secs). 
[2025-01-10 20:30:31] IMAP> 53 NOOP 
[2025-01-10 20:30:31] IMAP< 53 OK NOOP completed (0.001 + 0.000 secs). 
[2025-01-10 20:30:31] IMAP> 90 NOOP 
[2025-01-10 20:30:31] IMAP< 90 OK Completed 
[2025-01-10 20:30:32] IMAP> 25 NOOP 
[2025-01-10 20:30:32] IMAP< 25 OK NOOP completed (0.026 + 0.000 + 0.025 secs). 
[2025-01-10 20:31:31] IMAP> 54 NOOP 
[2025-01-10 20:31:31] IMAP< 54 OK NOOP completed (0.001 + 0.000 secs). 
[2025-01-10 20:31:31] IMAP> 91 NOOP 
[2025-01-10 20:31:31] IMAP< 91 OK Completed 
[2025-01-10 20:31:32] IMAP> 26 NOOP 
[2025-01-10 20:31:32] IMAP< 26 OK NOOP completed (0.013 + 0.000 + 0.012 secs). 
[2025-01-10 20:32:31] IMAP> 55 NOOP 
[2025-01-10 20:32:31] IMAP< 55 OK NOOP completed (0.001 + 0.000 secs). 
[2025-01-10 20:32:31] IMAP> 92 NOOP 
[2025-01-10 20:32:31] IMAP< 92 OK Completed 
[2025-01-10 20:32:32] IMAP> 27 NOOP 
[2025-01-10 20:32:32] IMAP< 27 OK NOOP completed (0.001 + 0.000 secs). 
[2025-01-10 20:33:31] IMAP> 56 NOOP 
[2025-01-10 20:33:31] IMAP< 56 OK NOOP completed (0.001 + 0.000 secs). 
[2025-01-10 20:33:31] IMAP> 93 NOOP 
[2025-01-10 20:33:31] IMAP< 93 OK Completed 
[2025-01-10 20:33:32] IMAP> 28 NOOP 
[2025-01-10 20:33:32] IMAP< 28 OK NOOP completed (0.008 + 0.000 + 0.007 secs). 
[2025-01-10 20:34:31] IMAP> 57 NOOP 
[2025-01-10 20:34:31] IMAP< 57 OK NOOP completed (0.001 + 0.000 secs). 
[2025-01-10 20:34:31] IMAP> 94 NOOP 
[2025-01-10 20:34:31] IMAP< 94 OK Completed 
[2025-01-10 20:34:32] IMAP> 29 NOOP 
[2025-01-10 20:34:32] IMAP< 29 OK NOOP completed (0.001 + 0.000 secs). 
[2025-01-10 20:35:32] IMAP> 58 NOOP 
[2025-01-10 20:35:32] IMAP< 58 OK NOOP completed (0.001 + 0.000 secs). 
[2025-01-10 20:35:32] IMAP> 95 NOOP 
[2025-01-10 20:35:32] IMAP< 95 OK Completed 
[2025-01-10 20:35:32] IMAP> 30 NOOP 
[2025-01-10 20:35:32] IMAP< 30 OK NOOP completed (0.030 + 
[2025-01-10 20:35:32] IMAP< 0.000 + 0.029 secs). 
[2025-01-10 20:36:33] IMAP> 59 NOOP 
[2025-01-10 20:36:33] IMAP< 59 OK NOOP completed (0.001 + 0.000 secs). 
[2025-01-10 20:36:33] IMAP> 96 NOOP 
[2025-01-10 20:36:33] IMAP< 96 OK Completed 
[2025-01-10 20:36:33] IMAP> 31 NOOP 
[2025-01-10 20:36:33] IMAP< 31 OK NOOP completed (0.001 + 0.000 secs). 
[2025-01-10 20:37:34] IMAP> 60 NOOP 
[2025-01-10 20:37:34] IMAP< 60 OK NOOP completed (0.001 + 0.000 secs). 
[2025-01-10 20:37:34] IMAP> 97 NOOP 
[2025-01-10 20:37:34] IMAP< 97 OK Completed 
[2025-01-10 20:37:34] IMAP> 32 NOOP 
[2025-01-10 20:37:34] IMAP< 32 OK NOOP completed (0.001 + 0.000 secs). 
[2025-01-10 20:38:35] IMAP> 61 NOOP 
[2025-01-10 20:38:35] IMAP< 61 OK NOOP completed (0.001 + 0.000 secs). 
[2025-01-10 20:38:35] IMAP> 98 NOOP 
[2025-01-10 20:38:35] IMAP< 98 OK Completed 
[2025-01-10 20:38:35] IMAP> 33 NOOP 
[2025-01-10 20:38:35] IMAP< 33 OK NOOP completed (0.001 + 0.000 secs). 
[2025-01-10 20:39:36] IMAP> 62 NOOP 
[2025-01-10 20:39:36] IMAP< 62 OK NOOP completed (0.001 + 0.000 secs). 
[2025-01-10 20:39:36] IMAP> 99 NOOP 
[2025-01-10 20:39:36] IMAP< 99 OK Completed 
[2025-01-10 20:39:36] IMAP> 34 NOOP 
[2025-01-10 20:39:36] IMAP< 34 OK NOOP completed (0.005 + 0.000 + 0.004 secs). 
[2025-01-10 20:40:22] IMAP> 5 LOGOUT 
[2025-01-10 20:40:22] IMAP< * BYE Disconnected for inactivity.

Note You need to log in before you can comment on or make changes to this bug.