X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/9c916d5b05f729a3c71d74393d5e4ad8bddd8314..6f0c5a59f79fdb67941cee1461642d204d45c0a5:/widgets/imap.lua?ds=inline diff --git a/widgets/imap.lua b/widgets/imap.lua index 87a9e61..febff23 100644 --- a/widgets/imap.lua +++ b/widgets/imap.lua @@ -62,11 +62,12 @@ local function worker(args) f:close() _, mailcount = string.gsub(ws, "%d+", "") + _ = nil 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"