lisp/ChangeLog addition:
authorDidier Verna <didier@xemacs.org>
Mon, 26 Nov 2001 13:42:41 +0000 (13:42 +0000)
committerDidier Verna <didier@xemacs.org>
Mon, 26 Nov 2001 13:42:41 +0000 (13:42 +0000)
2001-11-26  Didier Verna  <didier@xemacs.org>

* nnmbox.el (nnmbox-create-mbox): create the mbox file directory
if needed.

lisp/ChangeLog
lisp/nnmbox.el

index b77488a..f9fe77a 100644 (file)
@@ -1,3 +1,8 @@
+2001-11-26  Didier Verna  <didier@xemacs.org>
+
+       * nnmbox.el (nnmbox-create-mbox): create the mbox file directory
+       if needed.
+
 2001-11-21  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * message.el (message-tamago-not-in-use-p): New function.
index 972e20f..bf62dfb 100644 (file)
@@ -607,7 +607,9 @@ This variable is a virtual server slot.  See the Gnus manual for details.")
   (when (not (file-exists-p nnmbox-mbox-file))
     (let ((nnmail-file-coding-system
           (or nnmbox-file-coding-system-for-write
-              nnmbox-file-coding-system)))
+              nnmbox-file-coding-system))
+         (dir (file-name-directory nnmbox-mbox-file)))
+      (and dir (gnus-make-directory dir))
       (nnmail-write-region 1 1 nnmbox-mbox-file t 'nomesg))))
 
 (defun nnmbox-read-mbox ()