Linux maintainer tooling and workflows
 help / color / mirror / Atom feed
* [b4] make 'b4 mbox' reorder headers so piping to 'git imap-send' works
@ 2020-12-21  0:21 Philippe Blain
  2020-12-21 17:03 ` Konstantin Ryabitsev
       [not found] ` <1652CA1A4BC02C6D.17984@linux.kernel.org>
  0 siblings, 2 replies; 3+ messages in thread
From: Philippe Blain @ 2020-12-21  0:21 UTC (permalink / raw)
  To: tools; +Cc: konstantin

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-12-21 19:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-21  0:21 [b4] make 'b4 mbox' reorder headers so piping to 'git imap-send' works Philippe Blain
2020-12-21 17:03 ` Konstantin Ryabitsev
     [not found] ` <1652CA1A4BC02C6D.17984@linux.kernel.org>
2020-12-21 19:03   ` [tools] " Konstantin Ryabitsev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox