summaryrefslogtreecommitdiff
path: root/addons/web/doc/module/static/src/css/web_example.css.1.diff
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2012-07-02 17:41:06 +0200
committerOlivier Dony <odo@openerp.com>2012-07-02 17:41:06 +0200
commit0cf4baa071270f7f4caf11f1d086b32f48bae049 (patch)
tree63219a7c68411c17bf06a370ce53d7966e890c15 /addons/web/doc/module/static/src/css/web_example.css.1.diff
parent1fef29cb802a350efa8e16833966d795d8e3014a (diff)
[FIX] mail: more reliable parsing of Date header to avoid rejecting emails
dateutil.parser.parse() was failing to parse the date on some seemingly non-standard Date headers including trailing extra TZ info, such as: "Thu, 28 Jun 2012 18:09:47 +0200 (GMT+02:00)" RFC2822 seems to only mention the +XXXX offset format, but apparently other formats are employed in the wild, such as this one coming from the Zimbra webclient. The fuzzy matching copes with that, and an extra try/except block was added for good measure, with a fallback on the current datetime, should the parsing still fail. bzr revid: odo@openerp.com-20120702154106-mwdrd9bv9xvbde0s
Diffstat (limited to 'addons/web/doc/module/static/src/css/web_example.css.1.diff')
0 files changed, 0 insertions, 0 deletions