Excellent work, MaxM. I have applied a slightly modified version of this for gnubiff 2.2.17. The mail popup now does seem to come up with my new emails instead of being empty or not showing up at all. I'm running on Ubuntu 16.04 with libpanel-applet0 version 1:3.18.3-0ubuntu0.1