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.
This commit is contained in:
Carl Worth 2010-04-26 14:56:46 -07:00
parent 932e1c165c
commit 2b49f4631c

View file

@ -111,7 +111,7 @@ 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."
(error (format "Can't write to %s. Not a maildir."
destdir))
nil))))