X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/912bd26ede8901c98fd8d7a35f8493ee448109ad..b8adf932213faa797fcd69df28bb8bf9451cf5df:/widgets/imap.lua diff --git a/widgets/imap.lua b/widgets/imap.lua index 350e1ad..de2f7b4 100644 --- a/widgets/imap.lua +++ b/widgets/imap.lua @@ -41,8 +41,7 @@ local function worker(args) helpers.set_map(mail, 0) - if not is_plain - then + if not is_plain then password = helpers.read_pipe(password):gsub("\n", "") end @@ -65,10 +64,8 @@ local function worker(args) _, mailcount = string.gsub(f, "%d+", "") _ = nil - if mailcount ~= helpers.get_map(mail) then - widget = imap.widget - settings() - end + widget = imap.widget + settings() if mailcount >= 1 and mailcount > helpers.get_map(mail) then