From: prj@po.cwru.edu (Paul Jarc)
To: ding@gnus.org
Subject: Re: Gnus can't handle maildir groups with a space in the group name
Date: Sat, 01 Dec 2007 20:29:31 -0500 [thread overview]
Message-ID: <m31wa56fzh.fsf@multivac.cwru.edu> (raw)
In-Reply-To: <87tzn6idfo.fsf@mocca.josefsson.org> (Simon Josefsson's message of "Wed\, 28 Nov 2007 16\:42\:51 +0100")
[-- Attachment #1: Type: text/plain, Size: 222 bytes --]
Simon Josefsson <simon@josefsson.org> 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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: nnmaildir-space.diff --]
[-- Type: text/x-patch, Size: 1713 bytes --]
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
prev parent reply other threads:[~2007-12-02 1:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-27 19:01 Tassilo Horn
2007-11-27 19:22 ` Paul Jarc
2007-11-27 19:43 ` Tassilo Horn
2007-11-28 15:42 ` Simon Josefsson
2007-11-28 16:14 ` Tassilo Horn
2007-12-02 1:29 ` Paul Jarc [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m31wa56fzh.fsf@multivac.cwru.edu \
--to=prj@po.cwru.edu \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).