Skip to contentSkip to conversation

b4 am doesn't fetch all recipient headers

DISCUSSION Mark Brown 2 participants 7 messages Jan 6, 2023

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

Hi Konstantin,

At some point recently b4 am seems to have stopped including any To/Cc headers in the mailboxes it fetches and I can't see an option to get them back. They're not needed for the am itself but I do find them useful in my workflow, what I'm doing is grabbing the mailbox with am, putting that into CI and then ideally if there's a problem I can just reply to the mail in the saved mailbox to tell the submitter. I can go and get the mail with all the recipients separately but it's an extra step.

Thanks,
Mark

#1 lore raw
Quoted 10 lines · Mark Brown

Hi Konstantin,

At some point recently b4 am seems to have stopped including any To/Cc headers in the mailboxes it fetches and I can't see an option to get them back. They're not needed for the am itself but I do find them useful in my workflow, what I'm doing is grabbing the mailbox with am, putting that into CI and then ideally if there's a problem I can just reply to the mail in the saved mailbox to tell the submitter. I can go and get the mail with all the recipients separately but it's an extra step.

This change was a side-effect of implementing how we handle trailer updates, but it's also "more correct" because there were situations where you would send info to the wrong people, e.g. when we restored the in-body "From: " committer info:

From: Sender Person <...>
Subject: [PATCH] ...

From: Author Person <...>

Commit subject

Commit message

became:

From: Author Person <...>
Subject: [PATCH] ...

Commit subject

Commit message

So, replying to this message wouldn't actually have gone to the sender, but to the commit author.

Here's one way you can get the full thread:

b4 mbox < am-ready.mbx

This will grab the entire thread that you can then reply to (plus see if anyone's already replied to it). You can even fetch that into your existing maildir:

b4 mbox -fo ~/Mail < am-ready.mbx

I know this adds an extra step, but this is also more proper, I think.

-K

author
#2 lore raw
Quoted 10 lines · Konstantin Ryabitsev
Quoted 3 lines · Mark Brown

At some point recently b4 am seems to have stopped including any To/Cc headers in the mailboxes it fetches and I can't see an option to get them back. They're not needed for the am itself but I do find them

This change was a side-effect of implementing how we handle trailer updates, but it's also "more correct" because there were situations where you would send info to the wrong people, e.g. when we restored the in-body "From: " committer info:

...

Quoted 2 lines

So, replying to this message wouldn't actually have gone to the sender, but to the commit author.

Right, that's unfortunate.

Quoted 7 lines

This will grab the entire thread that you can then reply to (plus see if anyone's already replied to it). You can even fetch that into your existing maildir:

b4 mbox -fo ~/Mail < am-ready.mbx

I know this adds an extra step, but this is also more proper, I think.

For this workflow a command that would easily let me fetch a specific message without pulling in the rest of the series would be ideal, b4 mbox doesn't seem to even have an equivalent of b4 am's message ranges.

#3 lore raw
Quoted 11 lines · Mark Brown
Quoted 7 lines

This will grab the entire thread that you can then reply to (plus see if anyone's already replied to it). You can even fetch that into your existing maildir:

b4 mbox -fo ~/Mail < am-ready.mbx

I know this adds an extra step, but this is also more proper, I think.

For this workflow a command that would easily let me fetch a specific message without pulling in the rest of the series would be ideal, b4 mbox doesn't seem to even have an equivalent of b4 am's message ranges.

What if I give you:

    b4 mbox --refetch mbox

This will refetch all the messages in the mbox with their original headers?

-K

author
#4 lore raw
Quoted 11 lines · Konstantin Ryabitsev
Quoted 3 lines · Mark Brown

For this workflow a command that would easily let me fetch a specific message without pulling in the rest of the series would be ideal, b4 mbox doesn't seem to even have an equivalent of b4 am's message ranges.

What if I give you:

    b4 mbox --refetch mbox

This will refetch all the messages in the mbox with their original headers?

Yes, that'd also work well I think.

#5 lore raw
Quoted 7 lines · Mark Brown
Quoted 5 lines

What if I give you:

    b4 mbox --refetch mbox

This will refetch all the messages in the mbox with their original headers?

Yes, that'd also work well I think.

It's in master if you want to try it out.

-K

author
#6 lore raw
Quoted 10 lines · Konstantin Ryabitsev
Quoted 7 lines · Mark Brown
Quoted 5 lines

What if I give you:

    b4 mbox --refetch mbox

This will refetch all the messages in the mbox with their original headers?

Yes, that'd also work well I think.

It's in master if you want to try it out.

Works great, thanks!