GNU bug report logs - #41906
[mumi] Raw mailbox download not usable with mutt

Previous Next

Package: mumi;

Reported by: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>

Date: Wed, 17 Jun 2020 07:04:02 UTC

Severity: normal

Done: Ricardo Wurmus <rekado <at> elephly.net>

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 41906 in the body.
You can then email your comments to 41906 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-guix <at> gnu.org:
bug#41906; Package guix. (Wed, 17 Jun 2020 07:04:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lars-Dominik Braun <ldb <at> leibniz-psychology.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 17 Jun 2020 07:04:02 GMT) Full text and rfc822 format available.

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

From: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
To: bug-guix <at> gnu.org
Subject: [mumi] Raw mailbox download not usable with mutt
Date: Wed, 17 Jun 2020 09:03:12 +0200
[Message part 1 (text/plain, inline)]
Hi Ricardo,

currently mailbox files generated by mumi’s /raw/ endpoint are not usable with
mutt, because the first line contains a “Received:” header and thus does not
start with the mandated “From …” banner.

Lars

[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#41906; Package guix. (Sun, 06 Dec 2020 17:36:01 GMT) Full text and rfc822 format available.

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

From: Ricardo Wurmus <rekado <at> elephly.net>
To: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
Cc: 41906 <at> debbugs.gnu.org
Subject: Re: bug#41906: [mumi] Raw mailbox download not usable with mutt
Date: Sun, 06 Dec 2020 18:35:08 +0100
Hi Lars,

> currently mailbox files generated by mumi’s /raw/ endpoint are not usable with
> mutt, because the first line contains a “Received:” header and thus does not
> start with the mandated “From …” banner.

Does the equivalent mbox provided by the official Debbugs web interface
work?  This endpoint is called “raw” because it returns the plain email
as I got it from Debbugs.  It doesn’t seem right for me to manipulate it.

-- 
Ricardo




Information forwarded to bug-guix <at> gnu.org:
bug#41906; Package guix. (Mon, 07 Dec 2020 07:30:02 GMT) Full text and rfc822 format available.

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

From: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: 41906 <at> debbugs.gnu.org
Subject: Re: bug#41906: [mumi] Raw mailbox download not usable with mutt
Date: Mon, 7 Dec 2020 08:29:42 +0100
[Message part 1 (text/plain, inline)]
Hi Ricardo,

> Does the equivalent mbox provided by the official Debbugs web interface
> work?  This endpoint is called “raw” because it returns the plain email
> as I got it from Debbugs.  It doesn’t seem right for me to manipulate it.
yes, debbugs’ mboxes work. For instance look at the first message of
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=45062#5
If I diff the output of “mbox”
(https://debbugs.gnu.org/cgi/bugreport.cgi?msg=5;mbox=yes;bug=45062) and
https://issues.guix.gnu.org/issue/45062/raw/0 I get this:

---snip---
--- bug_45062_message_5.mbox	2020-12-07 08:25:16.280832753 +0100
+++ 45062-0.mbox	2020-12-07 08:25:21.416946627 +0100
@@ -1,5 +1,5 @@
-From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 06 00:02:51 2020
 Received: (at submit) by debbugs.gnu.org; 6 Dec 2020 05:02:51 +0000
+From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 06 00:02:51 2020
 Received: from localhost ([127.0.0.1]:48662 helo=debbugs.gnu.org)
 	by debbugs.gnu.org with esmtp (Exim 4.84_2)
 	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
@@ -146,5 +146,3 @@



-
-
---snap---

Cheers,
Lars

-- 
Lars-Dominik Braun
Wissenschaftlicher Mitarbeiter/Research Associate

www.leibniz-psychology.org
ZPID - Leibniz-Institut für Psychologie /
ZPID - Leibniz Institute for Psychology
Universitätsring 15
D-54296 Trier - Germany
Tel.: +49–651–201-4964
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#41906; Package guix. (Mon, 07 Dec 2020 12:03:01 GMT) Full text and rfc822 format available.

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

From: Bengt Richter <bokr <at> bokr.com>
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: 41906 <at> debbugs.gnu.org, Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
Subject: Re: bug#41906: [mumi] Raw mailbox download not usable with mutt
Date: Mon, 7 Dec 2020 13:02:00 +0100
Hi Ricardo, et al,

On +2020-12-06 18:35:08 +0100, Ricardo Wurmus wrote:
> 
> Hi Lars,
> 
> > currently mailbox files generated by mumi’s /raw/ endpoint are not usable with
> > mutt, because the first line contains a “Received:” header and thus does not
> > start with the mandated “From …” banner.
> 
> Does the equivalent mbox provided by the official Debbugs web interface
> work?  This endpoint is called “raw” because it returns the plain email
> as I got it from Debbugs.  It doesn’t seem right for me to manipulate it.
> 
> -- 
> Ricardo
> 
>

On a guix debbugs web page I observed the following:

The option to download a single bug report on a debbugs web page
as mbox seems to work fine.

E.g., the page with your report
    https://debbugs.gnu.org/cgi/bugreport.cgi?bug=38715#28
has a link
    https://debbugs.gnu.org/cgi/bugreport.cgi?mbox=yes;msg=28;bug=38715
which one can save-as, resulting in file
    bug_38715_message_28.mbox  
which
    mutt -f bug_38715_message_28.mbox
will show normally.

But I don't, e.g., know how to get all the debbugs guix bug reports for e.g. December
the way I can for the regular mailing list archives -- does mumi do that?
-- e.g. like for bug-guix at
    https://lists.gnu.org/archive/mbox/bug-guix/
where you can
    wget -c https://lists.gnu.org/archive/mbox/bug-guix/2020-12
resulting in an mbx file
    2020-12
which
    mutt -Rf 2020-12
will open for you (I use -R for read-only)

The '-c' wget option tells wget just to download the new appended emails
if you already have the 2020-12 file in your current directory, so that's economical :)

I follow half a dozen or so gnu mail lists that I don't subscribe to, and wget -c
works fine on all of them.

The YYYY-MM format seems to be generated like "$(date '+%Y-%m')"
so it's easy to script urls for wget.

It might be nice for debbugs to synthesize cgi-equivalents to
    https://lists.gnu.org/archive/mbox/bug-guix/2020-12
for lists that want it. Maybe by a debbugs name like
    https://lists.gnu.org/archive/mbox/debbugs-guix/2020-12
and similarly for other bug-<list name> ?

Maybe it already exists, but it's not apparently listed at
    https://lists.gnu.org/mailman/listinfo/
(though help-debbugs is, but that is a normal mailing list I think :)

Sorry if this is not on topic mumi per se, but it is about viewing
bug reports using mutt on mbox files :)

I don't use mumi, but if it doesn't have clean mbox as an output option,
I think it ought to be fixed :)

