Allow to change default filename date format #102
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This package is helpful not only if you want to open the mail preview immediately, but also to use a default mail driver locally (without preview links popup), keep the files for a day and open when needed. However, for this purpose, the default
u
(microseconds) date format is not very convenient (also, you can't sort by microseconds).When the files are kept for longer time, it's easier to sort them by date format like
Y-m-d_His
. This change would allow users to choose the format they want to.E.g.

vs

Also, it's backward compatible, even if users do not update their config file as I used
?? 'u'
- the old 'microseconds' format implementation.Besides that, maybe a better default option would be to use
U
format, as the timestamp is at least sortable: