Also fix assignments of that commit...

This commit is contained in:
Patrick Ulbrich
2019-10-28 19:31:15 +01:00
parent 4c18970e43
commit 85855a35af
2 changed files with 3 additions and 3 deletions

View File

@@ -89,7 +89,7 @@ class MailCollector:
# sort mails
if sort:
mail_list = mail_list.sort(key = lambda m: m.datetime, reverse = True)
mail_list.sort(key = lambda m: m.datetime, reverse = True)
return mail_list
@@ -229,7 +229,7 @@ class MailSyncer:
for acc_id in self._mails_by_account:
for mail_id in self._mails_by_account[acc_id]:
self._mail_list.append(self._mails_by_account[acc_id][mail_id])
self._mail_list = self._mail_list.sort(key = lambda m: m.datetime, reverse = True)
self._mail_list.sort(key = lambda m: m.datetime, reverse = True)
return self._mail_list

View File

@@ -259,7 +259,7 @@ class LibNotifyPlugin(Plugin):
def _notify_single(self, mails):
# In single notification mode new mails are
# added to the *bottom* of the notification list.
mails = mails.sort(key = lambda m: m.datetime, reverse = False)
mails.sort(key = lambda m: m.datetime, reverse = False)
for mail in mails:
n = self._get_notification(self._get_sender(mail), mail.subject, "mail-unread")