We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7ac333c + e8bf98e commit 25a291eCopy full SHA for 25a291e
widgets/gmail_all.lua
@@ -39,12 +39,12 @@ local mail = {
39
-- {{{ Gmail widget type
40
local function worker(format, warg)
41
-- Get info from the Gmail atom feed
42
- 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))
43
44
-- Could be huge don't read it all at once, info we are after is at the top
45
local xml = f:read(2000)
46
47
- if xml ~= nil then
+ if xml == nil then
48
return mail
49
end
50
0 commit comments