X-Git-Url: https://git.madduck.net/code/mailplate.git/blobdiff_plain/ea3a02414fcddf4e318db364923ef55c96cc62f2..f7d2365ee0ab439217083dd613daa4757a4e3d6e:/mailplate.xml diff --git a/mailplate.xml b/mailplate.xml index 243302e..b76723c 100644 --- a/mailplate.xml +++ b/mailplate.xml @@ -66,6 +66,54 @@ and docbook-xsl in your Build-Depends control field. reformat mail drafts according to templates + + &dhpackage; + + + + + + + + + + + + + + + + + + + + + + + + + + + template-name + message-file + + + &dhpackage; + + + + + + + + + + + + + template-name + < message-data + &dhpackage; @@ -88,8 +136,8 @@ and docbook-xsl in your Build-Depends control field. - - + + @@ -108,7 +156,7 @@ and docbook-xsl in your Build-Depends control field. - message file + message-file &dhpackage; @@ -138,7 +186,7 @@ and docbook-xsl in your Build-Depends control field. - < message data + < message data &dhpackage; @@ -194,14 +242,14 @@ and docbook-xsl in your Build-Depends control field. As a filter, it applies a template to data from stdin and writes the result to stdout. - Given a file, it modifies the file, unless it cannot - write to the file, in which case it writes to stdout. - - When is passed, the script spawns sensible-editor on the result. It may thus be used as the editor for your mail user agent. + Given a file, it modifies the file, unless it cannot + write to the file, in which case it writes to stdout. + + @@ -290,8 +338,56 @@ and docbook-xsl in your Build-Depends control field. + + MUTT INTEGRATION + + I use mailplate as my $editor for mutt, with the following setting + in my ~/.mutt/muttrc: + + + + mailplate currently has a bit of a limitation, or at least I have + not figured out a way how to work around it sensibly yet. If you re-edit + a message from mutt’s compose menu, it causes mailplate to reprocess the + message, which you may not want. + + Similarly, if you find yourself editing messages from the index or + pager, you probably also don’t want mailplate to get in the way. For + these cases, I currently use the following two keybindings: + + + + + + + VIM INTEGRATION + + I am often editing a message with vim and find that I need to use + a different identity. For this purpose, I have the following keybindings + in my ~/.vimrc: + + + + Now when I reply to a message, mailplate automatically choses the + right template, and if I later change my mind, I can press C-p, to + override the choice and select the private template, or just hit to have + it re-run the auto-detection. + + + SEE ALSO + + http://madduck.net/code/mailplate/ /usr/share/doc/mailplate/README