X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/b8e6f4c4b629250dbf074fda3e4dc116c5db3d5b..39db2acd6928c85cf2d23240651af3be5a77b17c:/widgets/imap.lua

diff --git a/widgets/imap.lua b/widgets/imap.lua
index 39518bd..febff23 100644
--- a/widgets/imap.lua
+++ b/widgets/imap.lua
@@ -67,7 +67,7 @@ local function worker(args)
         widget = imap.widget
         settings()
 
-        if mailcount > helpers.get_map(mail) and mailcount >= 1
+        if mailcount >= 1 and mailcount > helpers.get_map(mail)
         then
             if mailcount == 1 then
                 nt = mail .. " has one new message"