Merge pull request #15 from MaThGo/fix-imap-unread-count

Fix imap unread count
This commit is contained in:
Luke Bonham 2013-12-05 01:15:20 -08:00
commit b8e6f4c4b6
1 changed files with 2 additions and 3 deletions

View File

@ -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()