(self, uidvalidity, origpastuids, newpastuids,
                      folder='inbox')
Write the uids in a file for the folder.
Write the uids in a file for the folder.
Write the uids in a file for the folder .
def pastuid_write(self, uidvalidity, origpastuids, newpastuids,
                      folder='inbox'):
        """Write the uids in a file for the folder."""
        if self.trackfile is None:
            self.trackfile = ISBG.set_filename(self.imapsets, "track")

        wfile = open(self.trackfile + folder, "w+")
        try:
            os.chmod(self.trackfile + folder, 0o600)
        except Exception:  # pylint: disable=broad-except
            pass
        self.logger.debug(__(('Writing pastuids for folder {}: {} ' +
                              'origpastuids, newpastuids: {}').format(
            folder, len(origpastuids), newpastuids)))
        struct = {
            'uidvalidity': uidvalidity,
            'uids': list(set(newpastuids + origpastuids))
        }
        json.dump(struct, wfile)
        wfile.close()
def pastuid_write ( self , uidvalidity , origpastuids , newpastuids , folder = 'inbox' ) : if self . trackfile is None : self . trackfile = ISBG . set_filename ( self . imapsets , "track" ) wfile = open ( self . trackfile + folder , "w+" ) try : os . chmod ( self . trackfile + folder , 0o600 ) except Exception : # pylint: disable=broad-except pass self . logger . debug ( __ ( ( 'Writing pastuids for folder {}: {} ' + 'origpastuids, newpastuids: {}' ) . format ( folder , len ( origpastuids ) , newpastuids ) ) ) struct = { 'uidvalidity' : uidvalidity , 'uids' : list ( set ( newpastuids + origpastuids ) ) } json . dump ( struct , wfile ) wfile . close ( )