mirror of https://github.com/lcpz/lain.git
Count id tokens instead of every single diget
This commit is contained in:
parent
c8204dc90e
commit
9c916d5b05
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue