mirror of
https://github.com/pulb/mailnag.git
synced 2026-05-07 14:37:06 +02:00
fixed libnotifyplugin
This commit is contained in:
@@ -200,7 +200,7 @@ class LibNotifyPlugin(Plugin):
|
||||
ubound = len(mails) if len(mails) <= self.MAIL_LIST_LIMIT else self.MAIL_LIST_LIMIT
|
||||
|
||||
for i in range(ubound):
|
||||
body += self._get_sender(mails[i].sender) + ":\n<i>" + mails[i].subject + "</i>\n\n"
|
||||
body += self._get_sender(mails[i]) + ":\n<i>" + mails[i].subject + "</i>\n\n"
|
||||
|
||||
if len(mails) > self.MAIL_LIST_LIMIT:
|
||||
body += "<i>" + _("(and {0} more)").format(str(len(mails) - self.MAIL_LIST_LIMIT)) + "</i>"
|
||||
@@ -220,7 +220,7 @@ class LibNotifyPlugin(Plugin):
|
||||
mails = sort_mails(mails, sort_desc = False)
|
||||
|
||||
for mail in mails:
|
||||
n = self._get_notification(self._get_sender(mail.sender), mail.subject, "mail-unread")
|
||||
n = self._get_notification(self._get_sender(mail), mail.subject, "mail-unread")
|
||||
notification_id = str(id(n))
|
||||
# n.add_action("mark-as-read", _("Mark as read"), self._notification_action_handler, (mail, notification_id), None)
|
||||
n.show()
|
||||
|
||||
Reference in New Issue
Block a user