X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/8af4a03c754fa1bcac24736633f1b3be8ce8888c..e0b6dd443ce1895e668313a93939f489fbd2ea05:/widgets/imap.lua diff --git a/widgets/imap.lua b/widgets/imap.lua index 605c1c4..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 -- because it's useless - mailcount = tonumber(mailcount) + _, mailcount = string.gsub(ws, "%d+", "") + _ = nil widget = imap.widget settings()