In header, completions each field are assigned to `TAB' as follows:
<Field completion>
If the cursor is on the beginning of a line and the previous line does not end with ",", you can complete field defined in the `mew-fields' variable with `TAB'.
To: kazu@mew.org R`TAB'
At the point above, if you type `TAB', you get:
To: kazu@mew.org Reply-To:
<Address completion and expansion>
You can define an easy-to-remember short name for a long or hard-to-remember address with Mew's Addrbook feature. For example, consider the following configuration:
pooh: winnie-the-pooh@100acre.woodwest.uk
This means to replace the string "pooh" with "winnie-the-pooh@100acre.woodwest.uk". Note that short names should usually be configured in "~/.im/Addrbook". For more information about Addrbook, please refer to See section Address Book.
In a header in Draft mode and on the field supposed to write addresses and one or more characters precede, you can complete an short name for address with `TAB'.
Let's look at the following example.
To: piglet@beech.tree.uk, po`TAB'
If you input `TAB' up above, "pooh" is completed (unless other candidates exist).
To: piglet@beech.tree.uk, pooh`TAB'
One more type of `TAB' expands it to "winnie-the-pooh@100acre.woodwest.uk".
To: piglet@beech.tree.uk, winnie-the-pooh@100acre.woodwest.uk
If you type `TAB' at improper point for address completion, `TAB' is inserted. Consider the following example:
To: pooh,`TAB'
In this case, `TAB' is just inserted.
A string ended with "@" is explicitly expanded. Consider the following case where similar short names are defined.
pooh: winnie-the-pooh@100acre.woodwest.uk pooh-pooh: pooh-pooh@somewhere.jp
To expand "pooh" to "winnie-the-pooh@100acre.woodwest.uk", take this way.
To: pooh@`TAB'
<Folder completion>
At a point, such as Fcc:, supposed to complete a folder, you can complete a folder with `TAB'. Let's look at an example.
Fcc: `TAB'
Here, "+" is completed.
Fcc: +`TAB'
One more type of `TAB' shows candidates. Please input appropriate characters then type `TAB'.
Fcc: +B`TAB'
If a candidate can be solely decided, you get a completion.
Fcc: +Backup
<Hints of customization>
You can define which field allows address and folder completion in `mew-field-completion-switch'. The following declaration is used by default.
(defvar mew-field-completion-switch '(("To:" . mew-complete-address) ("Cc:" . mew-complete-address) ("Dcc:" . mew-complete-address) ("Bcc:" . mew-complete-address) ("Reply-To:" . mew-complete-address) ("Fcc:" . mew-complete-folder) ("Resent-To:" . mew-complete-address) ("Resent-Cc:" . mew-complete-address) ("Config:" . mew-complete-config)))
Please refer to See section Config to know completion for Config:.