cache-path))))
(when (and filename (file-readable-p filename))
(with-temp-buffer
- (elmo-set-buffer-multibyte nil)
+ (set-buffer-multibyte nil)
;;(insert-file-contents-as-binary filename)
(elmo-message-fetch folder number
(elmo-make-fetch-strategy 'entire
nil
cache-path)
nil (current-buffer) t)
- (elmo-set-buffer-multibyte default-enable-multibyte-characters)
+ (set-buffer-multibyte default-enable-multibyte-characters)
(decode-coding-region (point-min) (point-max)
elmo-mime-display-as-is-coding-system)
(elmo-buffer-field-condition-match condition number numbers)))))
&optional
disable-killed
ignore-msgdb
- no-check)
+ no-check
+ mask)
"Synchronize the folder data to the newest status.
FOLDER is the ELMO folder structure.
If optional IGNORE-MSGDB is non-nil, current msgdb is thrown away except
flag status.
If NO-CHECK is non-nil, rechecking folder is skipped.
+If optional argument MASK is specified and is a list of message numbers,
+synchronize messages only which are contained the list.
Return amount of cross-posted messages.
If update process is interrupted, return nil.")
&optional
disable-killed
ignore-msgdb
- no-check)
+ no-check
+ mask)
(let ((killed-list (elmo-folder-killed-list-internal folder))
(before-append t)
old-msgdb diff diff-2 delete-list new-list new-msgdb flag
folder
(not disable-killed)
'in-msgdb)))
+ (when (and mask (car diff))
+ (setcar diff (elmo-list-filter mask (car diff))))
(message "Checking folder diff...done")
(setq new-list (elmo-folder-confirm-appends (car diff)))
;; Set killed list as ((1 . MAX-OF-DISAPPEARED))