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

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


http://www.claws-mail.org/tools.php

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:

-------8<--------8<--------8<--------8<--------

* fix-date.sh

 WHAT IT DOES
	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.
	
  HOW TO USE IT
	fix_date.sh %F

------->8-------->8-------->8-------->8--------



More information about the Users mailing list