You are not logged in.
Hi,
i'm using offlineimap to get my mails.
And i am experiencing some kind of error or bug. i am not quite sure, maybe it is just a misconfiguration or i missed some options after an update.
But since a few days my google account wont sync anymore because of this:
Establishing connection to imap.gmail.com:993
ERROR: While attempting to sync account 'google'
time data 'Oct 14 00:00:00 2014 GMT' does not match format '%b %d %H:%M:%S %Y GMT'afaik i did not configure any date options in offlineimap.
might this be a system issue ?
i just post my, what i think is the relevant, config data for this bug.
$ date
Mo 4. Aug 10:38:51 CEST 2014$ls -al /etc/localtime
lrwxrwxrwx 1 root root 33 16. Feb 21:38 /etc/localtime -> /usr/share/zoneinfo/Europe/Berlin[Repository google-local]
type = Maildir
localfolders = ~/.mail/google
sep = .
nametrans = lambda folder: re.sub('spam', '[Gmail].Spam',
re.sub('drafts', '[Gmail].Drafts',
re.sub('sent', '[Gmail].Sent Mail',
re.sub('flagged', '[Gmail].Starred',
re.sub('trash', '[Gmail].Trash',
re.sub('important', '[Gmail].Important',
re.sub('archive', '[Gmail].All Mail', folder)))))))
[Repository google-remote]
type = IMAP
remotehost = imap.gmail.com
remoteuser = ziv667
ssl = yes
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
remoteport = 993
remotepasseval = keyring.get_password('gmail', 'personal')
nametrans = lambda folder: re.sub('.*Spam$', 'spam',
re.sub('.*Drafts$', 'drafts',
re.sub('.*Sent Mail$', 'sent',
re.sub('.*Starred$', 'flagged',
re.sub('.*Trash$', 'trash',
re.sub('.*Important$', 'important',
re.sub('.*All Mail$', 'archive', folder)))))))Any other Account works fine.
Thanks for your replies!
Last edited by ziv667 (2014-08-09 10:34:20)
Offline
Ok fixed it myself.
tried to check with
▶ offlineimap --info
OfflineIMAP 6.5.5
Licensed under the GNU GPL v2+ (v2 or any later version)
Remote repository 'google-remote': type 'IMAP'
Host: imap.gmail.com Port: 993 SSL: True
Establishing connection to imap.gmail.com:993
Traceback (most recent call last):
File "/usr/sbin/offlineimap", line 23, in <module>
oi.run()
File "/usr/lib/python2.7/site-packages/offlineimap/init.py", line 48, in run
self.__serverdiagnostics(options)
File "/usr/lib/python2.7/site-packages/offlineimap/init.py", line 409, in __serverdiagnostics
account.serverdiagnostics()
File "/usr/lib/python2.7/site-packages/offlineimap/accounts.py", line 177, in serverdiagnostics
self.ui.serverdiagnostics(remote_repo, 'Remote')
File "/usr/lib/python2.7/site-packages/offlineimap/ui/UIBase.py", line 403, in serverdiagnostics
conn = repository.imapserver.acquireconnection()
File "/usr/lib/python2.7/site-packages/offlineimap/imapserver.py", line 409, in acquireconnection
fingerprint=fingerprint
File "/usr/lib/python2.7/site-packages/offlineimap/imaplibutil.py", line 148, in __init__
super(WrappedIMAP4_SSL, self).__init__(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 2021, in __init__
IMAP4.__init__(self, host, port, debug, debug_file, identifier, timeout, debug_buf_lvl)
File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 333, in __init__
self.open(host, port)
File "/usr/lib/python2.7/site-packages/offlineimap/imaplibutil.py", line 156, in open
super(WrappedIMAP4_SSL, self).open(host, port)
File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 2034, in open
self.ssl_wrap_socket()
File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 487, in ssl_wrap_socket
cert_err = self.cert_verify_cb(self.sock.getpeercert(), self.host)
File "/usr/lib/python2.7/site-packages/offlineimap/imapserver.py", line 587, in __verifycert
if time.time() >= cert_time_to_seconds(notafter):
File "/usr/lib/python2.7/ssl.py", line 404, in cert_time_to_seconds
return time.mktime(time.strptime(cert_time, "%b %d %H:%M:%S %Y GMT"))
File "/usr/lib/python2.7/_strptime.py", line 467, in _strptime_time
return _strptime(data_string, format)[0]
File "/usr/lib/python2.7/_strptime.py", line 325, in _strptime
(data_string, format))
ValueError: time data 'Oct 28 00:00:00 2014 GMT' does not match format '%b %d %H:%M:%S %Y GMT'i uninstalled and build it with abs. now it works again. must have been some kind of python conflict.
Offline