wimap

Check-in [8262cb957b]
Login

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

Overview
Comment:LG service doesn't put a Date header in their auto-messages, huh
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:8262cb957b97e61ad5b13e47c1706e99890cf5661d4667e1c0e995bbbe7b75a8
User & Date: ajv-899-334-8894@vsta.org 2017-03-16 13:13:26
Context
2018-07-18
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
2016-12-04
15:54
Start reading a folder at *newest*, not oldest check-in: b797c891d4 user: ajv-899-334-8894@vsta.org tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to get.py.

88
89
90
91
92
93
94



95
96
97
98
99
100
101

    # Time if today
    # mm/dd if this year
    # mm/yy if previous years
    def get_when(self, fields):
        srv = self.srv




        today = time.localtime()
        tm = srv.dt_parse(fields["date"])

        # This year
        if tm.tm_year == today.tm_year:
            # Today
            if (tm.tm_mon == today.tm_mon) and \







>
>
>







88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104

    # Time if today
    # mm/dd if this year
    # mm/yy if previous years
    def get_when(self, fields):
        srv = self.srv

	# Pretty hosed message!
	if "date" not in fields:
	    return "--"
        today = time.localtime()
        tm = srv.dt_parse(fields["date"])

        # This year
        if tm.tm_year == today.tm_year:
            # Today
            if (tm.tm_mon == today.tm_mon) and \