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

making the option --limit in pull usable. #165

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
4 changes: 2 additions & 2 deletions lieer/gmailieer.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,8 +604,8 @@ def full_pull (self):
self.bar_close ()

if self.local.config.remove_local_messages:
if self.limit and not self.dry_run:
raise ValueError('--limit with "remove_local_messages" will cause lots of messages to be deleted')
if self.limit and self.local.state.last_historyId != 0:
raise AttributeError('Previous synchronization state detected, remove the --limit tag.')

# removing files that have been deleted remotely
all_remote = set (message_gids)
Expand Down