wimap

Check-in [a368729d2a]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Deal with transient imap access interruption
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:a368729d2a2dd6913f72f12373948fc532ecb938fc6fd583762f11b930ad25bd
User & Date: vsta.org 2018-07-18 02:47:59
Context
2018-07-18
02:48
More hassles with surprising code points Leaf check-in: 28a2a1682e user: vsta.org tags: master, trunk
02:47
Deal with transient imap access interruption check-in: a368729d2a user: vsta.org tags: master, trunk
2017-03-16
13:13
LG service doesn't put a Date header in their auto-messages, huh check-in: 8262cb957b user: ajv-899-334-8894@vsta.org tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to get.py.

140
141
142
143
144
145
146




147
148
149
150
151
152
153
            except:
                return False,None
        else:
            startidx = None

        # Ask our library to pull them together
        srv = self.get_server()




        tup = srv.messages(fn, startidx, NMSG)
        if tup is None:
            return False,None
        nmsg,msgs = tup

	# Note actual starting index if they didn't specify
	#  one and we're going with the newest







>
>
>
>







140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
            except:
                return False,None
        else:
            startidx = None

        # Ask our library to pull them together
        srv = self.get_server()
	if srv is None:
	    # No imap?
            self.send_error(503)
            return True,None
        tup = srv.messages(fn, startidx, NMSG)
        if tup is None:
            return False,None
        nmsg,msgs = tup

	# Note actual starting index if they didn't specify
	#  one and we're going with the newest