wimap

Check-in [28a2a1682e]
Login

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

Overview
Comment:More hassles with surprising code points
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | master | trunk
Files: files | file ages | folders
SHA3-256:28a2a1682e736d5639a1527b760091834e1e1bfd186dc23ca740b1c7510523ab
User & Date: vsta.org 2018-07-18 02:48:21
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
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to imap.py.

424
425
426
427
428
429
430



431
432
433
434
435
436
437
	#  them, violating your privacy and burning data.
	t = _html_sanitize(t)

	# They could embed HTML into the text stream,
	#  naughty.
	t = cgi.escape(t)




        # Message header fields
        tup = self.srv.fetch(msgidx,
         '(BODY[HEADER.FIELDS (FROM TO DATE STATUS SUBJECT)])')
        if tup[0] != "OK":
            sys.stderr.write("%s msg %d failed: %s\n" %
                (self.user, msgidx, tup[1]))
            return None







>
>
>







424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
	#  them, violating your privacy and burning data.
	t = _html_sanitize(t)

	# They could embed HTML into the text stream,
	#  naughty.
	t = cgi.escape(t)

	# Filter code sequences
	t = chore.utils.uncharenc(t)

        # Message header fields
        tup = self.srv.fetch(msgidx,
         '(BODY[HEADER.FIELDS (FROM TO DATE STATUS SUBJECT)])')
        if tup[0] != "OK":
            sys.stderr.write("%s msg %d failed: %s\n" %
                (self.user, msgidx, tup[1]))
            return None