From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/53798 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: [patch] gnus.el::gnus-invalid-group-regexp - Support IMAP Date: Fri, 22 Aug 2003 02:50:22 +0200 Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1061513562 5383 80.91.224.253 (22 Aug 2003 00:52:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Aug 2003 00:52:42 +0000 (UTC) Original-X-From: ding-owner+M2338@lists.math.uh.edu Fri Aug 22 02:52:40 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 19q0AS-0004Hg-00 for ; Fri, 22 Aug 2003 02:52:40 +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 19q08T-0005hn-00; Thu, 21 Aug 2003 19:50:37 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19q08L-0005hh-00 for ding@lists.math.uh.edu; Thu, 21 Aug 2003 19:50:29 -0500 Original-Received: (qmail 47972 invoked by alias); 22 Aug 2003 00:50:26 -0000 Original-Received: (qmail 47966 invoked from network); 22 Aug 2003 00:50:25 -0000 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net (HELO yxa.extundo.com) (217.13.230.178) by sclp3.sclp.com with SMTP; 22 Aug 2003 00:50:25 -0000 Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.9/8.12.9) with ESMTP id h7M0oMdk018244 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Fri, 22 Aug 2003 02:50:23 +0200 Original-To: ding@gnus.org Mail-Copies-To: nobody X-Payment: hashcash 1.2 0:030822:ding@gnus.org:53771033a0ad9f15 X-Hashcash: 0:030822:ding@gnus.org:53771033a0ad9f15 In-Reply-To: (Reiner Steib's message of "Thu, 21 Aug 2003 16:23:21 +0200") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:53798 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:53798 Reiner Steib <4.uce.03.r.s@nurfuerspam.de> writes: > On Thu, Aug 21 2003, Simon Josefsson wrote: > >> Reiner Steib <4.uce.03.r.s@nurfuerspam.de> writes: >> >>> On Tue, Aug 19 2003, Simon Josefsson wrote: >>> >>>> 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. > [...] >>> - The problem that we were discussing was only the character `/' in >>> IMAP groups. I don't think it's a good idea to let the user create >>> _any_ invalid group, e.g. with [: `'\"] and even empty group names. >> >> All of those characters are valid in IMAP, > > Okay, we can change the "(string-match "/" match)" part. But at least > empty or other group names, that will most probably fail when used in > Gnus groups (which chars?) sooner or later[1] should remain forbidden, > IMHO. If the user is absolutely sure, he can always customize > `gnus-invalid-group-regexp'. Of the default values in gnus-invalid-group-regexp, I think only the : and empty group name are really off-limit. The others look even likely to occur, and should work. >> and since some IMAP servers export regular file systems ($HOME/), I >> think it is even likely that people have group names containing some >> of those characters. > > I know that it exists, but I remembered some problems related to this, > e.g. with "Unerwünschte Nachrichten" (?). There is code to IMAP-UTF-7 encode at least ISO-8859-1 characters, and it used to work when I tried it long time ago; I used to name my spam folder as INBOX.räksmörgås. Doesn't it work? Perhaps we should add a UTF-7 coding system to Emacs, btw... > [1] Will Gcc to a group containing `"' work? And the other issues you > mentioned previously (see quote at the top). Maybe if you put a Gcc: "nnimap+foo:bar\"baz" although I haven't tested it, although quoted Gcc group names should be supported. Hm. I recall there actually being some low-level imap.el bug when " is used in a mailbox name though, it doesn't use a literal instead of a string, which is necessary in the IMAP protocol, IIRC.