+2010-04-17 David Maus <dmaus@ictsoc.de>
+
+ * elmo-imap4.el (elmo-imap4-mailbox-size-update-maybe): Build list
+ of expunged messages only when response contains expunge.
+
2010-04-16 David Maus <dmaus@ictsoc.de>
* elmo-imap4.el (luna-define-class): Add slot
"Update size of selected mailbox in SESSION according to RESPONSE."
(let ((exists (elmo-imap4-response-value response 'exists))
(recent (elmo-imap4-response-value response 'recent))
- (expunge (delq nil (mapcar '(lambda (r)
- (if (eq (car r) 'expunge)
- (cadr r)))
- response)))
+ (expunge (if (assq 'expunge response)
+ (delq nil (mapcar '(lambda (r)
+ (if (eq (car r) 'expunge)
+ (cadr r)))
+ response))))
(current-size (or (elmo-imap4-session-current-mailbox-size-internal
session) (cons nil nil))))
(when (or expunge exists recent)