Linux maintainer tooling and workflows
 help / color / mirror / Atom feed
From: Philippe Blain <levraiphilippeblain@gmail.com>
To: tools@linux.kernel.org
Cc: konstantin@linuxfoundation.org
Subject: [b4] make 'b4 mbox' reorder headers so piping to 'git imap-send' works
Date: Sun, 20 Dec 2020 19:21:43 -0500	[thread overview]
Message-ID: <7e6329fa-e5fa-c5af-002d-a8fbb60e0724@gmail.com> (raw)

Hi,

I'm using 'b4 mbox -o- <url> | git imap-send' to quickly import
threads to my email account when I see an interesting thread that
I'd like to reply to (I contribute to Git but I'm not subscribed to the
Git mailing list).

This only works if the emails in the threads have the 'From', 'Date'
and 'Subject' headers in exactly that order, because that order is
hard-coded in 'git imap-send' [1]. I wrote a small script [2] that
just reads the headers and reorders them accordingly but I'd like to
just use 'b4 mbox' instead as it has more features. However I discovered
that such reordering is not done by b4. For example, this fails as 'git imap-send'
reports 'nothing to send':

b4 mbox -o- https://lore.kernel.org/git/op.0vvmwohypvqxoc@damia/T/#u | git imap-send

It would be nice if b4 would take care of the reordering.

Cheers,

Philippe.

[1] https://git-scm.com/docs/git-imap-send#_description
[2] https://gist.github.com/phil-blain/d350e91959efa6e7afce60e74bf7e4a8

             reply	other threads:[~2020-12-21  0:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-21  0:21 Philippe Blain [this message]
2020-12-21 17:03 ` [b4] make 'b4 mbox' reorder headers so piping to 'git imap-send' works Konstantin Ryabitsev
     [not found] ` <1652CA1A4BC02C6D.17984@linux.kernel.org>
2020-12-21 19:03   ` [tools] " Konstantin Ryabitsev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7e6329fa-e5fa-c5af-002d-a8fbb60e0724@gmail.com \
    --to=levraiphilippeblain@gmail.com \
    --cc=konstantin@linuxfoundation.org \
    --cc=tools@linux.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox