From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65844 Path: news.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.emacs.gnus.general Subject: Re: Gnus can't handle maildir groups with a space in the group name Date: Sat, 01 Dec 2007 20:29:31 -0500 Organization: What did you have in mind? A short, blunt, human pyramid? Message-ID: References: <877ik3o6lj.fsf@member.fsf.org> <87fxyrwk1w.fsf@member.fsf.org> <87tzn6idfo.fsf@mocca.josefsson.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1196559048 29639 80.91.229.12 (2 Dec 2007 01:30:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Dec 2007 01:30:48 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M14339@lists.math.uh.edu Sun Dec 02 02:30:57 2007 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1Iydfb-0001CE-7n for ding-account@gmane.org; Sun, 02 Dec 2007 02:30:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Iydez-0006oZ-Vw; Sat, 01 Dec 2007 19:30:18 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Iydey-0006oK-Ga for ding@lists.math.uh.edu; Sat, 01 Dec 2007 19:30:16 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1Iydes-0008DB-Bu for ding@lists.math.uh.edu; Sat, 01 Dec 2007 19:30:16 -0600 Original-Received: from mpv2.tis.cwru.edu ([129.22.105.37]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Iydep-0004i1-00 for ; Sun, 02 Dec 2007 02:30:07 +0100 Original-Received: from mpv6.tis.cwru.edu (mpv6.tis.cwru.edu [129.22.104.221]) by mpv2.tis.cwru.edu (MOS 3.8.5-GA) with ESMTP id COU95623 for ; Sat, 1 Dec 2007 20:29:36 -0500 (EST) Original-Received: from multivac.cwru.edu (multivac.its.CWRU.Edu [129.22.114.26]) by mpv6.tis.cwru.edu (MOS 3.8.5-GA) with SMTP id DFL95373 for ; Sat, 1 Dec 2007 20:29:36 -0500 (EST) Original-Received: (qmail 31111 invoked by uid 500); 2 Dec 2007 01:29:57 -0000 In-Reply-To: <87tzn6idfo.fsf@mocca.josefsson.org> (Simon Josefsson's message of "Wed\, 28 Nov 2007 16\:42\:51 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Mail-Copies-To: nobody Mail-Followup-To: ding@gnus.org Original-Lines: 10 X-Junkmail-Status: score=10/49, host=mpv2.tis.cwru.edu X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A010207.47520A19.00C2,ss=1,fgs=0, ip=129.22.104.221, so=2007-07-31 18:51:00, dmn=5.4.3/2007-10-18 X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65844 Archived-At: --=-=-= Simon Josefsson wrote: > Yeah, IIRC, spaces work fine in Gnus if they are escaped as foo\ bar > when they are exchanged between Gnus and nn*. Here's a patch. Tassilo, does this work for you? paul --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=nnmaildir-space.diff Index: lisp/nnmaildir.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/nnmaildir.el,v retrieving revision 7.14 diff -u -r7.14 nnmaildir.el --- lisp/nnmaildir.el 25 Oct 2007 08:17:54 -0000 7.14 +++ lisp/nnmaildir.el 2 Dec 2007 01:17:22 -0000 @@ -883,7 +883,9 @@ pgname (nnmaildir--pgname nnmaildir--cur-server pgname) group (symbol-value group) ro (nnmaildir--param pgname 'read-only)) - (insert (nnmaildir--grp-name group) " ") + (insert (gnus-replace-in-string + (nnmaildir--grp-name group) " " "\\ " t) + " ") (princ (nnmaildir--group-maxnum nnmaildir--cur-server group) nntp-server-buffer) (insert " ") @@ -910,7 +912,9 @@ (insert " ") (princ (nnmaildir--group-maxnum nnmaildir--cur-server group) nntp-server-buffer) - (insert " " gname "\n"))))) + (insert " " + (gnus-replace-in-string gname " " "\\ " t) + "\n"))))) 'group) (defun nnmaildir-request-update-info (gname info &optional server) @@ -998,7 +1002,7 @@ (insert " ") (princ (nnmaildir--group-maxnum nnmaildir--cur-server group) nntp-server-buffer) - (insert " " gname "\n") + (insert " " (gnus-replace-in-string gname " " "\\ " t) "\n") t)))) (defun nnmaildir-request-create-group (gname &optional server args) @@ -1160,7 +1164,7 @@ (insert "\t" (nnmaildir--nov-get-beg nov) "\t" (nnmaildir--art-msgid article) "\t" (nnmaildir--nov-get-mid nov) "\tXref: nnmaildir " - gname ":") + (gnus-replace-in-string gname " " "\\ " t) ":") (princ num nntp-server-buffer) (insert "\t" (nnmaildir--nov-get-end nov) "\n")))) (catch 'return --=-=-=--