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

inconsistent documentation about maxsyncaccounts #520

Closed
listx opened this issue Jan 23, 2018 · 5 comments
Closed

inconsistent documentation about maxsyncaccounts #520

listx opened this issue Jan 23, 2018 · 5 comments
Assignees

Comments

@listx
Copy link

listx commented Jan 23, 2018

In offlineimap.conf, we are told to "set the maxsyncaccounts option accordingly"

# If you want more than one account concurrently synced in this mode, don't
# forget to set the maxsyncaccounts option accordingly.
, but in docs/offlineimap.txt we are told that the maxsyncaccounts option is deprecated because of race conditions
WARNING: enabling the 'maxsyncaccounts' and 'maxconnections' options is
deprecated since it's known to have race conditions.
.

So, is it supported or not?

@nicolas33
Copy link
Member

nicolas33 commented Jan 24, 2018

Oh, good catch. maxsyncaccounts is supported in the case you want one instance of offlineimap syncing more than one account. Later, support for running more than one instance was added in offlineimap with a lock file at the account level. So, it's better to run as many offlineimap instances as there are accounts.

However, maxsyncaccounts is not always optionnal. It's required for autorefresh to work. If you have systemd on your system it's better to replace autorefresh with the systemd timeout service.

More on this here:

https://github.com/OfflineIMAP/offlineimap/tree/master/contrib/systemd
http://www.offlineimap.org/configuration/2016/01/29/why-i-m-not-using-maxconnctions.html

I'll fix this.

@nicolas33 nicolas33 changed the title inconsistent documentation inconsistent documentation about maxsyncaccounts Jan 24, 2018
nicolas33 added a commit to nicolas33/offlineimap that referenced this issue Jan 26, 2018
Github-ref: OfflineIMAP#520
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
@nicolas33
Copy link
Member

Please, let me know if the above patch looks OK to you.

nicolas33 added a commit to nicolas33/offlineimap that referenced this issue Jan 30, 2018
Github-ref: OfflineIMAP#520
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
@nicolas33
Copy link
Member

Here we go. I think this version is clear enough for all the cases.

@listx
Copy link
Author

listx commented Jan 31, 2018

Thanks, LGTM.

nicolas33 added a commit that referenced this issue Jan 31, 2018
Github-ref: #520
Reviewed-by: Linus Arver <linusa@google.com>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
@nicolas33
Copy link
Member

Applied. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants