* bug#41906: [mumi] Raw mailbox download not usable with mutt
@ 2020-06-17 7:03 Lars-Dominik Braun
2020-12-06 17:35 ` Ricardo Wurmus
2022-12-24 22:45 ` Ricardo Wurmus
0 siblings, 2 replies; 5+ messages in thread
From: Lars-Dominik Braun @ 2020-06-17 7:03 UTC (permalink / raw)
To: 41906
[-- Attachment #1: Type: text/plain, Size: 237 bytes --]
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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#41906: [mumi] Raw mailbox download not usable with mutt
2020-06-17 7:03 bug#41906: [mumi] Raw mailbox download not usable with mutt Lars-Dominik Braun
@ 2020-12-06 17:35 ` Ricardo Wurmus
2020-12-07 7:29 ` Lars-Dominik Braun
2020-12-07 12:02 ` Bengt Richter
2022-12-24 22:45 ` Ricardo Wurmus
1 sibling, 2 replies; 5+ messages in thread
From: Ricardo Wurmus @ 2020-12-06 17:35 UTC (permalink / raw)
To: Lars-Dominik Braun; +Cc: 41906
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#41906: [mumi] Raw mailbox download not usable with mutt
2020-12-06 17:35 ` Ricardo Wurmus
@ 2020-12-07 7:29 ` Lars-Dominik Braun
2020-12-07 12:02 ` Bengt Richter
1 sibling, 0 replies; 5+ messages in thread
From: Lars-Dominik Braun @ 2020-12-07 7:29 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: 41906
[-- Attachment #1: Type: text/plain, Size: 1412 bytes --]
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@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@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@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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#41906: [mumi] Raw mailbox download not usable with mutt
2020-12-06 17:35 ` Ricardo Wurmus
2020-12-07 7:29 ` Lars-Dominik Braun
@ 2020-12-07 12:02 ` Bengt Richter
1 sibling, 0 replies; 5+ messages in thread
From: Bengt Richter @ 2020-12-07 12:02 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: Lars-Dominik Braun, 41906
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#41906: [mumi] Raw mailbox download not usable with mutt
2020-06-17 7:03 bug#41906: [mumi] Raw mailbox download not usable with mutt Lars-Dominik Braun
2020-12-06 17:35 ` Ricardo Wurmus
@ 2022-12-24 22:45 ` Ricardo Wurmus
1 sibling, 0 replies; 5+ messages in thread
From: Ricardo Wurmus @ 2022-12-24 22:45 UTC (permalink / raw)
To: 41906-done
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-12-24 22:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-17 7:03 bug#41906: [mumi] Raw mailbox download not usable with mutt Lars-Dominik Braun
2020-12-06 17:35 ` Ricardo Wurmus
2020-12-07 7:29 ` Lars-Dominik Braun
2020-12-07 12:02 ` Bengt Richter
2022-12-24 22:45 ` Ricardo Wurmus
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.