]> 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 183fef8d48b27c34ee4514cfb0b53ed67370c1a7..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'
 
@@ -398,7 +398,7 @@ part.
 
 ### Troubleshooting message-mode gpg support
 
-- If you have trouble with expired subkeys, you may have encounted
+- If you have trouble with expired subkeys, you may have encountered
   emacs bug #7931.  This is fixed in git commit 301ea744c on
   2011-02-02.  Note that if you have the Debian package easypg
   installed, it will shadow the fixed version of easypg included with