]> git.cworth.org Git - obsolete/notmuch-old/commitdiff
emacs: Fix to generate error if fcc directory is not a maildir
authorCarl Worth <cworth@cworth.org>
Mon, 26 Apr 2010 21:56:46 +0000 (14:56 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 26 Apr 2010 21:56:46 +0000 (14:56 -0700)
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

index 91c174c7a0afcf9ae644e3180a642f6e9bf7d5d2..64f60bc62bee9a23989da3104765831c19b89068 100644 (file)
@@ -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)