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