summaryrefslogtreecommitdiffstats
path: root/messageid.c
AgeCommit message (Collapse)Author
2021-01-18Fix warning; minor code cleanup.Kevin McCarthy
random_dev isn't used anymore (after removing the %R expando). I originally had local variables in some of the case statements, and forgot to pull out the curly brackets when I moved those to the top of the function.
2021-01-18Remove %R format for $message_id_formatRemco Rijnders
2021-01-18Provide %x format for $message_id_formatRemco Rijnders
The expando format %x generates one pseudorandom byte and puts the output in a lowercase hex formatted string of length two. # Conflicts: # init.h # messageid.c
2021-01-17Change $message_id_format year expando from %y to %Y.Kevin McCarthy
So that it matches the strftime() 4-digit year. Thanks to Vincent Lefèvre for noting the discrepancy.
2021-01-17Add $message_id_format for customizing generated Message-IDs.Kevin McCarthy
Provide expandos for the new (2.0+) format and the old format. Add %r and %R to generate fixed size 4-char Base64 blocks from the pseudo-random generator, or from /dev/urandom. The format string allows external filters, for complete control.
2021-01-17Move mutt_gen_msgid() over to messageid.c.Kevin McCarthy