File: README

package info (click to toggle)
mailplate 0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, lenny, squeeze, stretch, wheezy
  • size: 116 kB
  • ctags: 102
  • sloc: xml: 351; python: 328; makefile: 49
file content (36 lines) | stat: -rw-r--r-- 1,632 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
mailplate README
================

I decided that this script is fit for public consumption, so enjoy. You can
find an example configuration and template files in
/usr/share/doc/mailplate/examples. Much more information can be found on the
mailplate homepage: http://madduck.net/code/mailplate/

The tool will install defaults in your home directory on first invocation.

I have the following settings in my muttrc and vimrc:

~/.mutt/muttrc:
  set editor="mailplate --edit --auto --keep-unknown"

~/.mutt/keybindings:
  #TODO this is a hack until mailplate does not readd headers.
  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"
  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"

~/.vim/ftplugin/mail.vim:
  nmap <buffer> <F1>      :w<CR>:%!mailplate --keep-unknown --auto<CR>
  nmap <buffer> <C-P><F1> :w<CR>:%!mailplate --keep-unknown private<CR>
  nmap <buffer> <C-P><F2> :w<CR>:%!mailplate --keep-unknown debian<CR>

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,<F1> to override the
choice and select the private template, or just hit <F1> to have it re-run the
auto-detection.

The source code is maintained in git, so if you want to contribute, use the
following URL to clone:

  http://git.madduck.net/code/mailplate.git

 -- martin f. krafft <madduck@madduck.net>  Sun, 30 Sep 2007 17:37:36 +0100