| www.delorie.com/gnu/docs/emacs/mh-e_65.html | search |
![]() Buy the book! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
By default, operations on folders work only one level at a time. Set
mh-recursive-folders to non-nil to operate on all folders.
This mostly means that you'll be able to see all your folders when you
press TAB when prompted for a folder name. The variable
mh-auto-folder-collect is normally turned on to generate a list
of folder names in the background as soon as mh-e is loaded. Otherwise,
the list is generated when you need a folder name the first time (as
with o (mh-refile-msg)). If you have a lot of folders and
you have mh-recursive-folders set, this could take a while, which
is why it's nice to do the folder collection in the background.
The function mh-default-folder-for-message-function is used by
o (mh-refile-msg) and C-c C-f C-f (mh-to-fcc)
to generate a default folder. The generated folder name should be a
string with a `+' before it. For each of my correspondents, I use the
same name for both an alias and a folder. So, I wrote a function that
takes the address in the `From:' header field, finds it in my alias
file, and returns the alias, which is used as a default folder name.
This is the most complicated example given here, and it demonstrates
several features of Emacs Lisp programming. You should be able to drop
this into `~/.emacs', however. If you use this to store messages
in a subfolder of your Mail directory, you can modify the line that
starts `(format +%s...' and insert your subfolder after the folder
symbol `+'.
Creating useful default folder for refiling via mh-default-folder-for-message-function
(defun my-mh-folder-from-address ()
"Determine folder name from address.
Takes the address in the From: header field, and returns its
corresponding alias from the user's personal aliases file. Returns
|
The hook mh-refile-msg-hook is called after a message is marked
to be refiled.
The variable mh-sortm-args holds extra arguments to pass on to
the sortm command. Note: this variable is only consulted when a
prefix argument is given to M-x mh-sort-folder. It is used to
override any arguments given in a sortm: entry in your MH profile
(`~/.mh_profile').
3.4.3.1 Scan line formatting
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |