Initial stab at showing list of folders that aren't being synced

This isn't working right yet because two accounts could sync into one
destination
This commit is contained in:
John Goerzen 2008-05-20 01:13:36 -05:00
parent 3862c8e1a0
commit fa766b61bc

View File

@ -17,6 +17,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
from offlineimap import CustomConfig
from offlineimap.ui import UIBase
import os.path
def LoadRepository(name, account, reqtype):
@ -165,6 +166,17 @@ class BaseRepository(CustomConfig.ConfigHelperMixin):
# if not key in srchash:
# dest.deletefolder(key)
##### Find any folders that aren't being synced
ignoredfolders = []
for key in desthash.keys():
if not key in srchash:
ignoredfolders.append(key)
ignoredfolders.sort()
if ignoredfolders != []:
UIBase.getglobalui().warn("Found local folders that are not being synced: %s" % (", ".join(ignoredfolders)))
##### Keepalive
def startkeepalive(self):