Removing and adding Unity Mail from the launcher resolves the issue of the number not appearing, but messages are still counted twice.
Interestingly, when I woke up the PC from suspend, messages were only being counted once. On restarting Unity Mail, it was back to counting everything twice.
Here's the output from the script:
=========== update() called ===========
unity-mail: Connection #0 established
Connection 0 unread messages:
[22432, 22601, 22606, 22607, 22615]
Processing message 22432
requested msg_indicator with title humour
Processing message 22601
requested msg_indicator with title FLE teacher needed for private student in Saint-Cloud
Processing message 22606
requested msg_indicator with title [enseignants_eco] Pindyk/Rubinfeld
Processing message 22607
requested msg_indicator with title [enseignants_eco] Pindyk/Rubinfeld
Processing message 22615
requested msg_indicator with title Rencontrez votre conseiller SFR dans votre FNAC favorite
unity-mail: Connection #1 established
Connection 1 unread messages:
[22432, 22601, 22606, 22607, 22615]
Processing message 22432
requested msg_indicator with title humour
Processing message 22601
requested msg_indicator with title FLE teacher needed for private student in Saint-Cloud
Processing message 22606
requested msg_indicator with title [enseignants_eco] Pindyk/Rubinfeld
Processing message 22607
requested msg_indicator with title [enseignants_eco] Pindyk/Rubinfeld
Processing message 22615
requested msg_indicator with title Rencontrez votre conseiller SFR dans votre FNAC favorite
=========== update() called ===========
Connection 0 unread messages:
[22432, 22601, 22606, 22607, 22615]
Processing message 22432
Processing message 22601
Processing message 22606
Processing message 22607
Processing message 22615
Connection 1 unread messages:
[22432, 22601, 22606, 22607, 22615]
Processing message 22432
Processing message 22601
Processing message 22606
Processing message 22607
Processing message 22615
Removing and adding Unity Mail from the launcher resolves the issue of the number not appearing, but messages are still counted twice.
Interestingly, when I woke up the PC from suspend, messages were only being counted once. On restarting Unity Mail, it was back to counting everything twice.
Here's the output from the script:
=========== update() called ===========
unity-mail: Connection #0 established
Connection 0 unread messages:
[22432, 22601, 22606, 22607, 22615]
Processing message 22432
requested msg_indicator with title humour
Processing message 22601
requested msg_indicator with title FLE teacher needed for private student in Saint-Cloud
Processing message 22606
requested msg_indicator with title [enseignants_eco] Pindyk/Rubinfeld
Processing message 22607
requested msg_indicator with title [enseignants_eco] Pindyk/Rubinfeld
Processing message 22615
requested msg_indicator with title Rencontrez votre conseiller SFR dans votre FNAC favorite
unity-mail: Connection #1 established
Connection 1 unread messages:
[22432, 22601, 22606, 22607, 22615]
Processing message 22432
requested msg_indicator with title humour
Processing message 22601
requested msg_indicator with title FLE teacher needed for private student in Saint-Cloud
Processing message 22606
requested msg_indicator with title [enseignants_eco] Pindyk/Rubinfeld
Processing message 22607
requested msg_indicator with title [enseignants_eco] Pindyk/Rubinfeld
Processing message 22615
requested msg_indicator with title Rencontrez votre conseiller SFR dans votre FNAC favorite
=========== update() called ===========
Connection 0 unread messages:
[22432, 22601, 22606, 22607, 22615]
Processing message 22432
Processing message 22601
Processing message 22606
Processing message 22607
Processing message 22615
Connection 1 unread messages:
[22432, 22601, 22606, 22607, 22615]
Processing message 22432
Processing message 22601
Processing message 22606
Processing message 22607
Processing message 22615