%C current message number
%d date and time of the message in the format specified by
``date_format'' converted to sender's time zone
+%D date and time of the message in the format specified by
+ ``date_format'' converted to the local time zone
%f entire From: line (address + real name)
%F author name, or recipient name if the message is from you
%i message-id of the current message
* %B = the list to which the letter was sent
* %c = size of message in bytes
* %C = current message number
- * %d = date and time of message (using strftime)
+ * %d = date and time of message using $date_format and sender's timezone
+ * %D = date and time of message using $date_format and local timezone
* %f = entire from line
* %F = like %n, unless from self
* %i = message-id
break;
case 'd':
+ case 'D':
case '{':
case '[':
case '(':
p = dest;
- cp = (op == 'd') ? (NONULL (DateFmt)) : src;
+ cp = (op == 'd' || op == 'D') ? (NONULL (DateFmt)) : src;
if (*cp == '!')
{
do_locales = 0;
do_locales = 1;
len = destlen - 1;
- while (len > 0 && ((op == 'd' && *cp) ||
+ while (len > 0 && (((op == 'd' || op == 'D') && *cp) ||
(op == '{' && *cp != '}') ||
(op == '[' && *cp != ']') ||
(op == '(' && *cp != ')') ||
if (do_locales && Locale)
setlocale (LC_TIME, Locale);
- if (op == '[')
+ if (op == '[' || op == 'D')
tm = localtime (&hdr->date_sent);
else if (op == '(')
tm = localtime (&hdr->received);