Sebastian Andrzej Siewior <sebast...@breakpoint.cc> wrote:
> On 2023-03-07 08:43:38 [+0000], 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&q=20210110213922.iqTO594q5DM@dcvr

<snip>

> --- 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=&MessageIdFormat}, 
> {.p="<%z@%f>"} },
> +  { "message_id_format", DT_STR, R_NONE, {.p=&MessageIdFormat}, 
> {.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.

Reply via email to