Merge pull request #413 from seregaxvm/master

fix imap notifications
This commit is contained in:
Luca CPZ 2018-11-28 15:05:26 +00:00 committed by GitHub
commit 018fb197df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,6 @@ local function factory(args)
for s, d in f:gmatch("(%w+)%s+(%d+)") do imap_now[s] = tonumber(d) end
mailcount = imap_now["UNSEEN"] -- backwards compatibility
helpers.set_map(mail, mailcount)
widget = imap.widget
settings()
@ -80,6 +79,7 @@ local function factory(args)
text = string.format("%s has <b>%d</b> new message%s", mail, mailcount, mailcount == 1 and "" or "s")
}
end
helpers.set_map(mail, mailcount)
end)
end