accounts.py: minor improvements
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
657f258196
commit
801dda521e
@ -566,16 +566,16 @@ def syncfolder(account, remotefolder, quick):
|
||||
ui.syncingmessages(remoterepos, remotefolder, localrepos, localfolder)
|
||||
remotefolder.syncmessagesto(localfolder, statusfolder)
|
||||
else:
|
||||
ui.debug('imap', "Not syncing to read-only repository '%s'" \
|
||||
% localrepos.getname())
|
||||
ui.debug('imap', "Not syncing to read-only repository '%s'"%
|
||||
localrepos.getname())
|
||||
|
||||
# Synchronize local changes
|
||||
# Synchronize local changes.
|
||||
if not remoterepos.getconfboolean('readonly', False):
|
||||
ui.syncingmessages(localrepos, localfolder, remoterepos, remotefolder)
|
||||
localfolder.syncmessagesto(remotefolder, statusfolder)
|
||||
else:
|
||||
ui.debug('', "Not syncing to read-only repository '%s'" \
|
||||
% remoterepos.getname())
|
||||
ui.debug('', "Not syncing to read-only repository '%s'"%
|
||||
remoterepos.getname())
|
||||
|
||||
statusfolder.save()
|
||||
localrepos.restore_atime()
|
||||
|
Loading…
Reference in New Issue
Block a user