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