mirror of
https://github.com/pulb/mailnag.git
synced 2026-05-07 01:57:02 +02:00
Also fix assignments of that commit...
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user