[Users] FYI: Bad date formats and sorting...

Paul claws at thewildbeast.co.uk
Thu Jun 2 08:28:52 CEST 2016


At this URL, and also in the tools/ directory of the release
tarballs, and in git, you can find a script to use with Actions:


* fix-date.sh

	Add a 'Date:' header to the selected email(s) when such
 header is missing. The correct date is guessed from other headers
 that contain timestamp information (preferred: Fetchinfo header if
 found) or from the file or system date as a fallback. The order or
 preference for the date valuereplacement can be changed by editing
 the script. This script can be used to fix messages that show non
 RFC-compliant Date headers as well.
	X-Original-Date is always added too if not already existing
 (if so, it's left untouched), to keep track of the original value if
 any. An existing Date: header is not overwritten unless you use the
 --force switch.
	Non RFC-compliant dates can be overwritten using the --rfc
 switch. Use --strict to use strict RFC matching patterns for date
 values in other headers.
	fix_date.sh %F


More information about the Users mailing list