Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble with offlineimap #1

Closed
mavam opened this issue May 27, 2012 · 2 comments
Closed

Trouble with offlineimap #1

mavam opened this issue May 27, 2012 · 2 comments

Comments

@mavam
Copy link

@mavam mavam commented May 27, 2012

I cannot get gmail-imap-label to work with offlineimap, where this error crops up:

Errno 1] _ssl.c:504: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

My .offlineimaprc simple lists remotehost = localhost and I run the proxy on port 993.

Any ideas what's going on?

@zmughal
Copy link
Owner

@zmughal zmughal commented May 27, 2012

Well, based on the error message, it seems that it is trying to use SSL locally. I did not add support for SSL on the local side because I thought that having to add a certificate would be too much work for configuration.

I tried setting up offlineimap 6.3.4 with the following configuration:

# Sample minimal config file.  Copy this to ~/.offlineimaprc and edit to
# suit to get started fast.

[general]
accounts = Test

[Account Test]
localrepository = Local
remoterepository = Remote

[Repository Local]
type = Maildir
localfolders = ~/Test

[Repository Remote]
type = IMAP
remotehost = localhost
remoteport = 993
remoteuser = emailaddr

and I was able to get X-Label to show up properly in mutt after making a few changes to my code (just pushed these).

The only issue that you may see with this setup is that offlineimap does not expect headers to change and this can get out of sync with what GMail sees because it will not refetch the headers AFAIK. This is also one issue that mutt has when using header/body caching for IMAP, but my fix is to remove the cache every so often.

@mavam
Copy link
Author

@mavam mavam commented May 27, 2012

Disabling SSL did the trick, thanks. Since offlineimap and the proxy always run on the same machine, it is probably not necessary anyway.

The header cache tip seems useful.

@mavam mavam closed this May 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.