imh

Check-in [d77c22265d]
Login

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

Overview
Comment:tauthon defend against non-ASCII encoding
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:d77c22265da6e7cf64beb56dcb73cab0daaae863470a4619a5c1f91c099dc557
User & Date: vandys 2018-07-10 00:31:28
Context
2018-07-10
00:31
Dogfood tauthon Leaf check-in: 1b7ebbdd62 user: vandys tags: master, trunk
00:31
tauthon defend against non-ASCII encoding check-in: d77c22265d user: vandys tags: master, trunk
2016-12-05
22:40
Accomodate "pick -subj FOO" without blowing up on trying to parse -subj as message range. check-in: 3a255d5281 user: ajv-899-334-8894@vsta.org tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to scan.py.

1
2
3
4
5
6
7

8
9
10
11
12
13
14
..
94
95
96
97
98
99
100

101
102
103
104
105
#!/usr/bin/python
# scan.py
#       List messages in a folder
#
import imh, sys, time
from email.utils import parseaddr
from fnmatch import fnmatch


class Scan(imh.IMH_mixin):

    # Decode args and get desired message list
    def which_msgs(self):

        # First a folder to scan, go to it
................................................................................

            # Base case, blank to/from
            if whostr is None:
                whostr = ""

            print "%4d%s%5s%s%-18s%s" % \
                (m, curstr, tmstr, readstr,

                 whostr[:17], subject[:45])

if __name__ == "__main__":
    i = Scan()
    i.main()
|






>







 







>
|




1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
..
95
96
97
98
99
100
101
102
103
104
105
106
107
#!/usr/local/bin/tauthon
# scan.py
#       List messages in a folder
#
import imh, sys, time
from email.utils import parseaddr
from fnmatch import fnmatch
from chore.utils import uncharenc

class Scan(imh.IMH_mixin):

    # Decode args and get desired message list
    def which_msgs(self):

        # First a folder to scan, go to it
................................................................................

            # Base case, blank to/from
            if whostr is None:
                whostr = ""

            print "%4d%s%5s%s%-18s%s" % \
                (m, curstr, tmstr, readstr,
                 uncharenc(whostr[:17]),
		 uncharenc(subject[:45]))

if __name__ == "__main__":
    i = Scan()
    i.main()