imh

Check-in [5b2bc8a217]
Login

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

Overview
Comment:maplib2 doesn't like utf hostnames
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:5b2bc8a217d28c9c9f1b945187503f81f0fce8f06d011eb25993bf846a909bda
User & Date: ajv-899-334-8894@vsta.org 2016-11-26 22:57:26
Context
2016-11-26
22:57
Duh. check-in: cd527df803 user: ajv-899-334-8894@vsta.org tags: master, trunk
22:57
maplib2 doesn't like utf hostnames check-in: 5b2bc8a217 user: ajv-899-334-8894@vsta.org tags: master, trunk
2016-11-22
22:19
Fail back to "now" on un-parseable header date/time check-in: b658d08d61 user: ajv-899-334-8894@vsta.org tags: master, trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to imh.py.

   522    522           else:
   523    523               self.state = st
   524    524               self.cfg = cfg = st["config"]
   525    525           self.changed = False
   526    526   
   527    527           # Connect to our imap server
   528    528           if self.need_server():
   529         -            srv = self.server = imaplib.IMAP4_SSL(cfg["server"])
          529  +            srv = self.server = imaplib.IMAP4_SSL(str(cfg["server"]))
   530    530               srv.login(cfg["user"], cfg["password"])
   531    531           else:
   532    532               self.server = None
   533    533   
   534    534           # Parse command line
   535    535           self.flags = set()
   536    536           self.opts = {}