From: Carl Worth Date: Mon, 26 Apr 2010 21:56:46 +0000 (-0700) Subject: emacs: Fix to generate error if fcc directory is not a maildir X-Git-Tag: 0.3~38 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2b49f4631c8a7d829f64a65de099e7304c1dd9a8;p=notmuch.git emacs: Fix to generate error if fcc directory is not a maildir Previously this was just a message that was almost impossible for the user to see. Now, the user gets to see the error message, and is presented with a buffer that actually contains the Fcc header of interest. --- diff --git a/emacs/notmuch-maildir-fcc.el b/emacs/notmuch-maildir-fcc.el index 91c174c7..64f60bc6 100644 --- a/emacs/notmuch-maildir-fcc.el +++ b/emacs/notmuch-maildir-fcc.el @@ -111,8 +111,8 @@ if successful, nil if not." (write-file (concat destdir "/tmp/" msg-id)) msg-id) (t - (message (format "Can't write to %s. Not a maildir." - destdir)) + (error (format "Can't write to %s. Not a maildir." + destdir)) nil)))) (defun notmuch-maildir-fcc-move-tmp-to-new (destdir msg-id)