[MacPorts] #20735: ssmtp 2.61 produces bad dates

MacPorts noreply at macports.org
Wed Aug 19 08:19:31 PDT 2009


#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


More information about the macports-tickets mailing list