From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/38014 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: error entering cvs gnus Date: Sun, 19 Aug 2001 14:00:08 +0200 Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035173663 18537 80.91.224.250 (21 Oct 2002 04:14:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:14:23 +0000 (UTC) Cc: ding@gnus.org Return-Path: Return-Path: Original-Received: (qmail 15738 invoked from network); 19 Aug 2001 12:00:17 -0000 Original-Received: from dolk.extundo.com (195.42.214.242) by gnus.org with SMTP; 19 Aug 2001 12:00:17 -0000 Original-Received: from barbar.josefsson.org (slipsten.extundo.com [195.42.214.241]) (authenticated) by dolk.extundo.com (8.11.3/8.11.3) with ESMTP id f7JC0Jw17152; Sun, 19 Aug 2001 14:00:20 +0200 Original-To: Laura Conrad In-Reply-To: (Laura Conrad's message of "Sun, 19 Aug 2001 07:22:27 -0400") Mail-Copies-To: nobody User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.104 Original-Lines: 43 Xref: main.gmane.org gmane.emacs.gnus.general:38014 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:38014 Laura Conrad 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 * 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