Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Cc: ding@gnus.org
Subject: Re: error entering cvs gnus
Date: Sun, 19 Aug 2001 14:00:08 +0200	[thread overview]
Message-ID: <ilubslcs1iv.fsf@barbar.josefsson.org> (raw)
In-Reply-To: <m28zgg47m4.fsf@tuba.localdomain> (Laura Conrad's message of "Sun, 19 Aug 2001 07:22:27 -0400")

Laura Conrad <lconrad@laymusic.org> writes:

> The error message may have been correct, but gnus should have
> recovered from it and let me in anyway.  My complaint was that I
> couldn't run gnus at all.

I see.  Please try attached patch, it will ask you if Gnus should
continue even if the nnml directory is FUBAR.

> This isn't a group that mail gets sorted into; it's the archive group
> that mail from another group gets expired into.  So I don't see why
> gnus should be trying to write to it on entry.

Well, it tries to create the .marks file to make it possible to
e.g. backup the nnml server independently of .newsrc.eld.  The group
is only written to once; when you don't have a .marks file and nnml is
bootstrapping it for you.

2001-08-19  Simon Josefsson  <jas@extundo.com>

	* nnml.el (nnml-save-marks): If we can't write to marks file, ask
	user whether to continue or not.

--- nnml.el.~6.12.~	Sun Aug 19 11:38:42 2001
+++ nnml.el	Sun Aug 19 13:46:14 2001
@@ -908,11 +908,16 @@
   (let ((file-name-coding-system nnmail-pathname-coding-system)
 	(file (expand-file-name nnml-marks-file-name
 				(nnmail-group-pathname group nnml-directory))))
+    (condition-case err
+	(progn
     (nnml-possibly-create-directory group)
     (with-temp-file file
       (erase-buffer)
       (princ nnml-marks (current-buffer))
-      (insert "\n"))))
+	    (insert "\n")))
+      (error (or (gnus-yes-or-no-p
+		  (format "Could not write to %s (%s).  Continue? " file err))
+		 (error "Cannot write to %s (%s)" err))))))
 
 (defun nnml-open-marks (group server)
   (let ((file (expand-file-name 



      reply	other threads:[~2001-08-19 12:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-18 23:49 Laura Conrad
2001-08-19  0:11 ` Simon Josefsson
2001-08-19  0:48   ` Laura Conrad
2001-08-19  8:58     ` Simon Josefsson
2001-08-19 11:22       ` Laura Conrad
2001-08-19 12:00         ` Simon Josefsson [this message]

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=ilubslcs1iv.fsf@barbar.josefsson.org \
    --to=jas@extundo.com \
    --cc=ding@gnus.org \
    /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).