mc-write-mode binds the function
mc-remailer-encrypt-for-chain to the key C-c / r. This
function rewrites the message for a remailer or chain. The resulting
buffer is just a new Email message, so it can itself be rewritten for
another remailer; this is one way to manually construct a remailer
Mailcrypt also has powerful facilities for defining automatic chains.
We will start with an example. Suppose you have put the following into
(setq mc-remailer-user-chains '(("Foo" "alumni" "robo") ("Bar" (shuffle-vector ["replay" "flame" "spook"])) ("Baz" "Foo" "Bar" "rahul" "Bar") ("Quux" 4)))
This code defines four chains. The first is named "Foo" and consists of
"alumni" and "robo", in that order. The second is named "Bar" and
consists of "replay", "flame", and "spook" in some random order (a
different order will be chosen each time the chain is used). The third
is named "Baz" and consists of 9 remailers: The two from "Foo", followed
by a permutation of the three from "Bar", followed by "rahul", followed
by another permutation of the three from "Bar". Finally, the fourth is
named "Quux" and consists of a random permutation of the four best
remailers as ordered in the `
Now whenever you are prompted for a "remailer or chain", the chains
"Foo", "Bar", "Baz", and "Quux" will be available, including
TAB completion on their names. By capitalizing their names,
you guarantee they will show up near the top of the completion list if
TAB on an empty input.
Now for the gritty details.
mc-remailer-user-chains is a list of
chain definitions. A chain definition is a list whose first element is
the name (a string) and whose remaining elements form a remailer list. Each element of a remailer list is one of the following:
So, in the example "Bar" above,
shuffle-vector is actually a Lisp
primitive which returns a random permutation of the argument vector.
(Which brings up a side note: A remailer list can be a vector instead of
a list if you like.)
So where do the definitions for "replay" etc. come from?
There is another variable,
mc-remailer-internal-chains, which has
the same format as
mc-remailer-user-chains. In fact, the
concatenation of the two is always used internally when resolving chains
by name. The "internal chains" are normally generated automatically
from a Levien-format remailer list, which lives in `
by default and is parsed at startup time. The parser creates several
chains, each containing a single remailer, and names each chain after
the respective remailer.
Thus "replay" (for example) is actually the name of a chain whose single element is the remailer at <email@example.com>. So "replay" is a valid name of a chain to include in the definition of another chain, as was done above in the definition of "Bar".Remailer Quick Start Remailer Support Response Blocks