[mumi] Raw mailbox download not usable with mutt

  • Done
  • quality assurance status badge
Details
4 participants
  • Bengt Richter
  • Felix Lechner
  • Lars-Dominik Braun
  • Ricardo Wurmus
Owner
unassigned
Submitted by
Lars-Dominik Braun
Severity
normal
L
L
Lars-Dominik Braun wrote on 17 Jun 2020 09:03
(address . bug-guix@gnu.org)
20200617070312.GA3092@zpidnp36
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
-----BEGIN PGP SIGNATURE-----

iQGzBAABCgAdFiEEyk+M9DfXR4/aBV/UQhN3ARo3hEYFAl7pwC0ACgkQQhN3ARo3
hEaNmgv9EiqEYh9i9pQzBGdd/OCzz/VsN7PMDP7yft7R8YZITA6Bxyx4IhUnCyOO
qEchWNOVKeOn5tyjnOqw4WR8C49QQHrVDQqyzNjSSfWpsRGpFg3wPnAAKb64Qvye
fX8CRM9yhwPKpLfNOgLHbuyGv47n1KIKLpY7Ko5A/Y4ekDPY3S5FpEPZfG+qIwsC
bDli/9KwYyD2mp5wHvxK/CZlmtUUSXwJHK5YLhEwTl6j7AdNtncO6UYg2rBIpafR
Anf0366W3w8ZrCP5cvqrRQ433B7vDOB3JdcCOb1nc8muD46scMFU+/L6ABI/kdrt
kp690k9C9sQwcejn+azk8NYmtXh1XhUiQKBmUicELOfZA8tKKEMdPp3BDFnA3I54
2ti6qxbA1zR90dlObPb78wEyxRfZf0elVBqwuUdWpe4cl/AXc/7lQZnPFeDRJNLx
mVIsnvRfAzIMs64QHjCcfq6ExKvtSvQGSbJsnuFbYeNMe4A1FEKPAsBXxpJrZJNG
syZhpyjA
=S+nT
-----END PGP SIGNATURE-----


R
R
Ricardo Wurmus wrote on 6 Dec 2020 18:35
(name . Lars-Dominik Braun)(address . ldb@leibniz-psychology.org)(address . 41906@debbugs.gnu.org)
87tusy6do3.fsf@elephly.net
Hi Lars,

Toggle quote (4 lines)
> 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
L
L
Lars-Dominik Braun wrote on 7 Dec 2020 08:29
(name . Ricardo Wurmus)(address . rekado@elephly.net)(address . 41906@debbugs.gnu.org)
20201207072942.GA5452@zpidnp36
Hi Ricardo,

Toggle quote (3 lines)
> 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
If I diff the output of “mbox”

---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
-----BEGIN PGP SIGNATURE-----

iQGzBAABCgAdFiEEyk+M9DfXR4/aBV/UQhN3ARo3hEYFAl/N2eAACgkQQhN3ARo3
hEbohgv/Wbqdof01PaNcTbxtdHI0h/gRkhkH4gh0SSLKqi4JlblU9aAl1LaWw4V7
3DZ0l1omEGjpVV5ZCoIj+9ftE4Dvi4xHRc8kj12/UHH56wj7cE0PktkjkBqgd8hR
3XnzrO3fFhnc7172Uff71IDFvhVu8PvAnmoN+taysCPgLMPSVWocs78RpcxQ+L3O
G9FhoQMpLGm1Uw0H6AHhYPGwTT2BYTHt4qGsq1gpX4/Nu3B0Sotq9x7R7QNG9JV7
2D9OgwbE2A4HJMXQJvUlFhzje4cpLF05tl7OZRs8wccvxPHX0kj5JRtrrRN4brJL
tvEprS4QPO9hUKI+erlOQftXgn6Mxi8k2jmBloLxkHtxChL+v+cFsGbY1+LgPmyl
JQjXAjc5L8egumh3aR6s4TPY7RWmyCyjYhIXtAP2Bsy62W8KXupHjULas6qVQR1k
No/3fn48XGd8lkryZoyNdMP2a2fo+frxVJfopKZhZcu+YJs1DZEGBNruIwZvQOWq
Fw6diOeP
=pssy
-----END PGP SIGNATURE-----


B
B
Bengt Richter wrote on 7 Dec 2020 13:02
(name . Ricardo Wurmus)(address . rekado@elephly.net)
20201207120200.GA11867@LionPure
Hi Ricardo, et al,

On +2020-12-06 18:35:08 +0100, Ricardo Wurmus wrote:
Toggle quote (16 lines)
>
> 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
has a link
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
where you can
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
for lists that want it. Maybe by a debbugs name like
and similarly for other bug-<list name> ?

Maybe it already exists, but it's not apparently listed at
(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
R
R
Ricardo Wurmus wrote on 24 Dec 2022 23:45
[mumi] Raw mailbox download not usable with mutt
(address . 41906-done@debbugs.gnu.org)
877cygctde.fsf@elephly.net
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
Closed
F
F
Felix Lechner wrote on 8 Feb 18:25 +0100
(no subject)
(address . control@debbugs.gnu.org)
87plx66f7u.fsf@lease-up.com
unarchive 49115
reassign 49115 mumi
archive 49115

unarchive 41906
reassign 41906 mumi
archive 41906

unarchive 60410
reassign 60410 mumi
archive 60410

unarchive 63215
reassign 63215 mumi
archive 63215

unarchive 41098
reassign 41098 mumi
archive 41098

thanks
F
F
Felix Lechner wrote on 23 Feb 14:23 +0100
(address . control@debbugs.gnu.org)
875xyf1fhb.fsf@lease-up.com
unarchive 68680
reassign 68680 mumi
archive 68680

unarchive 63802
reassign 63802 mumi
archive 63802

unarchive 63215
reassign 63215 mumi
archive 63215

unarchive 61645
reassign 61645 mumi
archive 61645

unarchive 60410
reassign 60410 mumi
archive 60410

unarchive 60292
reassign 60292 mumi
archive 60292

unarchive 60292
reassign 60292 mumi
archive 60292

unarchive 58573
reassign 58573 mumi
archive 58573

unarchive 54024
reassign 54024 mumi
archive 54024

unarchive 49115
reassign 49115 mumi
archive 49115

unarchive 48160
reassign 48160 mumi
archive 48160

unarchive 47739
reassign 47739 mumi
archive 47739

unarchive 47520
reassign 47520 mumi
archive 47520

unarchive 47121
reassign 47121 mumi
archive 47121

unarchive 45015
reassign 45015 mumi
archive 45015

unarchive 43661
reassign 43661 mumi
archive 43661

unarchiv 43166
reassign 43166 mumi
archive 43166

unarchive 41906
reassign 41906 mumi
archive 41906

unarchive 41098
reassign 41098 mumi
archive 41098

unarchive 39924
reassign 39924 mumi
archive 39924

unarchive 39924
reassign 39924 mumi
archive 39924

unarchive 39924
reassign 39924 mumi
archive 39924

thanks
?