X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/98977a1888c57a00dbefcbf83c4e598daeab33aa..64540340dbe9071bc716c73ca4c90df14fdd6302:/widgets/imap.lua?ds=inline 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