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")
|
||||
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