]> projects.mako.cc - muttjump/commitdiff
bugfix: better quote maildir (can contain spaces)
authorJohannes Weißl <jargon@molb.org>
Thu, 11 Nov 2010 08:02:39 +0000 (09:02 +0100)
committerJohannes Weißl <jargon@molb.org>
Thu, 11 Nov 2010 08:02:39 +0000 (09:02 +0100)
muttjump

index f3771604fdc6b213e6c4007cfce64f4573d1bb2e..32644d3b21f5e66e2a8f95a11f112277379e0cd4 100755 (executable)
--- a/muttjump
+++ b/muttjump
@@ -128,7 +128,7 @@ if [ -z "$orig_msgfile" -o ! -e "$orig_msgfile" ] ; then
 fi
 
 # get containing maildir of $orig_msgfile
-orig_maildir=$(dirname $(dirname "$orig_msgfile"))
+orig_maildir=$(dirname "$(dirname "$orig_msgfile")")
 if [ ! -d "$orig_maildir/cur" ] ; then
     die "directory $(quote "$orig_maildir") doesn't exist or is no Maildir"
 fi

Benjamin Mako Hill || Want to submit a patch?