mirror of https://github.com/lcpz/lain.git
Merge pull request #15 from MaThGo/fix-imap-unread-count
Fix imap unread count
This commit is contained in:
commit
b8e6f4c4b6
|
@ -61,9 +61,8 @@ 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+", "")
|
||||
_ = nil
|
||||
|
||||
widget = imap.widget
|
||||
settings()
|
||||
|
|
Loading…
Reference in New Issue