[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    Re: How do I refresh a folder?
From:       Kyler Laird <Kyler () Lairds ! com>
Date:       2002-12-23 14:42:10
[Download RAW message or body]

>> So...I'll try to answer my question without having tested it yet
>> (because I'm having difficulties with Courier).  Yes, KMail is
>> unable to detect changes in its local maildir folders without
>> restarting and there are no plans to fix this.
>
>Wrong. There are plans to fix this. It's just that we are currently busy 
>fixing other more important stuff.

Yea!  Just knowing that it's in the works is a comfort.

>>  However, it is able
>> to detect changes in IMAP folders (assuming, I am guessing, that the
>> IMAP server is set up to allow checking for new mail in all folders,
>> but maybe it doesn't use the indication feature).
>
>KMail currently doesn't listen for any signals from the IMAP server like 
>a new mail signal.

Ouch!  So it's not compliant with IMAP4?
   5.2.    Mailbox Size and Message Status Updates

   At any time, a server can send data that the client did not request.
   Sometimes, such behavior is REQUIRED.  For example, agents other than
   the server MAY add messages to the mailbox (e.g. new mail delivery),
   change the flags of message in the mailbox (e.g. simultaneous access
   to the same mailbox by multiple agents), or even remove messages from
   the mailbox.  A server MUST send mailbox size updates automatically
   if a mailbox size change is observed during the processing of a
   command.  A server SHOULD send message flag updates automatically,
   without requiring the client to request such updates explicitly.
   Special rules exist for server notification of a client about the
   removal of messages to prevent synchronization errors; see the
   description of the EXPUNGE response for more detail.

   Regardless of what implementation decisions a client makes on
   remembering data from the server, a client implementation MUST record
   mailbox size updates.  It MUST NOT assume that any command after
   initial mailbox selection will return the size of the mailbox.

>In order to make it detect changes in IMAP folders 
>you have to check for new mail (manually or with interval checking). 

That statement takes some further specification.  KMail only checks
folders that it already knows about.  (It only does "LIST %" at the
start of a session.)  If a new folder is added outside of KMail, it is
ignored until KMail is restarted.

Further, if a folder is removed outside of KMail, it will complain about
it not existing everytime it's checked, but will not remove it unless
KMail is restarted.

--kyler

_______________________________________________
KMail Developers mailing list
kmail@mail.kde.org
http://mail.kde.org/mailman/listinfo/kmail
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic