X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/63440b43013df7406796375cba6b88214e5e84f9..d49431160a573985bf33998b5201877aa288b24e:/widgets/maildir.lua?ds=sidebyside diff --git a/widgets/maildir.lua b/widgets/maildir.lua index 2476601..e963fc6 100644 --- a/widgets/maildir.lua +++ b/widgets/maildir.lua @@ -39,10 +39,10 @@ local function worker(args) maildir.widget = wibox.widget.textbox('') function update() - if ext_mail_cmd ~= nil - then + if ext_mail_cmd then awful.util.spawn(ext_mail_cmd) end + -- Find pathes to mailboxes. local p = io.popen("find " .. mailpath .. " -mindepth 1 -maxdepth 2 -type d" .. @@ -74,6 +74,7 @@ local function worker(args) p:close() newmail = "no mail" + -- Count the total number of mails irrespective of where it was found total = 0