[[!img notmuch-logo.png alt="Notmuch logo" class="left"]]
#Tips and Tricks for using notmuch with Emacs
+[[!toc levels=2]]
+
The main Notmuch message reading client is **notmuch.el**, which is an
[emacs](http://www.gnu.org/software/emacs/) major mode, and is
included in the notmuch package.
When composing new messages, you will be entered in emacs's
`message-mode`, which is a powerful mode for composing and sending
-messages. When in message move, you can type `C-c ?` for help.
+messages. When in message mode, you can type `C-c ?` for help.
If you would like to use address autocompletion when composing
messages, see [address completion](#address_completion).
And for those who prefer working from command line, the following
script opens new emacs window with empty message and attaches files
mentioned as script arguments. (Note: The script expects that you have
-`(server-start)` in your .emacs)
+`(server-start)` in your `.emacs` file.)
#!/bin/sh
attach_cmds=""
while [ "$1" ]; do
- attach_cmds="$attach_cmds (mml-attach-file \"$1\")"
+ fullpath=$(readlink --canonicalize $1)
+ attach_cmds="$attach_cmds (mml-attach-file \"$fullpath\")"
shift
done
emacsclient -a '' -c -e "(progn (compose-mail) $attach_cmds)"
Packard wrote, which he calls `view-html`:
#!/bin/sh
- dir=3D`mktemp -d`
+ dir=`mktemp -d`
trap "rm -r $dir" 0
cat "$@" > "$dir"/msg
if munpack -C "$dir" -t < "$dir"/msg 2>&1 | grep 'Did not find'; then
candidates based on a search string. There are currently two
available:
- * The python tool `notmuch\_address.py` (`git clone
+ * The python tool `notmuch_address.py` (`git clone
http://jkr.acm.jhu.edu/git/notmuch_addresses.git`) (slower, but
no compilation required so good for testing the setup)
of the mail text body and will be converted into a pgp signature
when sending (so one can just manually delete that line if signing
is not required).
+
+Alternatively, you may prefer to use `mml-secure-message-sign-pgpmime` instead
+of `mml-secure-sign-pgpmime` to sign the whole message instead of just one
+part.