GNU bug report logs - #52274
Gnus gcc header tokenization ignores space breaks multiple folder archive setup

Previous Next

Package: emacs;

Reported by: Mats Lidell <matsl <at> gnu.org>

Date: Sat, 4 Dec 2021 10:01:01 UTC

Severity: normal

Tags: moreinfo

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 52274 in the body.
You can then email your comments to 52274 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#52274; Package emacs. (Sat, 04 Dec 2021 10:01:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mats Lidell <matsl <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 04 Dec 2021 10:01:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mats Lidell <matsl <at> gnu.org>
To: bug-gnu-emacs <at> gnu.org
Subject: Gnus gcc header tokenization ignores space breaks multiple folder
 archive setup
Date: Sat, 04 Dec 2021 11:00:07 +0100
Hi,

In commit 08ce17c2c0d32e200af3984d59f0b78ec500dc2c "Fix Gnus gcc header tokenization" space is removed form the tokenization of Gcc.

My setup with saving out going mails in two folders seems to have broken after that. My Gcc-header is setup like this:

    Gcc: <sent-folder><SPACE><mail-folder>

After the change "<sent-folder><SPACE><mail-folder>" seems to used for archiving causing some odd results.

I have configured gnus-message-archive-group to return a list of <sent-folder> and <mail-folder> so I am not tampering with the Gcc header directly.

Yours
-- 
%% Mats




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52274; Package emacs. (Sat, 04 Dec 2021 19:24:02 GMT) Full text and rfc822 format available.

Message #8 received at 52274 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Mats Lidell <matsl <at> gnu.org>
Cc: 52274 <at> debbugs.gnu.org
Subject: Re: bug#52274: Gnus gcc header tokenization ignores space breaks
 multiple folder archive setup
Date: Sat, 04 Dec 2021 20:23:26 +0100
Mats Lidell <matsl <at> gnu.org> writes:

> In commit 08ce17c2c0d32e200af3984d59f0b78ec500dc2c "Fix Gnus gcc
> header tokenization" space is removed form the tokenization of Gcc.
>
> My setup with saving out going mails in two folders seems to have
> broken after that. My Gcc-header is setup like this:
>
>     Gcc: <sent-folder><SPACE><mail-folder>
>
> After the change "<sent-folder><SPACE><mail-folder>" seems to used for
> archiving causing some odd results.
>
> I have configured gnus-message-archive-group to return a list of
> <sent-folder> and <mail-folder> so I am not tampering with the Gcc
> header directly.

I've now changed gnus-inews-insert-gcc on master to insert a comma
between groups, so I think that should fix the problem.  Can you check?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 04 Dec 2021 19:24:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52274; Package emacs. (Sat, 04 Dec 2021 22:35:01 GMT) Full text and rfc822 format available.

Message #13 received at 52274 <at> debbugs.gnu.org (full text, mbox):

From: Mats Lidell <matsl <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Mats Lidell <matsl <at> gnu.org>, 52274 <at> debbugs.gnu.org
Subject: Re: bug#52274: Gnus gcc header tokenization ignores space breaks
 multiple folder archive setup
Date: Sat, 04 Dec 2021 23:34:17 +0100
> Lars Ingebrigtsen writes:
> I've now changed gnus-inews-insert-gcc on master to insert a comma
> between groups, so I think that should fix the problem.  Can you check?

It does not quite fix it since the comma was inserted together with a space. The tokenizer leaves the leading space on the second folder. Which in my case makes the server method be " nnimap" which gnus-check-server does not understand.

(message-tokenize-header "folder1, folder2" ",\n\t") => ("folder1" " folder2")

%% Mats
PS. Curious, what was the problem with having space as separator? DS.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52274; Package emacs. (Sat, 04 Dec 2021 22:50:02 GMT) Full text and rfc822 format available.

Message #16 received at 52274 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Mats Lidell <matsl <at> gnu.org>
Cc: 52274 <at> debbugs.gnu.org
Subject: Re: bug#52274: Gnus gcc header tokenization ignores space breaks
 multiple folder archive setup
Date: Sat, 04 Dec 2021 23:49:02 +0100
Mats Lidell <matsl <at> gnu.org> writes:

> It does not quite fix it since the comma was inserted together with a
> space. The tokenizer leaves the leading space on the second
> folder. Which in my case makes the server method be " nnimap" which
> gnus-check-server does not understand.
>
> (message-tokenize-header "folder1, folder2" ",\n\t") => ("folder1" " folder2")

Darn.  I've now made it insert just a single comma.

> PS. Curious, what was the problem with having space as separator? DS.

Uhm...  it had something to do with group names containing spaces (which
is valid in nnimap).  Unfortunately the checkin doesn't refer to a bug
report, for some reason...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52274; Package emacs. (Sun, 05 Dec 2021 09:34:01 GMT) Full text and rfc822 format available.

Message #19 received at 52274 <at> debbugs.gnu.org (full text, mbox):

From: Mats Lidell <matsl <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Mats Lidell <matsl <at> gnu.org>, 52274 <at> debbugs.gnu.org
Subject: Re: bug#52274: Gnus gcc header tokenization ignores space breaks
 multiple folder archive setup
Date: Sun, 05 Dec 2021 10:33:41 +0100
> Lars Ingebrigtsen writes:
> Darn.  I've now made it insert just a single comma.

Great. Works fine now.

> > PS. Curious, what was the problem with having space as separator? DS.
>
> Uhm...  it had something to do with group names containing spaces (which
> is valid in nnimap).  Unfortunately the checkin doesn't refer to a bug
> report, for some reason...

I see. Makes sense.

%% Mats




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52274; Package emacs. (Sun, 05 Dec 2021 20:14:01 GMT) Full text and rfc822 format available.

Message #22 received at 52274 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Mats Lidell <matsl <at> gnu.org>
Cc: 52274 <at> debbugs.gnu.org
Subject: Re: bug#52274: Gnus gcc header tokenization ignores space breaks
 multiple folder archive setup
Date: Sun, 05 Dec 2021 21:12:53 +0100
Mats Lidell <matsl <at> gnu.org> writes:

>> Darn.  I've now made it insert just a single comma.
>
> Great. Works fine now.

Thanks for checking; I'm closing this bug report, then.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug marked as fixed in version 29.1, send any further explanations to 52274 <at> debbugs.gnu.org and Mats Lidell <matsl <at> gnu.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 05 Dec 2021 20:14:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 03 Jan 2022 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 168 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.