* elmo-maildir.el (elmo-folder-append-buffer): Return number of
appended message.
* elmo-localdir.el (elmo-folder-append-buffer): Dto.
* elmo-archive.el (elmo-archive-folder-append-buffer): Dto.
2011-05-29 David Maus <dmaus@ictsoc.de>
+ * elmo-maildir.el (elmo-folder-append-buffer): Return number of
+ appended message.
+ * elmo-localdir.el (elmo-folder-append-buffer): Dto.
+ * elmo-archive.el (elmo-archive-folder-append-buffer): Dto.
+
* elmo.el (elmo-folder-append-buffer): Add optional fourth
argument, return number of appended message if possible.
* elmo-pipe.el (elmo-folder-append-buffer): Dto.
(with-current-buffer src-buffer
(elmo-msgdb-get-message-id-from-buffer))
flags)
- t))
+ (if return-number
+ next-num
+ t)))
nil)))))
(defun elmo-folder-append-messages-*-archive (folder
(point-min) (point-max) filename nil 'no-msg)
(elmo-folder-preserve-flags
folder (elmo-msgdb-get-message-id-from-buffer) flags)
- t)))
+ (if return-number
+ (car (elmo-folder-status folder))
+ t))))
(defun elmo-folder-append-messages-*-localdir (folder
src-folder
basedir))
(elmo-folder-preserve-flags
folder (elmo-msgdb-get-message-id-from-buffer) flags)
- t)
+ (if return-number
+ (car (elmo-folder-status folder))
+ t))
;; If an error occured, return nil.
(error))))