-- 
Regards,
Bengt Richter




Reply sent to Ricardo Wurmus <rekado <at> elephly.net>:
You have taken responsibility. (Sat, 24 Dec 2022 22:47:02 GMT) Full text and rfc822 format available.

Notification sent to Lars-Dominik Braun <ldb <at> leibniz-psychology.org>:
bug acknowledged by developer. (Sat, 24 Dec 2022 22:47:02 GMT) Full text and rfc822 format available.

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

From: Ricardo Wurmus <rekado <at> elephly.net>
To: 41906-done <at> debbugs.gnu.org
Subject: [mumi] Raw mailbox download not usable with mutt
Date: Sat, 24 Dec 2022 23:45:16 +0100
Commit 0a90eeda9b5e12a2f83e3917c46fa539f308d0c8 fixes this.  Debbugs
apparently stores the raw email with the first two lines swapped.  I
just swap the two lines back.  The output from mumi’s /raw endpoint now
only differs in trailing white space.

-- 
Ricardo




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

bug unarchived. Request was from Felix Lechner <felix.lechner <at> lease-up.com> to control <at> debbugs.gnu.org. (Thu, 08 Feb 2024 17:26:02 GMT) Full text and rfc822 format available.

bug reassigned from package 'guix' to 'mumi'. Request was from Felix Lechner <felix.lechner <at> lease-up.com> to control <at> debbugs.gnu.org. (Thu, 08 Feb 2024 17:26:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Felix Lechner <felix.lechner <at> lease-up.com> to control <at> debbugs.gnu.org. (Thu, 08 Feb 2024 17:26:02 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Felix Lechner <felix.lechner <at> lease-up.com> to control <at> debbugs.gnu.org. (Fri, 23 Feb 2024 13:25:05 GMT) Full text and rfc822 format available.

bug archived. Request was from Felix Lechner <felix.lechner <at> lease-up.com> to control <at> debbugs.gnu.org. (Fri, 23 Feb 2024 13:25:05 GMT) Full text and rfc822 format available.

This bug report was last modified 53 days ago.

Previous Next


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