Skip to content

[patch] mailnag-messagingmenu-plugin does not show account in the indicator-messages list #4

Description

@N0rbert

Dear Patrick Ulbrich!

I have just updated my Ubuntu 12.04 LTS to 16.04 LTS.
In 12.04 I used Popper as e-mail checker. It is fully not supported on 16.04 LTS because of new notification API.
Your mailnag checker was recommended as a good (and working) alternative.

So I installed mailnag and mailnag-messagingmenu-plugin from your PPA on 16.04. They look great, thank you!

I configured two e-mail accounts.
But mailnag-messagingmenu-plugin does not show account in the indicator-messages list. It is known issue with mailnag.
I remember popper configuration window (see this article).
It has many customizations for indicator.

I added account_name to the indicator-messages. For now it shows e-mail in the form:
"%s: %s - %s" % (m.account_name, sender, m.subject).

Patch is below:

--- /usr/lib/python2.7/dist-packages/Mailnag/plugins/messagingmenuplugin.py	2017-04-18 12:05:50.846449978 +0300
+++ /tmp/messagingmenuplugin.py	2017-04-18 13:29:20.027346327 +0300
@@ -194,7 +194,7 @@
 				name, addr = m.sender
 				sender = name if len(name) > 0 else addr
 				icon = Gio.ThemedIcon.new(MAIL_ICON)
-				label = "%s: %s  -  %s" % (m.account_name, sender, m.subject)
+				label = "%s  -  %s" % (sender, m.subject)
 				if m.datetime > 0:
 					time = m.datetime * 1000L * 1000L
 					self._app.append_source_with_time(m.id, icon, label, time)

But I have problem with messages list width. It is very narrow.
How I can make it wider? Popper's list was wider.
Which documentation do you recommend?

With best regards,
Norbert.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions