[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[msmtp-users] Log file and year information



Hi,

is there a reason for not putting the year in the logfile? 

I am not a very expert programmer, but I think this small change should
do it, shouldn't?

Thanks for providing msmtp!

Best

Igor

-- 
:: Igor Sosa Mayor     :: joseleopoldo1792@...20... ::
:: GnuPG: 0x1C1E2890   :: http://www.gnupg.org/      ::
:: jabberid: rogorido  ::                            ::
diff --git a/src/msmtp.c b/src/msmtp.c
index 9704084..fe57010 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), "%y %b %d %H:%M:%S", tm);
+    (void)strftime(time_str, sizeof(time_str), "%b %d %H:%M:%S", tm);
 
     /* write log to file */
     if (strcmp(logfile, "-") == 0)