'Returns True if the Maildir has changed.
Checks uids, flags and mtimes'

def quickchanged(self, statusfolder):

    if (self._utime_from_header is True):
        raise Exception("GmailMaildir    does    not    support    quick    mode    when    'utime_from_header'    is    enabled.")
    self.cachemessagelist()
    if (sorted(self.getmessageuidlist()) != sorted(statusfolder.getmessageuidlist())):
        return True
    for (uid, message) in self.getmessagelist().items():
        if (message['flags'] != statusfolder.getmessageflags(uid)):
            return True
    for (uid, message) in self.getmessagelist().items():
        if (message['mtime'] > statusfolder.getmessagemtime(uid)):
            return True
    return False
