diff --git a/widgets/gmail_all.lua b/widgets/gmail_all.lua index 4c1a0c2..95d8bc8 100644 --- a/widgets/gmail_all.lua +++ b/widgets/gmail_all.lua @@ -39,12 +39,12 @@ local mail = { -- {{{ Gmail widget type local function worker(format, warg) -- Get info from the Gmail atom feed - local f = io.popen("curl --connect-timeout 1 -m 3 -fsn " .. helpers.shellquote(feed[1])) + local f = io.popen("curl --connect-timeout 1 -m 3 -fsn " .. helpers.shellquote(feed)) -- Could be huge don't read it all at once, info we are after is at the top local xml = f:read(2000) - if xml ~= nil then + if xml == nil then return mail end