tweaks and fixes for email reading

workspace
Brendan Howell 8 years ago
parent 8f8ee7b6af
commit 9e5f3ddfe2

@ -259,6 +259,7 @@ class MailRoom(Bureau):
Polls the currently configured IMAP server and returns a dict Polls the currently configured IMAP server and returns a dict
containing unread emails. containing unread emails.
""" """
self._connect_imap()
messages = self.imapserv.sort("ARRIVAL", ["UNSEEN"]) messages = self.imapserv.sort("ARRIVAL", ["UNSEEN"])
print("%d unread messages in INBOX" % len(messages)) print("%d unread messages in INBOX" % len(messages))
resp = self.imapserv.fetch(messages, ['FLAGS', 'INTERNALDATE', resp = self.imapserv.fetch(messages, ['FLAGS', 'INTERNALDATE',

@ -5,7 +5,7 @@
<style type="text/css"> <style type="text/css">
body { body {
font-family: "CMU Serif"; font-family: "CMU Serif";
font-size: 11pt; font-size: 13pt;
line-height: 1; line-height: 1;
} }
h1 { h1 {
@ -27,7 +27,7 @@
font-family: "Fold"; font-family: "Fold";
font-weight: 400; font-weight: 400;
text-transform: uppercase; text-transform: uppercase;
font-size: 9vw; font-size: 12vw;
text-align: center; text-align: center;
margin: 0; margin: 0;
} }

Loading…
Cancel
Save