Bug 288659

Summary: readonly IMAP should be reported.
Product: [Applications] kmail2 Reporter: Matwey V. Kornilov <matwey.kornilov>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: wishlist CC: montel
Priority: NOR    
Version: 4.7   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Matwey V. Kornilov 2011-12-10 14:35:43 UTC
Version:           4.7 (using KDE 4.7.2) 
OS:                Linux

When IMAP connection is in readonly state by server KMail (akonady?) should handle it correctly.

Now, I can try to remove or move an letter from one folder to another one. KMail behaves like when it can do it. But at the next mail check I get a copy of this letter, because the server doesn't remove it (since connection is readonly).

Messages from sever like "Expunge ignored on readonly mailbox" should be handler correctly or at least this message should be reported to mailclient user.

Reproducible: Always



Expected Results:  
A notification about readonly mailbox should appear. non-readonly action (like move, or remove) should be blocked inside mail client.

OS: Linux (i686) release 3.1.0-1.2-desktop
Compiler: gcc
Comment 1 Laurent Montel 2011-12-12 09:55:48 UTC
How do you put read only imap server ?
Comment 2 Matwey V. Kornilov 2011-12-14 11:50:16 UTC
There is likely concurrent connection from other pc. 

Related output from KIMAP_LOGFILE looks like that:


S: A000022 OK UID FETCH completed
C: A000023 SELECT "INBOX"
S: * NO Trying to get mailbox lock from process 11909
S: * 4 EXISTS
S: * NO Mailbox is open by another process, access is readonly
S: * 0 RECENT
S: * OK UID validity status [ UIDVALIDITY 1311417756  ]
S: * OK Predicted next UID [ UIDNEXT 23  ]
S: * FLAGS ( KMAILFORWARDED KMAILTODO KMAILWATCHED KMAILIGNORED $FORWARDED $TOD
S: * OK Permanent flags [ PERMANENTFLAGS ( )  ]
S: * OK first unseen message in /var/spool/mail/matwey [ UNSEEN 4  ]
S: A000023 OK SELECT completed [ READ-ONLY  ]
S: A000031 OK SELECT completed [ READ-ONLY  ]
C: A000032 EXPUNGE
S: * NO Expunge ignored on readonly mailbox
S: A000032 OK EXPUNGE completed
C: A000033 SELECT "INBOX"
S: * NO Trying to get mailbox lock from process 12078
S: * 4 EXISTS
S: * NO Mailbox is open by another process, access is readonly
S: * 0 RECENT
S: * OK UID validity status [ UIDVALIDITY 1311417756  ]
S: * OK Predicted next UID [ UIDNEXT 23  ]
S: * FLAGS ( KMAILFORWARDED KMAILTODO KMAILWATCHED KMAILIGNORED $FORWARDED $TOD
S: * OK Permanent flags [ PERMANENTFLAGS ( )  ]
S: * OK first unseen message in /var/spool/mail/matwey [ UNSEEN 4  ]
S: A000033 OK SELECT completed [ READ-ONLY  ]