diff options
| author | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2010-04-07 23:07:10 +0200 |
|---|---|---|
| committer | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2010-04-07 23:07:10 +0200 |
| commit | 006335c23674bb735b284b3998ed57dbff752bf1 (patch) | |
| tree | a95198eb8a4831eeb6d09fef3d0140d4c580b813 | |
| parent | 367a950f338c1bc982c1115e163acf8caa962ae1 (diff) | |
emacstips: add my fcc handling wrapper code.
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
| -rw-r--r-- | emacstips.mdwn | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/emacstips.mdwn b/emacstips.mdwn index 96e520f..51e045d 100644 --- a/emacstips.mdwn +++ b/emacstips.mdwn @@ -78,6 +78,19 @@ As its name implies, notmuch isn't really doing that much (which is part of its python script (which should be rewritten in lisp and integrated into the notmuch frontend, really, but is not difficult to setup. + This is the code, I needed in my .emacs file to make it work with + the python wrapper that I called mddeliver.py: + + ;; fcc handler + (defun maildir-deliver-region(destdir) + (shell-command-on-region + (point-min) (point-max) + (concat "/usr/local/bin/mddeliver.py -c -s -d " destdir))) + (setq message-fcc-handler-function 'maildir-deliver-region) + (defun my-message-header-setup () + (message-add-header "Fcc: ~/mail/INBOX.Sent")) + (add-hook 'message-send-hook 'my-message-header-setup) + * <span id="customize_notmuch_folder">How to customize notmuch-folders</span> There's a "notmuch-folder" command available in the emacs client |
