From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/41389 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: Check *-use-long-file-names for sanity Date: Wed, 02 Jan 2002 12:41:53 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1035176791 5852 80.91.224.250 (21 Oct 2002 05:06:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 05:06:31 +0000 (UTC) Return-Path: Original-Received: (qmail 17706 invoked from network); 2 Jan 2002 11:43:10 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 2 Jan 2002 11:43:10 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16LjnD-0007IH-00; Wed, 02 Jan 2002 05:42:47 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 02 Jan 2002 05:42:38 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id FAA21877 for ; Wed, 2 Jan 2002 05:42:28 -0600 (CST) Original-Received: (qmail 17677 invoked by alias); 2 Jan 2002 11:42:30 -0000 Original-Received: (qmail 17672 invoked from network); 2 Jan 2002 11:42:29 -0000 Original-Received: from waldorf.cs.uni-dortmund.de (129.217.4.42) by gnus.org with SMTP; 2 Jan 2002 11:42:29 -0000 Original-Received: from lothlorien.cs.uni-dortmund.de (lothlorien [129.217.19.67]) by waldorf.cs.uni-dortmund.de with ESMTP id g02Bg2b24565 for ; Wed, 2 Jan 2002 12:42:02 +0100 (MET) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.19.80]) by lothlorien.cs.uni-dortmund.de id MAA16626; Wed, 2 Jan 2002 12:41:57 +0100 (MET) Original-Received: by lucy.cs.uni-dortmund.de (Postfix, from userid 6104) id 6155B3B03C; Wed, 2 Jan 2002 12:41:53 +0100 (CET) Original-To: ding@gnus.org In-Reply-To: (Lars Magne Ingebrigtsen's message of "Sun, 30 Dec 2001 11:01:49 +0100") Original-Lines: 28 User-Agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/21.1.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:41389 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:41389 Lars Magne Ingebrigtsen writes: > Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Gro=DFjohann) writes: > >> IMVHO, when Gnus accesses a file or directory whose name was >> influenced somehow by gnus-use-long-file-name or >> nnmail-use-long-file-names (or other similar variables -- are there >> any?), then Gnus should look at the directory on disk to see if its >> contents agree with the variable setting. > > Finding the right heuristics for determining this might not be > trivial, though. There is a simple and safe check, I think: whenever you compute the dir name for a group, compute the `other' dir name too, and barf if the `other' dir name exists. So if gnus-use-long-file-name is t, then you barf if the dir name corresponding to gnus-use-long-file-name being nil exists. That might not check often enough, but it is better than no check at all, and I think it should always be a safe check. Opinions? kai --=20 Simplification good! Oversimplification bad! (Larry Wall)