a red dot should be on the rambox icon whenever there's an unread email.
no red dot.
Rambox: v0.5.17
OS: macOS High Sierra 10.13.4
Arch: x64
What is "new gmail interface"? Could you provide screenshot?
it looks like thise: 
bump
Here is how I fixed it:
function checkUnread() {
var e = document.getElementsByClassName("bsU");
var t = 0;
for( i = 0; i < e.length; i++ ) t += parseInt(e[i].innerHTML.trim());
updateBadge(t);
}
function updateBadge(e) {
if (e && e >= 1) {
rambox.setUnreadCount(e);
} else {
rambox.clearUnreadCount();
}
}
setInterval(checkUnread, 3000);
One downside to the above hack is that it displays the total counter of all unread emails in all folders/labels in Gmail.
@ashvagan You can change it to show unread mail count only (not sum of all folders) by changing the for loop to this;
for( i = 0; i < e.length; i++ ) t += parseInt(e[i].innerHTML.trim());
if (e.length > 0) {
t += parseInt(e[0].innerHTML.trim());
}
for the element selection portion of the script, i made this change:
- var e = document.getElementsByClassName("bsU");
+ var e = document.querySelectorAll(".ain .bsU");
...which only selects the unread count from the "inbox" section. Seems to work for me.
I also didn't have to create the gmail tab as a "_Custom Service", the normal Gmail selection has a spot to enter custom code.
Thank you @ashvagan for the workaround! 馃嵒
Why has this been closed? The code supplied is a workaround, not a fix. Rambox should support this natively.
Because the fix was already merged and will be shiped in next release??
@Ash258 when is the next released planned? Gmail is forcing everyone to move to the new design it would be nice to have rambox ready for it.
Soon. After @saenzramiro finish CI/CD problems / tweaks and relese it.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
for the element selection portion of the script, i made this change:
...which only selects the unread count from the "inbox" section. Seems to work for me.
I also didn't have to create the gmail tab as a "_Custom Service", the normal Gmail selection has a spot to enter custom code.
Thank you @ashvagan for the workaround! 馃嵒