Conversation

Dear Interwebs. Say I have a patch on disk that I downloaded using "b4 am <messageid>". Say I have a message that I want to send as a reply. Is there a way to send a reply using the message ID/recipients/subject from the patch? I was hoping git-send-email or b4 had something clever but I can't see it if so.

1
0
0

@ross isn't what --in-reply-to from git-send-email is for? Have never used it but maybe that's what you're after?

1
0
0

@0leil That's *just* the message-id. I want it to populate the recipients and subject too.

2
0
0

@ross haha, misunderstood the use of '/' in your post. @monsieuricon wrote b4 so maybe he has some ideas? Hope he doesn't mind being randomly summoned :)

1
0
0
@0leil @ross Try `b4 mbox --refetch that.patch`
1
0
0
@0leil @ross Then you can open it with mutt/pine/etc and reply to the message.
1
0
0

@monsieuricon @0leil my goal is to script the sending so no interaction needed.

1
0
0
@ross @0leil Ok, is it like a "thank you, this patch has been applied" kind of thing, or something more involved?
1
0
0

@monsieuricon @0leil more โ€œsorry but it blew up like thisโ€. The reverse of โ€œb4 tyโ€ :)

1
0
0
@ross @0leil haha. Well, I don't have an immediate solution for you, but if you look in ~/.local/share/b4, you will notice that all series you retrieved with `b4 am` have a corresponding json file with all the info you'd need to send a reply message.
2
0
0

@ross If you get something working here, I'd be interested as well.

1
0
0

@trini so my overall goal is a script for โ€œhere is a patchwork series id (or message Id) and some recipes. Bitbake master, apply the patch, bitbake again, buildhistory diff. Mail a reply on success or failure.

1
0
0

@ross Yeah, I could see uses for that here. I assume in your case you're not building the whole world just initial patch-unit testing? Firing off ID + building sandbox + running pytest would catch a good number of things here.

1
0
0

@ross When you have something tinkering-worthy I'd be happy to lend a hand, if you like.

0
0
0

@monsieuricon Feature request: way to specify the thankyou template per *call* of b4 ty. I want to generate the thankyou template with more information and then post it. Basically abusing ty as a "this passed some tests" mail notification.

1
0
0
@ross ok, but please send as RFE request to tools@linux.kernel.org, otherwise I will totally forget.
1
0
0

@monsieuricon Will do. Work around is to set GIT_CONFIG_* in the environment. Feels like generalising ty to a 'mail' command would be a good thing to do.

0
0
0