(self, uidvalidity, folder='inbox')
return pastuids
Read the uids stored in a file for  a folder.

        pastuids_read keeps track of which uids we have already seen, so
        that we don't analyze them multiple times. We store its
        contents between sessions by saving into a file as Python
        code (makes loading it here real easy since we just source
        the file)
Read the uids stored in a file for  a folder.
Read the uids stored in a file for a folder .
def pastuid_read(self, uidvalidity, folder='inbox'):
        """Read the uids stored in a file for  a folder.

        pastuids_read keeps track of which uids we have already seen, so
        that we don't analyze them multiple times. We store its
        contents between sessions by saving into a file as Python
        code (makes loading it here real easy since we just source
        the file)
        """
        if self.trackfile is None:
            self.trackfile = ISBG.set_filename(self.imapsets, "track")
        pastuids = []
        try:
            with open(self.trackfile + folder, 'r') as rfile:
                struct = json.load(rfile)
                if struct['uidvalidity'] == uidvalidity:
                    pastuids = struct['uids']
        except Exception:  # pylint: disable=broad-except
            pass
        return pastuids
def pastuid_read ( self , uidvalidity , folder = 'inbox' ) : if self . trackfile is None : self . trackfile = ISBG . set_filename ( self . imapsets , "track" ) pastuids = [ ] try : with open ( self . trackfile + folder , 'r' ) as rfile : struct = json . load ( rfile ) if struct [ 'uidvalidity' ] == uidvalidity : pastuids = struct [ 'uids' ] except Exception : # pylint: disable=broad-except pass return pastuids