Count id tokens instead of every single diget

This commit is contained in:
Manuel Görlich 2013-12-04 13:30:29 +01:00
parent c8204dc90e
commit 9c916d5b05
1 changed files with 1 additions and 3 deletions

View File

@ -61,9 +61,7 @@ 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+", "")
widget = imap.widget
settings()