X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/1973b16fdc6a371e6dadcf9b8f25196202013145..d3cf8f992b0a987122155e72f15ee286ad8f7965:/widgets/imap.lua diff --git a/widgets/imap.lua b/widgets/imap.lua index 1ebbb76..a17b02f 100644 --- a/widgets/imap.lua +++ b/widgets/imap.lua @@ -42,7 +42,7 @@ local function worker(args) if not is_plain then local f = io.popen(password) - password = f:read("*a"):gsub("\n", "") + password = f:read("*all"):gsub("\n", "") f:close() end @@ -58,7 +58,7 @@ local function worker(args) head_command, server, port, mail, password, request) async.request(curl, function(f) - ws = f:read("*a") + ws = f:read("*all") f:close() _, mailcount = string.gsub(ws, "%d+", "") @@ -76,7 +76,7 @@ local function worker(args) end naughty.notify({ preset = mail_notification_preset, - text = nt, + text = nt }) end