mailnag icon indicating copy to clipboard operation
mailnag copied to clipboard

Show labels for different accounts in notification

Open stefansgitrepo opened this issue 9 years ago • 11 comments

I have five mail accounts in Mailnag, and it would be great to pass the account name (or a custom label that could be set) to the notification daemon so I could see at a glance which account the incoming mail is destined for.

(Sorry if that is already implemented, I couldn't find the feature)

stefansgitrepo avatar Oct 21 '14 09:10 stefansgitrepo

No that's not implemented (yet). Though I don't know if it is feasible at all without cluttering the notification too much. Which desktop do you use btw?

pulb avatar Oct 22 '14 18:10 pulb

I use Gnome Shell. How about having a maximum label size (like 8 characters), and then just put the label in square brackets right in front of the sender's name, like "[Work] My Boss: ...". I don't think that would clutter it up too much, and it would be a really helpful feature for me.

stefansgitrepo avatar Oct 26 '14 15:10 stefansgitrepo

Since the notification system will most likely change in GNOME 3.16 I don't want to change anything UI related right now. Account information support would also introduce DBus API changes, so mailnag-gnome-shell <= 3.14 would require Mailnag 1.0, wheras mailnag-gnome-shell > 3.14 would require Mailnag > 1.0. So changing the API would increase the risk that Mailnag will no longer work for users who install the extension from extensions.gnome.org.

I like the idea of an (optional) account label. I just think it's best to postpone it for some time.

pulb avatar Oct 27 '14 21:10 pulb

Would returning 1 extra field ('account') in GetMails method actually break any of the extensions? This would be enough addition for most cases in my opinion.

hyOzd avatar Dec 31 '15 13:12 hyOzd

You're probably right. I'll look into it as soon as I find time.

pulb avatar Dec 31 '15 13:12 pulb

The new field is called "account_name". Extensions can make use of it now.

pulb avatar Jan 02 '16 18:01 pulb

mailnag-gnome-shell will make use of it as proposed here.

pulb avatar Jan 02 '16 19:01 pulb

That's exactly how I plan to use it as well : )

hyOzd avatar Jan 02 '16 19:01 hyOzd

:+1: :)

pulb avatar Jan 02 '16 19:01 pulb

Any chance that the unity plugin also get this feature?

baizon avatar Apr 27 '16 05:04 baizon

@baizon: Unity's MessagingMenu API is very limited. I don't think it's possible.

pulb avatar Apr 28 '16 16:04 pulb