Gnus development mailing list
 help / color / mirror / Atom feed
From: Didier Verna <didier@lrde.epita.fr>
Subject: [PATCH] make nnmbox-create-mbox honor subdirectories
Date: Mon, 26 Nov 2001 14:31:25 +0100	[thread overview]
Message-ID: <muxzo59sloy.fsf@uzeb.lrde.epita.fr> (raw)

NOTE: This patch has been committed. The version below is
informational only (whitespace differences have been removed).

		Dear folks,

	If your nnmbox mbox file is located in a (sub)directory that doesn't
exist yet, Gnus will barf in nnmbox-create-mbox. The following patch fixes
this.


lisp/ChangeLog addition:

2001-11-26  Didier Verna  <didier@xemacs.org>

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


Gnus Patch (runsocks cvs -q diff -u -t -b -B -w lisp/nnmbox.el):

Index: lisp/nnmbox.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/nnmbox.el,v
retrieving revision 6.9
diff -u -u -t -b -B -w -r6.9 nnmbox.el
--- lisp/nnmbox.el	2001/10/17 15:20:30	6.9
+++ lisp/nnmbox.el	2001/11/26 13:40:39
@@ -607,7 +607,9 @@
   (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 ()

-- 
Didier Verna, didier@lrde.epita.fr, http://www.lrde.epita.fr/~didier

EPITA / LRDE, 14-16 rue Voltaire   Tel.+33 (1) 53 14 59 47
94276 Le Kremlin-Bicêtre, France   Fax.+33 (1) 53 14 59 22   didier@xemacs.org



                 reply	other threads:[~2001-11-26 13:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=muxzo59sloy.fsf@uzeb.lrde.epita.fr \
    --to=didier@lrde.epita.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).