Bug 290394 - imap idle is not working
Summary: imap idle is not working
Status: RESOLVED WORKSFORME
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: 4.7
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: investigated, triaged
Depends on:
Blocks:
 
Reported: 2012-01-02 12:28 UTC by Martin Fahrendorf
Modified: 2018-10-27 03:42 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Fahrendorf 2012-01-02 12:28:05 UTC
Version:           4.7 (using KDE 4.7.3) 
OS:                Linux

My imap server is able to handle the IDLE command (thunderbird works with this), but kmail2 does not use it.

I have to enable cyclic polling to get new mails shown.

Reproducible: Always

Steps to Reproduce:
disable cyclic polling and send in new mail.

Actual Results:  
No new mail is shown in kmail. Only if F5 of ctrl-L is pressed new mails are listed.

Expected Results:  
list new mails

My imap server is cyrus version 2.3.7. On request from Andras Mantia I enabled imap logging and the first lines are:

C: A000004 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID LOGINDISABLED ACL
RIGHTS=kxte QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME
UNSELECT CHILDREN MULTIAPPEND BINARY SORT SORT=MODSEQ
THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE CATENATE CONDSTORE
IDLE LISTEXT LIST-SUBSCRIBED X-NETSCAPE URLAUTH
S: A000004 OK Completed
C: A000005 NAMESPACE
S: * NAMESPACE ( ("INBOX." ".") ) ( ("user." ".") ) ( ("" ".") )
S: A000005 OK Completed
C: A000006 LIST "" *

Then there is a long list of Folders with hasChildren or hasNoChildren
and after that

S: A000006 OK Completed ( 0.010 secs 165 calls )
C: A000007 LSUB "" *

and a long list of LSUB entries of the folders. After this I selected my
SOGo folder and got:

S: A000007 OK Completed ( 0.000 secs 103 calls )
C: A000008 SELECT "INBOX.Listen.SOGo"
S: * FLAGS ( \Answered \Flagged \Draft \Deleted \Seen KMAILFORWARDED
KMAILTODO KMAILWATCHED KMAILIGNORED $FORWARDED $TODO $WATCHED $IGNORED
$SIGNED $ATTACHMENT $REPLIED )
S: * OK [ PERMANENTFLAGS ( \Answered \Flagged \Draft \Deleted \Seen
KMAILFORWARDED KMAILTODO KMAILWATCHED KMAILIGNORED $FORWARDED $TODO
$WATCHED $IGNORED $SIGNED $ATTACHMENT $REPLIED \* )  ]
S: * 1473 EXISTS
S: * 0 RECENT
S: * OK [ UNSEEN 1472  ]
S: * OK [ UIDVALIDITY 1279521570  ]
S: * OK [ UIDNEXT 7327  ]
S: * OK Sorry, modsequences have not been enabled on this mailbox [
NOMODSEQ  ]
S: A000008 OK Completed [ READ-WRITE  ]
C: A000009 EXPUNGE
S: * 1473 EXISTS
S: * 0 RECENT
S: A000009 OK Completed
C: A000010 SELECT "INBOX.Listen.SOGo"
S: * FLAGS ( \Answered \Flagged \Draft \Deleted \Seen KMAILFORWARDED
KMAILTODO KMAILWATCHED KMAILIGNORED $FORWARDED $TODO $WATCHED $IGNORED
$SIGNED $ATTACHMENT $REPLIED )
S: * OK [ PERMANENTFLAGS ( \Answered \Flagged \Draft \Deleted \Seen
KMAILFORWARDED KMAILTODO KMAILWATCHED KMAILIGNORED $FORWARDED $TODO
$WATCHED $IGNORED $SIGNED $ATTACHMENT $REPLIED \* )  ]
S: * 1473 EXISTS
S: * 0 RECENT
S: * OK [ UNSEEN 1472  ]
S: * OK [ UIDVALIDITY 1279521570  ]
S: * OK [ UIDNEXT 7327  ]
S: * OK Sorry, modsequences have not been enabled on this mailbox [
NOMODSEQ  ]
S: A000010 OK Completed [ READ-WRITE  ]

with a long list of numbers (IDs of the mails) and the last mail selected.

And Andras wrote that there shoulb be something like

C: A000006 IDLE
S: + idling

but is not.
Comment 1 Kevin Ottens 2012-02-11 09:19:50 UTC
If the idle manager kicked off you should have at least two log files. One per IMAP session, the one you looked at is the main session on which we do all the big work, we use a separate session for IDLE.

Did you have only one log file? If not, what's in the other ones?
Comment 2 Martin Fahrendorf 2012-02-11 09:22:39 UTC
I think there was only one. I have to retest this the be sure.
Comment 3 Martin Fahrendorf 2012-02-11 16:35:09 UTC
So I verified this: only one file. I set it with KIMAP_LOGFILE. Is there
another option to enable debugging?
Am 11.02.2012 10:19, schrieb Kevin Ottens:
> https://bugs.kde.org/show_bug.cgi?id=290394
> 
> 
> Kevin Ottens <ervin@kde.org> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Status|UNCONFIRMED                 |NEEDSINFO
>                  CC|                            |ervin@kde.org
>          Resolution|                            |WAITINGFORINFO
> 
> 
> 
> 
> --- Comment #1 from Kevin Ottens <ervin kde org>  2012-02-11 09:19:50 ---
> If the idle manager kicked off you should have at least two log files. One per
> IMAP session, the one you looked at is the main session on which we do all the
> big work, we use a separate session for IDLE.
> 
> Did you have only one log file? If not, what's in the other ones?
>
Comment 4 Andrew Crouthamel 2018-09-22 01:49:35 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Andrew Crouthamel 2018-10-27 03:42:11 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!