[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[msmtp-users] Log file and year information (patch wrong!)
Sorry, the previous patch was wrong. It should be like this one.
The reason for asking for the year information is that I am planning to
parse with perl and analyze with R the log file and the year information
could be interesting.
--
:: Igor Sosa Mayor :: joseleopoldo1792@...20... ::
:: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ ::
:: jabberid: rogorido :: ::
diff --git a/src/msmtp.c b/src/msmtp.c
index fe57010..9704084 100644
--- a/src/msmtp.c
+++ b/src/msmtp.c
@@ -2058,7 +2058,7 @@ void msmtp_log_to_file(const char *logfile, const char *loginfo)
failure_reason = xstrdup(_("cannot convert UTC time to local time"));
goto log_failure;
}
- (void)strftime(time_str, sizeof(time_str), "%b %d %H:%M:%S", tm);
+ (void)strftime(time_str, sizeof(time_str), "%y %b %d %H:%M:%S", tm);
/* write log to file */
if (strcmp(logfile, "-") == 0)