time_t t;
char p[STRING], tmp[STRING];
- t = time(NULL);
- setlocale (LC_TIME, "");
- snprintf (tmp, sizeof (tmp), _("[-- %s output follows(current time: %%c) --]\n"), NONULL(app_name));
- strftime (p, sizeof (p), tmp, localtime (&t));
- setlocale (LC_TIME, "C");
- state_attach_puts (p, s);
+ if (option (OPTCRYPTTIMESTAMP))
+ {
+ t = time(NULL);
+ setlocale (LC_TIME, "");
+ strftime (p, sizeof (p), _(" (current time: %c)"), localtime (&t));
+ setlocale (LC_TIME, "C");
+ }
+ else
+ *p = '\0';
+
+ snprintf (tmp, sizeof (tmp), _("[-- %s output follows%s --]\n"), NONULL(app_name), p);
+ state_attach_puts (tmp, s);
}
** noted in ``$$crypt_replysign'', that mutt is not able to find out
** whether an encrypted message is also signed.
*/
+ { "crypt_timestamp", DT_BOOL, R_NONE, OPTCRYPTTIMESTAMP, 1 },
+ /*
+ ** .pp
+ ** If set, mutt will include a time stamp in the lines surrounding
+ ** PGP or S/MIME output, so spoofing such lines is more difficult.
+ ** If you are using colors to mark these lines, and rely on these,
+ ** you may unset this setting.
+ */
#ifdef HAVE_PGP
{ "pgp_verify_sig", DT_SYN, R_NONE, UL "crypt_verify_sig", 0},
#endif