From 657b470d74d859ac35976bc0717723275e906eff Mon Sep 17 00:00:00 2001 From: David Favro Date: Thu, 15 Mar 2007 05:39:15 +0100 Subject: [PATCH] UID validity diagnostics improvement * Reduced the number of parameters passed to ui.validityproblem() because they were all just method-calls to the folder object, which is already passed as the first parameter (reduction of unnecessary complexity). --- offlineimap/accounts.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/offlineimap/accounts.py b/offlineimap/accounts.py index 5478fe7..b0f51dc 100644 --- a/offlineimap/accounts.py +++ b/offlineimap/accounts.py @@ -1,6 +1,8 @@ # Copyright (C) 2003 John Goerzen # # +# Portions Copyright (C) 2007 David Favro +# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or @@ -189,13 +191,11 @@ def syncfolder(accountname, remoterepos, remotefolder, localrepos, # empty. So, in that case, just save it off. if len(localfolder.getmessagelist()) or len(statusfolder.getmessagelist()): if not localfolder.isuidvalidityok(): - ui.validityproblem(localfolder, localfolder.getsaveduidvalidity(), - localfolder.getuidvalidity()) + ui.validityproblem(localfolder) localrepos.restore_atime() return if not remotefolder.isuidvalidityok(): - ui.validityproblem(remotefolder, remotefolder.getsaveduidvalidity(), - remotefolder.getuidvalidity()) + ui.validityproblem(remotefolder) localrepos.restore_atime() return else: -- 2.39.2