]> git.madduck.net Git - code/mailplate.git/blob - README

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

trim comment at start of script
[code/mailplate.git] / README
1 mailplate README
2 ================
3
4 I decided that this script is fit for public consumption, so enjoy. You can
5 find an example configuration and template files in
6 /usr/share/doc/mailplate/examples. Much more information can be found on the
7 mailplate homepage: http://madduck.net/code/mailplate/
8
9 The tool will install defaults in your home directory on first invocation.
10
11 I have the following settings in my muttrc and vimrc:
12
13 ~/.mutt/muttrc:
14   set editor="mailplate --edit --auto --keep-unknown"
15
16 ~/.mutt/keybindings:
17   #TODO this is a hack until mailplate does not readd headers.
18   macro compose     e ':set my_editor="$editor"<enter>:set editor=sensible-editor<enter><edit-headers>:set editor="$my_editor"<enter>' "invoke normal editor to edit message"
19   macro index,pager e ':set my_editor="$editor"<enter>:set editor=sensible-editor<enter><edit>:set editor="$my_editor"<enter>' "invoke normal editor to edit message"
20
21 ~/.vim/ftplugin/mail.vim:
22   nmap <buffer> <F1>      :w<CR>:%!mailplate --keep-unknown --auto<CR>
23   nmap <buffer> <C-P><F1> :w<CR>:%!mailplate --keep-unknown private<CR>
24   nmap <buffer> <C-P><F2> :w<CR>:%!mailplate --keep-unknown debian<CR>
25
26 Now when I reply to a message, mailplate automatically choses the right
27 template, and if I later change my mind, I can press C-p,<F1> to override the
28 choice and select the private template, or just hit <F1> to have it re-run the
29 auto-detection.
30
31 The source code is maintained in git, so if you want to contribute, use the
32 following URL to clone:
33
34   http://git.madduck.net/code/mailplate.git
35
36  -- martin f. krafft <madduck@madduck.net>  Sun, 30 Sep 2007 17:37:36 +0100