aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2012-08-19 00:48:24 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2012-08-19 00:48:24 +0200
commitda37c0917a6fd14ea177b363f7a000b6fc3e879f (patch)
tree82bfb332d0028edce8ddf9b225875fd684e57719
parenteba6eb05737aefd75f45444b85809ff7a26db2ab (diff)
downloadvicious-legacy-da37c0917a6fd14ea177b363f7a000b6fc3e879f.tar.xz
mdir: add support for maildir whitespaces
This feature was sent by pofman@free.fr.
-rw-r--r--widgets/mdir.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/mdir.lua b/widgets/mdir.lua
index 32dd3b3..d7c6f3d 100644
--- a/widgets/mdir.lua
+++ b/widgets/mdir.lua
@@ -24,12 +24,12 @@ local function worker(format, warg)
for i=1, #warg do
-- Recursively find new messages
- local f = io.popen("find "..warg[i].." -type f -wholename '*/new/*'")
+ local f = io.popen("find '"..warg[i].."' -type f -wholename '*/new/*'")
for line in f:lines() do count.new = count.new + 1 end
f:close()
-- Recursively find "old" messages lacking the Seen flag
- local f = io.popen("find "..warg[i].." -type f -regex '.*/cur/.*2,[^S]*$'")
+ local f = io.popen("find '"..warg[i].."' -type f -regex '.*/cur/.*2,[^S]*$'")
for line in f:lines() do count.cur = count.cur + 1 end
f:close()
end