I think this is actually a bug in web2py because the SMTP standard says the
day of the week, if included, should be one of the following:
day = "Mon" / "Tue" / "Wed" / "Thu"
/ "Fri" / "Sat" / "Sun"
And I don't see "Di" there.
This happens because class Mail in web2py does this:
payload['Date'] = time.strftime("%a, %d %b %Y %H:%M:%S +0000",
time.gmtime())
The problem is that a lot of those formatters use the current python locale
to choose what goes there, which is not a problem if your server is using
English which it isn't.
You can change the locale using the "locale" module, but changing locale is
not thread safe and I'm not sure what can of worms that would open.
The other problem is that strftime is so useless it can't even receive what
locale you want to use. This is all easily fixable if you change that line
in tools.py to:
payload['Date'] = email.utils.formatdate()
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.