]> git.cworth.org Git - notmuch-wiki/blobdiff - emacstips.mdwn
Add quotes in notmuch-attach script to handle correctly filenames with spaces
[notmuch-wiki] / emacstips.mdwn
index f393a1fb7589dcda150d2fbd7bddefc628ebb69b..070edba3b653a318e2a515d5fcdf44bd1cf92c3e 100644 (file)
@@ -87,7 +87,7 @@ mentioned as script arguments. (Note: The script expects that you have
         #!/bin/sh
         attach_cmds=""
         while [ "$1" ]; do
-            fullpath=$(readlink --canonicalize $1)
+            fullpath=$(readlink --canonicalize "$1")
             attach_cmds="$attach_cmds (mml-attach-file \"$fullpath\")"
             shift
         done
@@ -195,7 +195,7 @@ And version for notmuch 0.12 (not released yet)
             (interactive)
             (notmuch-show-tag-message
               (if (member "deleted" (notmuch-show-get-tags))
-                  "+deleted" "-deleted"))))
+                  "-deleted" "+deleted"))))
 
 ## Restore reply-to-all key binding to 'r'