From 2b49f4631c8a7d829f64a65de099e7304c1dd9a8 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 26 Apr 2010 14:56:46 -0700 Subject: [PATCH] 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. --- emacs/notmuch-maildir-fcc.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.43.0