Bug 362477

Summary: Excessive number of password prompts
Product: [Unmaintained] trojita Reporter: Jan Kundrát <jkt>
Component: Desktop GUIAssignee: Trojita default assignee <trojita-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: git   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jan Kundrát 2016-04-29 20:35:57 UTC
1) Start Trojita configured to auto-connect, with no stored passwords, an active tray icon, available INBOX and unread e-mails
2) Forget about it, go away from the computer for a few hours
3) See dozens of password prompts
4) ???
5) Profit!
Comment 1 Jan Kundrát 2016-05-06 16:12:20 UTC
Git commit 8eb1279ae8388cbaa2fa0f4e5433f42e6a5762bd by Jan Kundrát.
Committed on 04/05/2016 at 14:35.
Pushed by gerrit into branch 'master'.

Requse password dialog on network reconnect cycles

When Trojita was started in its default settings (go online when
possible, do not remember passwords, watch for network session state
changes), no password was available and the network got cycled, a new
password prompt was opened. This patch ensures that if a password
request is pending, no additional prompts are enqueued.

This is implemented in the IMAP Model, so it isn't GUI-specific.
Change-Id: I4b14f06bc70b3580f16b0bfa4e47fcdb98b9d353

M  +3    -3    src/Imap/Model/Model.cpp
M  +6    -1    src/Imap/Model/Model.h
M  +20   -7    src/Imap/Tasks/OpenConnectionTask.cpp
M  +6    -0    src/Streams/FakeSocket.cpp
M  +2    -0    src/Streams/FakeSocket.h
M  +32   -0    tests/Imap/test_Imap_Tasks_OpenConnection.cpp
M  +2    -0    tests/Imap/test_Imap_Tasks_OpenConnection.h

http://commits.kde.org/trojita/8eb1279ae8388cbaa2fa0f4e5433f42e6a5762bd