Merge branch 'master' of ssh://github.com/jdkaplan/dotfiles
This commit is contained in:
commit
a9681d8308
1 changed files with 2 additions and 2 deletions
|
|
@ -117,11 +117,11 @@ def mail_update(_):
|
||||||
'mit': '#000099',
|
'mit': '#000099',
|
||||||
}
|
}
|
||||||
for account, color in sorted(account_colors.items()):
|
for account, color in sorted(account_colors.items()):
|
||||||
|
mail_path = os.path.expanduser('~/.mail/{}/Inbox/new'.format(account))
|
||||||
try:
|
try:
|
||||||
mail_path = os.path.expanduser('~/.mail/{}/Inbox/new'.format(account))
|
message_count = len(os.listdir(mail_path))
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
continue
|
continue
|
||||||
message_count = len(os.listdir(mail_path))
|
|
||||||
colors = {}
|
colors = {}
|
||||||
if message_count:
|
if message_count:
|
||||||
colors['bg'] = color
|
colors['bg'] = color
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue