wimap

Check-in [b0dcd65343]
Login

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

Overview
Comment:Firewall against spinning
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:b0dcd65343f96cb0020bd9eb2fbac57ab458eed22c524184c89c622e37827ec7
User & Date: ajv-899-334-8894@vsta.org 2016-11-28 14:41:16
Context
2016-11-28
14:44
Deal with quoting -> blockquote Factor all HTML-ification into its own module check-in: 0d75320618 user: ajv-899-334-8894@vsta.org tags: master, trunk
14:41
Firewall against spinning check-in: b0dcd65343 user: ajv-899-334-8894@vsta.org tags: master, trunk
14:07
Deal with imap server idle/timeout and reconnect. check-in: 3a6568daae user: ajv-899-334-8894@vsta.org tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to imap.py.

193
194
195
196
197
198
199



200
201
202
203
204
205
206
    # Shim out to no-op test for health
    def noop(self):
        srv = self.srv
	try:
	    tup = srv.noop()
	except:
	    tup = ("failed", "timeout, probably")



        if tup[0] != "OK":
            return False
        return True

    # Shim to log off/disconnect
    def logout(self):
        srv = self.srv







>
>
>







193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
    # Shim out to no-op test for health
    def noop(self):
        srv = self.srv
	try:
	    tup = srv.noop()
	except:
	    tup = ("failed", "timeout, probably")
	    # In case it's a net fail, keep from spinning at
	    #  full speed
	    time.sleep(1)
        if tup[0] != "OK":
            return False
        return True

    # Shim to log off/disconnect
    def logout(self):
        srv = self.srv