[patch] mailnag-messagingmenu-plugin does not show account in the indicator-messages list
Opened this issue · 2 comments
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.
Hi and thanks for your bugreport. Unfortunately I don't think it's possible to make the list view wider. The messaging menu API is very limited.
Also many thanks for you patch. Though please make your label modification optional and add a setting in the config dialoag that is turned of by default. I'll accept the patch then (preferably via pull request 😁 ).
Dear Patrick!
Thank you for reply.
I'm not a python expert. I tried to get Popper's functionality with simple solution. I am afraid to break something in your program.
If you'll have time, please add checkbox for showing m.account_name
(or to wishlist).