+2011-06-05 David Maus <dmaus@ictsoc.de>
+
+ * wl-draft.el (wl-draft-save): Obtain number of appended draft
+ message by `elmo-folder-append-buffer', handle case UID of
+ appended message could not be found.
+
2010-08-31 TAKAHASHI Kaoru <kaoru@kaisei.org>
* wl-summary.el: Delete trailing whitespace.
(mime-edit-translate-buffer))
(wl-draft-get-header-delimiter t)
(setq next-number
- (elmo-folder-next-message-number (wl-draft-get-folder)))
- (elmo-folder-append-buffer (wl-draft-get-folder)))
+ (elmo-folder-append-buffer (wl-draft-get-folder) nil nil t)))
(elmo-folder-check (wl-draft-get-folder))
(elmo-folder-commit (wl-draft-get-folder))
- (setq wl-draft-buffer-message-number next-number)
- (rename-buffer (format "%s/%d" wl-draft-folder next-number) t)
+ (if (not (numberp next-number))
+ (setq wl-draft-buffer-message-number nil)
+ (setq wl-draft-buffer-message-number next-number)
+ (rename-buffer (format "%s/%d" wl-draft-folder next-number) t)
+ (wl-draft-config-info-operation wl-draft-buffer-message-number 'save))
(setq buffer-file-name (buffer-name))
(set-buffer-modified-p nil)
- (wl-draft-config-info-operation wl-draft-buffer-message-number 'save)
(message "Saving...done")))
(message "(No changes need to be saved)")))