+2005-02-17 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
+
+ * elmo-imap4.el (elmo-imap4-flags-to-imap): Preserve argument
+ `flags'.
+
2005-02-16 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
* elmo-filter.el (elmo-message-set-cached): Call
(defun elmo-imap4-flags-to-imap (flags)
"Convert FLAGS to the IMAP flag string."
- (let ((imap-flag (if (not (memq 'unread flags)) "\\Seen"))
- (flags (delq 'read (delq 'cached (delq 'unread flags))))
- spec)
+ (let ((imap-flag (if (not (memq 'unread flags)) "\\Seen")))
(dolist (flag flags)
- (setq imap-flag (concat imap-flag (if imap-flag " ")
- (or (car (cdr (assq flag elmo-imap4-flag-specs)))
- (capitalize (symbol-name flag))))))
+ (unless (memq flag '(new read unread cached))
+ (setq imap-flag
+ (concat imap-flag
+ (if imap-flag " ")
+ (or (car (cdr (assq flag elmo-imap4-flag-specs)))
+ (capitalize (symbol-name flag)))))))
imap-flag))
(luna-define-method elmo-folder-append-buffer