From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/53771 Path: main.gmane.org!not-for-mail From: letters@hotpop.com (Jari Aalto+mail.linux) Newsgroups: gmane.emacs.gnus.general Subject: Re: [patch] gnus.el::gnus-invalid-group-regexp - Support IMAP Date: Tue, 19 Aug 2003 21:17:56 +0300 Sender: ding-owner@lists.math.uh.edu Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1061316706 5808 80.91.224.253 (19 Aug 2003 18:11:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Aug 2003 18:11:46 +0000 (UTC) Original-X-From: ding-owner+M2312@lists.math.uh.edu Tue Aug 19 20:11:45 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19pAxM-0000JL-00 for ; Tue, 19 Aug 2003 20:11:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19pAwC-0005UF-00; Tue, 19 Aug 2003 13:10:32 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19pAw8-0005UA-00 for ding@lists.math.uh.edu; Tue, 19 Aug 2003 13:10:28 -0500 Original-Received: (qmail 83040 invoked by alias); 19 Aug 2003 18:10:28 -0000 Original-Received: (qmail 83035 invoked from network); 19 Aug 2003 18:10:27 -0000 Original-Received: from fep01-0.kolumbus.fi (HELO fep01-app.kolumbus.fi) (193.229.0.41) by sclp3.sclp.com with SMTP; 19 Aug 2003 18:10:27 -0000 Original-Received: from poboxes.com ([81.197.1.6]) by fep01-app.kolumbus.fi with ESMTP id <20030819181025.DMVS15160.fep01-app.kolumbus.fi@poboxes.com> for ; Tue, 19 Aug 2003 21:10:25 +0300 Original-To: ding@gnus.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/20.7 (windows-nt) (i386-*-nt5.0.2195) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:53771 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:53771 Simon Josefsson extundo.com> > I happened to read thread and the default indeed seemed a little twirst. > Please review, A potential problem may be if you create, e.g., a nnml or nnfolder group with the name containing '/'. Does it work? With Agent/Caching too? Does it do what users expect? With all nnmail-use-long-file-names settings? No problems with having two groups 'foo' and 'foo/bar'? Many questions. Hm. Okay, what about letting user decide? Like this: 2003-08-19 Tue Jari Aalto * gnus.el (gnus-read-group): 6.194 Added check to ask confirmation if Group name contains invalid character. You can use '/' in IMAP, but not in filenames. G m cannot know what the user is creating, so let user decide. See thread http://groups.google.com/groups?oi=djq&as_umsgid=%3Cm2oeysiev3.fsf@naima.lensflare.org also available at GOOGLE: "Creating IMAP group" group:gnu.emacs.gnus Prereq: 6.194 Index: gnus.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/gnus.el,v retrieving revision 6.194 diff -u -IId: -u -b -w -r6.194 gnus.el --- gnus.el 7 Aug 2003 00:34:56 -0000 6.194 +++ gnus.el 19 Aug 2003 18:12:13 -0000 @@ -3714,8 +3714,13 @@ (setq group (read-string (concat prefix prompt) (cons (or default "") 0) 'gnus-group-history))) + (let ((match (match-string 0 group))) + (unless (y-or-n-p + (format + "Warning, group \"%s\" contains \"%s\"; Are you SURE? " + group match)) (setq prefix (format "Invalid group name: \"%s\". " group) - group nil))) + group nil))))) group)) (defun gnus-read-method (prompt) -- http://tiny-tools.sourceforge.net/ Swatch @time http://www.mir.com.my/iTime/itime.htm http://www.ryanthiessen.com/swatch/resources.htm Use Licenses! http://www.linuxjournal.com/article.php?sid=6225 Which Licence? http://www.linuxjournal.com/article.php?sid=4825 OSI Licences http://www.opensource.org/licenses/