Count id tokens instead of every single diget

This commit is contained in:
Manuel Görlich 2013-12-04 13:30:29 +01:00 committed by copycat-killer
parent 4a29739e79
commit 4c7c9454a3
1 changed files with 1 additions and 3 deletions

View File

@ -61,9 +61,7 @@ local function worker(args)
ws = f:read("*all") ws = f:read("*all")
f:close() f:close()
t, mailcount = string.gsub(ws, "%d", "") _, mailcount = string.gsub(ws, "%d+", "")
t = nil
mailcount = tonumber(mailcount)
widget = imap.widget widget = imap.widget
settings() settings()