Protocols.SMTP.ClientHelper()->rfc2822date_time()

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Protocols.SMTP.ClientHelper()->rfc2822date_time()

Chris Angelico
What exactly is this function, and how does it differ from
Calendar.Time.format_smtp()? The docs for the latter state that it's
"as seen in Date: headers in mails", which seems to be the same
purpose. They appear to give the same output. Should the ClientHelper
function have a docs reference to format_smtp? Is there a reason to
use ClientHelper instead?

ChrisA
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Protocols.SMTP.ClientHelper()->rfc2822date_time()

Tobias S. Josefowitz
On Wed, Nov 16, 2016 at 2:05 PM, Chris Angelico <[hidden email]> wrote:
> What exactly is this function, and how does it differ from
> Calendar.Time.format_smtp()? The docs for the latter state that it's
> "as seen in Date: headers in mails", which seems to be the same
> purpose. They appear to give the same output. Should the ClientHelper
> function have a docs reference to format_smtp? Is there a reason to
> use ClientHelper instead?

It might be this is simply an attempt to not make the Calendar module
a dependency (since it is quite heavy). Or maybe format_smtp() was
just not available when grubba added the function.
Loading...