tools.linux.kernel.org archive mirror
 help / color / mirror / Atom feed
* b4 message ID shortening
@ 2020-03-23 12:54 Mark Brown
  2020-03-23 16:38 ` Konstantin Ryabitsev
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Brown @ 2020-03-23 12:54 UTC (permalink / raw)
  To: Konstantin Ryabitsev; +Cc: tools

[-- Attachment #1: Type: text/plain, Size: 896 bytes --]

When generating filenames to save messages b4 am looks like it truncates
the message ID to generate the default filename (or possibly uses a
portion of the date now I think about it, I didn't read the code).  For
example

   https://lore.kernel.org/r/20200320232515.GA24800@embeddedor.com

results in a mailbox

   20200320_gustavo_embeddedor_com.mbx

which is all well and good except if you also try to save:

   https://lore.kernel.org/r/20200320232556.GA24989@embeddedor.com

it generates the same filename and silently overwrites the first
mailbox.  Using b4 mbox avoids this as it generates files using the full
message ID such as

   20200320232515.GA24800@embeddedor.com.t.mbx-thread

which avoids collisions.

FWIW my workflow is currently to save a bunch of mailboxes into a
directory then throw them at a script to do some testing & apply them if
that works.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 499 bytes --]

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

end of thread, other threads:[~2020-03-23 18:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-23 12:54 b4 message ID shortening Mark Brown
2020-03-23 16:38 ` Konstantin Ryabitsev
2020-03-23 17:05   ` Mark Brown
2020-03-23 18:04     ` Konstantin Ryabitsev
2020-03-23 18:50       ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).