Re: [PATCH] Change default message-id format.

2023-03-13 Thread Vincent Lefevre
On 2023-03-07 15:15:22 -0800, Kevin J. McCarthy wrote:
> However, I don't have the time or interest to participate in another
> message-id bike shedding discussion, and don't plan on changing the
> default format in the stable branch.

Anyway, the message-id format is configurable with $message_id_format
(which I'm using), and I don't see any problem with this.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


Re: [PATCH] Change default message-id format.

2023-03-07 Thread Will Yardley
On Tue, Mar 07, 2023 at 10:43:00PM +0100, Steffen Nurpmeso wrote:
> Sebastian Andrzej Siewior wrote in
>  <20230307_213502_4a7zc...@breakpoint.cc>:
> > The default message-id uses a timestamp and a few random bytes encoded
> > as base64 (with safe URL dictionary) as the user part. This is fine
> > already.
> > It would be beneficial for the human parser to have the timestamp
> > encoded as a date string so that the date can be easily recognised as
> > part of the message id.

> Oh how much i agree with that!  That ML-archive randomization is
> a pain in the a.se imho.
> Yet -- isn't this about the format that mutt had before a very
> long thread some years ago?

I agree about changing it back, and yes, that's my memory too, that
there was a very long and heated thread about it.

w



Re: [PATCH] Change default message-id format.

2023-03-07 Thread Eric Wong
Eric Wong  wrote:
> > -fmt = "<%z@%f>";
> > +fmt = "<%Y%02m%02d_%02H%02M%02S_%r%r@%f>";
> 
> Kinda shocked that the %02's are necessary for a user-facing
> config file, but yes, it's a much more reasonable default with
> this patch so users won't have to deal with it :>

I was so shocked by the %02's that I didn't notice the
underscores.  It's probably a minor issue, though...

I don't think the first one is necessary since it can break
existing prefix scans using `grep ^mmddHH', SQL SELECTs.

The second `_' might look better as a `.' just because that's
what users have grown accustomed to from old mutt :>



Re: [PATCH] Change default message-id format.

2023-03-07 Thread Eric Wong
Sebastian Andrzej Siewior  wrote:
> On 2023-03-07 08:43:38 [+], Eric Wong wrote:
> > Thanks Kevin.  Any chance you can restore the %Y%m%d%H%M%S prefix?
> > 
> > I brought this up here in a patch <20210110213922.iqTO594q5DM@dcvr>.
> 
> couldn't fine this.

My patch predates message_id_format, though:

https://marc.info/?i=20210110213922.iqTO594q5DM@dcvr
https://www.mail-archive.com/search?l=mid=20210110213922.iqTO594q5DM@dcvr



> --- a/init.h
> +++ b/init.h
> @@ -2187,7 +2187,7 @@ struct option_t MuttVars[] = {
>{ "msg_format",DT_SYN,  R_NONE, {.p="message_format"}, {.p=0} },
>/*
>*/
> -  { "message_id_format", DT_STR, R_NONE, {.p=}, 
> {.p="<%z@%f>"} },
> +  { "message_id_format", DT_STR, R_NONE, {.p=}, 
> {.p="<%Y%02m%02d_%02H%02M%02S_%r%r@%f>"} },

> --- a/messageid.c
> +++ b/messageid.c
> @@ -126,7 +126,7 @@ char *mutt_gen_msgid (void)
>  
>fmt = MessageIdFormat;
>if (!fmt)
> -fmt = "<%z@%f>";
> +fmt = "<%Y%02m%02d_%02H%02M%02S_%r%r@%f>";

Kinda shocked that the %02's are necessary for a user-facing
config file, but yes, it's a much more reasonable default with
this patch so users won't have to deal with it :>

Thanks.


Re: [PATCH] Change default message-id format.

2023-03-07 Thread Steffen Nurpmeso
Sebastian Andrzej Siewior wrote in
 <20230307_213502_4a7zc...@breakpoint.cc>:
 |The default message-id uses a timestamp and a few random bytes encoded
 |as base64 (with safe URL dictionary) as the user part. This is fine
 |already.
 |It would be beneficial for the human parser to have the timestamp
 |encoded as a date string so that the date can be easily recognised as
 |part of the message id. The message-id can be visible as the URL in a
 |thread overview (in a web indexer) and the text is set to the subject of
 |the email.

Oh how much i agree with that!  That ML-archive randomization is
a pain in the a.se imho.
Yet -- isn't this about the format that mutt had before a very
long thread some years ago?

--steffen
|
|Der Kragenbaer,The moon bear,
|der holt sich munter   he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)