X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=doc%2Fmanual.sgml.head;h=11736666dd610488141161211d4d7b1aad69413d;hb=69bd7df1ce9e5c6a64b5128f85c1f91912d2f510;hp=d39feaccccd6756bf00a99d26cf17772956b7002;hpb=a739d748184bb73b17cb8bb97cea4cdeaff0d859;p=apps%2Fmadmutt.git diff --git a/doc/manual.sgml.head b/doc/manual.sgml.head index d39feac..1173666 100644 --- a/doc/manual.sgml.head +++ b/doc/manual.sgml.head @@ -1240,7 +1240,10 @@ For a complete list, see the . -Variable Expansion +Expansion within variables + +

Besides just assign static content to variables, there's plenty of + ways of adding external and more or less dynamic content. Commands' Output @@ -1318,7 +1321,7 @@ macro pager <F1> "!less -r /path/to/manual" "Show manual" define a custom variable like so: -set user_manualcmd = '!less -r /path/to_manual' +set user_manualcmd = "!less -r /path/to_manual" macro generic <F1> "$user_manualcmd<enter>" "Show manual" macro pager <F1> "$user_manualcmd<enter>" "Show manual" macro index <F1> "$user_manualcmd<enter>" "Show manual" @@ -1371,6 +1374,42 @@ unset user_foo

any query or operation (except the noted expansion within other statements) will lead to an error message. + Pre-Defined Variables + +

In order to allow users to share one setup over a number of + different machines without having to change its contents, there's a + number of pre-defined variables. These are prefixed with + Please consult the local copy of your manual for their + values as they may differ from different manual sources. Where + the manual is installed in can be queried (already using such a + variable) by running: + + +muttng -Q muttng_docdir + + +

To extend the example for viewing the manual via self-defined + variables, it can be made more readable and more portable by + changing the real path in: + + +set user_manualcmd = '!less -r /path/to_manual' + + +

to: + + +set user_manualcmd = "!less -r $muttng_docdir/manual.txt" + + +

which works everywhere if a manual is installed. + +

Note: this is a draft feature and maybe subject to change in + the near future. + Type Conversions

A note about variable's types during conversion: internally @@ -4717,6 +4756,7 @@ of the file ``˜/run2.dat''. ~L EXPR message is either originated or received by EXPR ~l message is addressed to a known mailing list ~m [MIN]-[MAX] message in the range MIN to MAX *) +~M multipart messages ~n [MIN]-[MAX] messages with a score in the range MIN to MAX *) ~N new messages ~O old messages