imh

Check-in [2292653bdf]
Login

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

Overview
Comment:When we have new messages, switch to our inbox
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:2292653bdf635e74bae63cbcbce11a0866cd5085dd1b878e3eea68a209c07da7
User & Date: ajv-899-334-8894@vsta.org 2016-11-17 16:52:44
Context
2016-11-19
23:08
Add a forw command, leverage comp check-in: 326f23bc93 user: ajv-899-334-8894@vsta.org tags: master, trunk
2016-11-17
16:52
When we have new messages, switch to our inbox check-in: 2292653bdf user: ajv-899-334-8894@vsta.org tags: master, trunk
2016-11-13
01:27
Decode "q code" encoded email headers check-in: bc6ff21fd1 user: ajv-899-334-8894@vsta.org tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to inc.py.

23
24
25
26
27
28
29

30

31
32
33
34
35
36
37
38
39
        if tup[0] != "OK":
            raise Exception, "Can't list messages"

        # New message numbers
        msgs = [int(s) for s in tup[1][0].split()]

        # Make the first of them our current message

        if msgs:

            self.state["curmsgs"]["inbox"] = msgs[0]
            self.changed = True

        # Return message list
        return msgs

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







>

>









23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
        if tup[0] != "OK":
            raise Exception, "Can't list messages"

        # New message numbers
        msgs = [int(s) for s in tup[1][0].split()]

        # Make the first of them our current message
        # Make sure +inbox is our current folder
        if msgs:
            self.state["curbox"] = "inbox"
            self.state["curmsgs"]["inbox"] = msgs[0]
            self.changed = True

        # Return message list
        return msgs

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