Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(20)  |  Call(20)  |  Derive(0)  |  Import(0)

src/o/f/offlineimap-6.5.5-rc2/offlineimap/folder/IMAP.py   offlineimap(Download)
        :returns: raises :exc:`OfflineImapError` severity FOLDER on error"""
        try:
            imapobj.select(self.getfullname(), force = force)
        except imapobj.readonly:
            imapobj.select(self.getfullname(), readonly = True, force = force)
            try:
                # Select folder and get number of messages
                restype, imapdata = imapobj.select(self.getfullname(), True,
                                                   True)
                self.imapserver.releaseconnection(imapobj)
        imapobj = self.imapserver.acquireconnection()
        try:
            res_type, imapdata = imapobj.select(self.getfullname(), True, True)
            if imapdata == [None] or imapdata[0] == '0':
                # Empty folder, no need to populate message list
            while fails_left:
                try:
                    imapobj.select(self.getfullname(), readonly = True)
                    res_type, data = imapobj.uid('fetch', str(uid),
                                                 '(BODY.PEEK[])')

src/o/f/offlineimap-HEAD/offlineimap/folder/IMAP.py   offlineimap(Download)
        selected."""
        try:
            imapobj.select(self.getfullname())
        except imapobj.readonly:
            imapobj.select(self.getfullname(), readonly = 1)
        try:
            # Primes untagged_responses
            imapobj.select(self.getfullname(), readonly = 1, force = 1)
            try:
                # Some mail servers do not return an EXISTS response if
        try:
            # Primes untagged_responses
            imapobj.select(self.getfullname(), readonly = 1, force = 1)
 
            maxage = self.config.getdefaultint("Account " + self.accountname, "maxage", -1)
    def getmessage(self, uid):
        ui = UIBase.getglobalui()
        imapobj = self.imapserver.acquireconnection()
        try:
            imapobj.select(self.getfullname(), readonly = 1)