| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
With ‘mew-config-alist’, you can differ actions of sending/receiving messages. Let's look at the following example:
(setq mew-config-alist
'((home
(inbox-folder "+inbox-home")
(pop-server "pop.iij4u.or.jp"))
(ext
(pop-ssh-server "ssh.example.org"))
(default
(proto "%")
(imap-server "imap.example.org")
(pop-server "pop.example.org"))))
|
This example defines three "cases": "home", "ext", and "default". For each case, some pair of key and value are defined.
We explain the semantics of ‘mew-config-alist’ with this example. If the "case" is "home", looking up "pop-server" results in "pop.iij4u.or.jp". If the "case" is "ext", looking up "pop-server" results in "pop.example.org" since there is no specified key for the "case" and the "default" is used. If the "case" is "default", looking up "pop-server" results in "pop.example.org".
If the "case" is "home", looking up "inbox-folder" results in "+inbox-home". If the "case" is "ext", looking up "inbox-folder" results in the value of ‘mew-inbox-folder’ since there is no specified key for both "ext" and "default". If the "case" is "default", looking up "inbox-folder" also results in the value of ‘mew-inbox-folder’.
"proto" (‘mew-proto’) is used to specify a folder which is selected when you type ‘M-x mew’. (If you input ‘M-x mew’ when Mew is not executed, ""proto" for the "default" "case" is used. If you type ‘M-x mew’ when Mew is running, "proto" is chosen according to the value of the "case".
Candidates of the value are "+", "$", "%", and "-". These means "+inbox", "$inbox", "%inbox", and "-fj.mail.reader.mew" without any special configuration.
Each key which can be specified in ‘mew-config-alist’ corresponds to the variable ‘mew-"key"’. The following list enumerates such keys.
name, user, mail-domain, cc, fcc, dcc, reply-to, organization, header-alist, proto, smtp-server, smtp-port, smtp-ssh-server, smtp-ssl, smtp-ssl-port, smtp-user, smtp-auth-list, smtp-msgid-user, smtp-msgid-domain, smtp-helo-domain, smtp-mail-from, pop-server, pop-port, pop-ssh-server, pop-ssl, pop-ssl-port, pop-user, pop-auth, pop-auth-list, pop-size, pop-header-only, pop-delete, pop-body-lines, pop-proxy-server, pop-proxy-port, imap-server, imap-port, imap-ssh-server, imap-ssl, imap-ssl-port, imap-user, imap-auth, imap-auth-list, imap-size, imap-header-only, imap-delete, imap-trash-folder, imap-queue-folder, imap-spam-field, imap-spam-word, imap-proxy-server, imap-proxy-port, nntp-server, nntp-port, nntp-ssh-server, nntp-ssl, nntp-ssl-port, nntp-user, nntp-size, nntp-header-only, nntp-msgid-user, nntp-msgid-domain, ssl-cert-directory, ssl-verify-level, inbox-folder, queue-folder, postq-folder, mailbox-type, mbox-command, mbox-command-arg, signature-file, content-type, refile-guess-alist, spam-prog, spam-prog-args, ham-prog, ham-prog-args, use-old-pgp, pgp-signer, smime-signer, privacy-method, protect-privacy-always, protect-privacy-always-type, protect-privacy-encrypted, protect-privacy-encrypted-type, protect-privacy-with-old-pgp-signature |
A value for From: is made of 'name', 'user', and 'mail-domain' according to the following rule:
from = name <user@mail-domain> |
Unless you set ‘mew-from-list’ by yourself, ‘mew-from-list’ is automatically set collecting 'from' for each "case" according to the rule above. See See section Circular completions in a header.
Cases configured in ‘mew-config-alist’ can be specified to the "case". When Mew boots up, both the "case" is "default".
If you want to change the "case", type ‘C’. You can use completion by ‘TAB’ and circular completion by ‘C-cTAB’.
If the "case" is not "default", they are displayed in the mode line of Summary mode. The following is an example where the "case" is "home".
(Summary home) |
In Draft mode, if the "case" is not "default", the value is displayed in mode line. The following is an example that the "case" is "home".
(Draft home) |
To change the "case" of a draft in Draft mode, use ‘C-cC-o’. Its header is dynamically modified according to the value of the 'mail-domain' key and the 'header-alist' key. Note that the "case" is a local variable of the Draft mode.
You can automatically set the "case" in Draft mode.
If this variable is ‘t’, the "case" is automatically guessed according ‘mew-case-guess-alist’ when a draft is prepared. The default is ‘t’.
If this variable is ‘t’, the "case" is automatically guessed according ‘mew-case-guess-alist’ when a message is composed. The default is ‘nil’. The default is ‘nil’
If this variable is ‘t’, the "case" is automatically guessed according ‘mew-case-guess-alist’ when a draft is prepared by replying. The default is ‘t’.
The syntax of ‘mew-case-guess-alist’ and ‘mew-case-guess-when-replied-alist’ is the same as ‘mew-refile-guess-alist’. For more information, please refer to See section Guess by user defined rules.
When typing ‘C-cC-c’ in Draft mode to send a draft, the "case" in Draft mode is used to determine an SMTP/NNTP server, etc. When typing ‘C-cC-c’ in Summary mode to flush messages in +queue/+postq, the "case" in Summary mode is used even if it is different from the one which was used in Draft mode. ‘C-uC-cC-c’ in Summary mode let you specify the "case" to flush messages in +queue/postq.
The following is a summary of commands concerned with the "case".
In Summary mode, set the "case".
In Draft mode, set the "case" of a draft.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] |
This document was generated by U-X61T\saito on May, 13 2008 using texi2html 1.78.