Hide the icon when there are no new messages

Asked by palimmo on 2011-09-13

Is it possible to set the icon as hidden when there are no new messages?

Question information

Language:
English Edit question
Status:
Solved
For:
Unity Mail Edit question
Assignee:
Dmitry Shachnev Edit question
Last query:
2011-09-14
Last reply:
2011-09-14
Dmitry Shachnev (mitya57) said : #1

It will be possible in the next version (0.8.7).

To hide count with no new mail, open ~/.config/unity-mail.conf and under [General] section, paste this:
HideMessagesCount = True

If this file doesn't exist, change any option in confuguration dialog,
this will create it. Then you can change it back.

palimmo (palimmo) said : #2

I did it... but the icon is still in the panel despite there are no new messages.

Dmitry Shachnev (mitya57) said : #3

Do you use Unity Mail 0.8.7 or higher?
Did you restart it after you made changes? (The easiest way to restart it is open and close configuration dialog)

If the problem still exists for you, please paste here contents of your ~/.config/unity-mail.conf file.

Also, since many people want to use this option, I put it to "Options" tab of the configuration dialog (it will come in 0.8.8), so now it's very easy to use it.

palimmo (palimmo) said : #4

I have Unity-mail 0.8.5, installed in my Ubuntu 11.04 using the ppa.
How can I obtain the last .deb package (0.8.7)?

My ~/.config/unity-mail.conf is:

[General]
DrawAttention = True
NotificationsHaveIcons = True
HideMessagesCount = True

palimmo (palimmo) said : #5

ok!
Here I've found the 0.8.7 package.
https://launchpad.net/~mitya57/+archive/ppa/+packages

Installed and reboot the laptop.

But the icon is still there.. even if there are no new messages.

My ~/.config/unity-mail.conf is always:

[General]
DrawAttention = True
NotificationsHaveIcons = True
HideMessagesCount = True

palimmo (palimmo) said : #6

The only change is that the number of new messages (0) is disappeared... but the icon is still there.

Dmitry Shachnev (mitya57) said : #7

Changing the status.

Dmitry Shachnev (mitya57) said : #8

Oh, you meant the whole icon!
Unity doesn't allow dynamic removing of Launcher items, so it's impossible (yet?).

Sorry for misunderstanding you.

palimmo (palimmo) said : #9

ah... ok... thank you

Dmitry Shachnev (mitya57) said : #10

Oh, you meant the whole icon!
Unity doesn't allow dynamic removing of icons, so it's impossible (yet?).

Sorry for misunderstanding you.

palimmo (palimmo) said : #11

Mh... actually it is possible with device icon (such as USB-stick, external HD...)

Dmitry Shachnev (mitya57) said : #12

// The double comment above occured because of buggy reply-via-email service.

> Mh... actually it is possible with device icon (such as USB-stick, external HD...)
I mean that the list of launcher items is stored in GSettings, and Unity reads it only on (re)start. When UM *adds* an icon, it uses a DBus signal stolen from Software Center (: