[MacPorts] #20735: ssmtp 2.61 produces bad dates
#20735: ssmtp 2.61 produces bad dates ------------------------------------+--------------------------------------- Reporter: telemachus@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: ssmtp date | Port: ssmtp ------------------------------------+--------------------------------------- The current version of ssmtp produces dates like the following: Date: Wed, _d Aug 2009 06:32:00 -0400 The '_d' can be traced back to arpadate.c, line 82: ` const char *format = "%a, %_d %b %Y %H:%M:%S %z";` Apparently `%_d` wants to produce a date with a leading space for single digits, but the format isn't universally recognized. So what actually gets printed is '_d' for every date. (See this post: http://www.cygwin.com/ml/cygwin/2004-02/msg00031.html) MacPorts seems to get the source for ssmtp from Debian, and the current Debian stable version (2.62) has changed the formatting string to use `%d`. On OS X, I think that `%e` would work as well. Thanks in advance -- Ticket URL: <http://trac.macports.org/ticket/20735> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20735: ssmtp 2.61 produces bad dates ------------------------------------+--------------------------------------- Reporter: telemachus@… | Owner: olaf@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: ssmtp date | Port: ssmtp ------------------------------------+--------------------------------------- Changes (by jmr@…): * cc: olaf@…, telemachus@… (removed) * owner: macports-tickets@… => olaf@… * type: enhancement => defect -- Ticket URL: <http://trac.macports.org/ticket/20735#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20735: ssmtp 2.61 produces bad dates ------------------------------------+--------------------------------------- Reporter: telemachus@… | Owner: olaf@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: ssmtp date | Port: ssmtp ------------------------------------+--------------------------------------- Comment(by snc@…): Either a reinplace or a patch would suffice for this. {{{ reinplace s|const char *format = "%a, %_d %b %Y %H:%M:%S %z";|const char *format = "%a, %e %b %Y %H:%M:%S %z";| ${worksrcpath}/arpadate.c }}} {{{ --- arpadate.c.orig 2009-08-23 09:53:27.000000000 -0400 +++ arpadate.c 2009-08-23 09:53:38.000000000 -0400 @@ -79,7 +79,7 @@ time_t now; /* RFC822 format string borrowed from GNU shellutils date.c */ - const char *format = "%a, %_d %b %Y %H:%M:%S %z"; + const char *format = "%a, %e %b %Y %H:%M:%S %z"; now = time(NULL); }}} -- Ticket URL: <http://trac.macports.org/ticket/20735#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20735: ssmtp 2.61 produces bad dates ------------------------------------+--------------------------------------- Reporter: telemachus@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: ssmtp ------------------------------------+--------------------------------------- Changes (by jmr@…): * keywords: ssmtp date => * owner: olaf@… => macports-tickets@… -- Ticket URL: <https://trac.macports.org/ticket/20735#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20735: ssmtp 2.61 produces bad dates -------------------------------------+-------------------------------------- Reporter: telemachus@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Resolution: fixed | Keywords: Port: ssmtp | -------------------------------------+-------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: r73562 -- Ticket URL: <https://trac.macports.org/ticket/20735#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts