* elmo.el (elmo-folder): Add new slot `flag-table'.
(elmo-folder-flag-table): New API.
(elmo-folder-close-flag-table): Ditto.
- (elmo-folder-preserve-falgs): New function.
+ (elmo-folder-preserve-flags): New function.
(elmo-generic-folder-append-messages): Use
`elmo-folder-flag-table' and `elmo-folder-close-flag-table'.
Flag of a non-registered message, it sets to nil.
Does not set flag to flag-table.
* elmo-maildir.el (elmo-folder-append-buffer): Use
- `elmo-folder-preserve-falgs'.
+ `elmo-folder-preserve-flags'.
(elmo-folder-append-messages): Use `elmo-folder-flag-table' and
`elmo-folder-close-flag-table'.
* elmo-archive.el (elmo-folder-append-buffer): Fix interface.
(elmo-archive-folder-append-buffer): Use
- `elmo-folder-preserve-falgs'.
+ `elmo-folder-preserve-flags'.
* elmo-cache.el (elmo-folder-append-buffer): Ditto.
(as-binary-output-file
(write-region (point-min) (point-max) newfile nil 'no-msg))
(elmo-archive-call-method method (list arc newfile))
- (elmo-folder-preserve-falgs
+ (elmo-folder-preserve-flags
folder
(with-current-buffer src-buffer
(elmo-msgdb-get-message-id-from-buffer))
(not (file-exists-p file)))
(write-region-as-binary
(point-min) (point-max) file nil 'no-msg)
- (elmo-folder-preserve-falgs folder msgid flags)
+ (elmo-folder-preserve-flags folder msgid flags)
t)))))
(luna-define-method elmo-map-folder-delete-messages ((folder elmo-cache-folder)
(elmo-imap4-buffer-literal send-buffer))))
(kill-buffer send-buffer))
(when result
- (elmo-folder-preserve-falgs
+ (elmo-folder-preserve-flags
folder (elmo-msgdb-get-message-id-from-buffer) flags))
result)
;; Unplugged
(not (file-exists-p filename)))
(write-region-as-binary
(point-min) (point-max) filename nil 'no-msg)
- (elmo-folder-preserve-falgs
+ (elmo-folder-preserve-flags
folder (elmo-msgdb-get-message-id-from-buffer) flags)
t)))
(expand-file-name
(concat "new/" (file-name-nondirectory filename))
basedir))
- (elmo-folder-preserve-falgs
+ (elmo-folder-preserve-flags
folder (elmo-msgdb-get-message-id-from-buffer) flags)
t)
;; If an error occured, return nil.
(elmo-folder-flag-table folder))
(elmo-folder-set-flag-table-internal folder nil))
-(defun elmo-folder-preserve-falgs (folder msgid flags)
+(defun elmo-folder-preserve-flags (folder msgid flags)
"Preserve FLAGS into FOLDER for a message that has MSGID."
(when (and msgid flags)
(let ((flag-table (elmo-folder-flag-table folder 'if-exists))