Error: "time data 'Oct 15 23:59:59 2014 GMT' does not match format '%b %d %H:%M:%S %Y GMT'"
Johannes Kastl
mail at ojkastl.de
Sun Feb 23 07:35:06 GMT 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi everyone,
I have configured offlineimap on my new linux laptop, and used the
same setting I had on OSX. I only modified the paths.
However, I get an error on linux, that I have not seen on OSX:
> ERROR: While attempting to sync account 'XYZ' time data 'Oct 15
> 23:59:59 2014 GMT' does not match format '%b %d %H:%M:%S %Y GMT'
> *** Finished account 'XYZ' in 0:00 ERROR: Exceptions occurred
> during the run! ERROR: While attempting to sync account 'XYZ' time
> data 'Oct 15 23:59:59 2014 GMT' does not match format '%b %d
> %H:%M:%S %Y GMT'
>
> Traceback: File
> "/home/xyz/bin/offlineimap/offlineimap/accounts.py", line 241, in
> syncrunner self.sync() File
> "/home/xyz/bin/offlineimap/offlineimap/accounts.py", line 304, in
> sync localrepos.getfolders() File
> "/home/xyz/bin/offlineimap/offlineimap/repository/IMAP.py", line
> 313, in getfolders imapobj = self.imapserver.acquireconnection()
> File "/home/xyz/bin/offlineimap/offlineimap/imapserver.py", line
> 406, in acquireconnection fingerprint=fingerprint File
> "/home/xyz/bin/offlineimap/offlineimap/imaplibutil.py", line 145,
> in __init__ super(WrappedIMAP4_SSL, self).__init__(*args,
> **kwargs) File "/home/xyz/bin/offlineimap/offlineimap/imaplib2.py",
> line 2021, in __init__ IMAP4.__init__(self, host, port, debug,
> debug_file, identifier, timeout, debug_buf_lvl) File
> "/home/xyz/bin/offlineimap/offlineimap/imaplib2.py", line 333, in
> __init__ self.open(host, port) File
> "/home/xyz/bin/offlineimap/offlineimap/imaplibutil.py", line 148,
> in open super(WrappedIMAP4_SSL, self).open(host, port) File
> "/home/xyz/bin/offlineimap/offlineimap/imaplib2.py", line 2034, in
> open self.ssl_wrap_socket() File
> "/home/xyz/bin/offlineimap/offlineimap/imaplib2.py", line 487, in
> ssl_wrap_socket cert_err =
> self.cert_verify_cb(self.sock.getpeercert(), self.host) File
> "/home/xyz/bin/offlineimap/offlineimap/imapserver.py", line 580, in
> verifycert if time.time() >= cert_time_to_seconds(notafter): File
> "/usr/lib64/python2.7/ssl.py", line 399, in cert_time_to_seconds
> return time.mktime(time.strptime(cert_time, "%b %d %H:%M:%S %Y
> GMT")) File "/usr/lib64/python2.7/_strptime.py", line 467, in
> _strptime_time return _strptime(data_string, format)[0] File
> "/usr/lib64/python2.7/_strptime.py", line 325, in _strptime
> (data_string, format))
>
The account in question is a imap-to-imap sync. Syncing between these
accounts on OSX works.
Using a second account, that saves imap to a local maildir, works like
a charm on the linux machine and on osx.
Any hints? Bug? Misconfiguration? SSL-related?
Regards,
Johannes
- --
Programming is like sex: if you make a mistake, you have to support it
for the rest of your life.
(unknown)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/
iEYEARECAAYFAlMJpKoACgkQzi3gQ/xETbJklACfbnwqtk/XoZOe+sUaGZ+E8Ggl
hoIAn1vGAaowOQZi6ZQozJa6WTNeDXZD
=WUN2
-----END PGP SIGNATURE-----
More information about the OfflineIMAP-project
mailing list