diff options
author | Carl Worth <cworth@cworth.org> | 2010-04-26 14:56:46 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-04-26 14:56:46 -0700 |
commit | 2b49f4631c8a7d829f64a65de099e7304c1dd9a8 (patch) | |
tree | 4fd288d3c66664f5505482f6215be8a74af558ad | |
parent | 932e1c165cdb5dff769e4d290525f4f6b2f5ac81 (diff) |
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.
-rw-r--r-- | emacs/notmuch-maildir-fcc.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/emacs/notmuch-maildir-fcc.el b/emacs/notmuch-maildir-fcc.el index 91c174c..64f60bc 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) |