bug#41906: [mumi] Raw mailbox download not usable with mutt

2022-12-24 Thread Ricardo Wurmus
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#41906: [mumi] Raw mailbox download not usable with mutt

2020-12-07 Thread Bengt Richter
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 -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- ?

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





bug#41906: [mumi] Raw mailbox download not usable with mutt

2020-12-06 Thread Lars-Dominik Braun
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.mbox2020-12-07 08:25:16.280832753 +0100
+++ 45062-0.mbox2020-12-07 08:25:21.416946627 +0100
@@ -1,5 +1,5 @@
-From debbugs-submit-boun...@debbugs.gnu.org Sun Dec 06 00:02:51 2020
 Received: (at submit) by debbugs.gnu.org; 6 Dec 2020 05:02:51 +
+From debbugs-submit-boun...@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 )
@@ -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
Description: PGP signature


bug#41906: [mumi] Raw mailbox download not usable with mutt

2020-12-06 Thread Ricardo Wurmus


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





bug#41906: [mumi] Raw mailbox download not usable with mutt

2020-06-17 Thread Lars-Dominik Braun
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
Description: PGP signature