[Mimedefang] rfc822_date test (was Re: Any way to get MD to accept a Postfix queue ID at RCPT time?)

Fred de Brouwer brouwerfdb14 at xs4all.nl
Wed Apr 29 10:53:16 EDT 2015

It might be worthwhile to check the POSIX strftime Clib-function:

As example:
$ perl -we 'use POSIX; print strftime("%a, %d %b %Y %H:%M:%S %z", localtime(time()) )."\n"'
Wed, 29 Apr 2015 16:45:31 +0200

$ date --rfc-822
Wed, 29 Apr 2015 16:45:32 +0200

I am unfamiliar with differences in platforms or impact in code when used ...

Met vriendelijke groet / Kind regards,
 Fred de Brouwer

On 29 Apr 2015, at 16:29, Dianne Skoll <dfs at roaringpenguin.com> wrote:

> On Wed, 29 Apr 2015 10:17:34 -0400
> "Bill Cole" <mdlist-20140424 at billmail.scconsult.com> wrote:
>> I am quite happy to hear that it was a summer intern who wrote that.
>> It didn't seem up to the quality I'm used to seeing in MD and I'm
>> glad it isn't a sign of encroaching senility (but I project...)
> :)
> No, I'm not senile yet.  OK, since my recent life change I've started
> crying at pictures of puppies and babies and craving chocolate... but
> I digress...
> I'll look at implementing a sane test for rfc2822_date that doesn't rely
> on the OS "date" command at all.
> Regards,
> Dianne.

More information about the MIMEDefang mailing list