X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/2c6a5794b20e757292825450557750df595d1868..232f1aa2512cc7d82ddad6b03dcac8769c085a83:/widgets/imap.lua diff --git a/widgets/imap.lua b/widgets/imap.lua index b3f281d..39518bd 100644 --- a/widgets/imap.lua +++ b/widgets/imap.lua @@ -61,9 +61,8 @@ local function worker(args) ws = f:read("*all") f:close() - t, mailcount = string.gsub(ws, "%d", "") - t = nil - mailcount = tonumber(mailcount) + _, mailcount = string.gsub(ws, "%d+", "") + _ = nil widget = imap.widget settings()