X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/f7aa28919588d307083b4b5b1c010f26cbc63cde..1d7fdb618e96644f2c2ebe217a4e0a2c79d7ca93:/widgets/imap.lua?ds=inline 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()