X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/55c80a0ae8453ef6c3e0fcd0fac30644945d0ef2..91baa2e0868d9d2e5cf664d63f4fbba25c4470cf:/man/mh-alias.man diff --git a/man/mh-alias.man b/man/mh-alias.man index aa3c3f19..ca9e0a2c 100644 --- a/man/mh-alias.man +++ b/man/mh-alias.man @@ -1,8 +1,7 @@ +.TH MH-ALIAS %manext5% "Oct 14, 2012" "%nmhversion%" .\" .\" %nmhwarning% -.\" $Id$ .\" -.TH MH-ALIAS %manext5% "%nmhdate%" MH.6.8 [%nmhversion%] .SH NAME mh-alias \- alias file for nmh message system .SH SYNOPSIS @@ -45,6 +44,10 @@ or or .RS 5 .B ; +| +.B : +| +.B # .I comment .RE .PP @@ -64,7 +67,9 @@ where: .RE .PP Continuation lines in alias files end with `\\' followed by the newline -character. +character. This applies to comment lines. Thus, a line following a +comment line that ends with a `\\' will be treated as a continuation of +the comment. .PP .RI \*(lq Alias\-file \*(rq and @@ -123,17 +128,13 @@ appropriate. (See example below.) .PP An approximation of the way aliases are resolved at posting time is (it's not really done this way): -.PP -.RS 2 -.IP 1) 3 +.IP 1) Build a list of all addresses from the message to be delivered, eliminating duplicate addresses. -.PP -.IP 2) 3 +.IP 2) If this draft originated on the local host, then for those addresses in the message that have no host specified, perform alias resolution. -.PP -.IP 3) 3 +.IP 3) For each line in the alias file, compare \*(lqalias\*(rq against all of the existing addresses. If a match, remove the matched \*(lqalias\*(rq from the address list, and add each new address in the address\-group to @@ -141,11 +142,13 @@ the address list if it is not already on the list. The alias itself is not usually output, rather the address\-group that the alias maps to is output instead. If \*(lqalias\*(rq is terminated with a `;' instead of a `:', then both the \*(lqalias\*(rq and the address are output in the -correct format. (This makes replies possible since +correct format (with the alias quoted if necessary and the address +wrapped in <>). +.PP +This makes replies possible since .B nmh aliases -and personal aliases are unknown to the mail transport system.) -.RE +and personal aliases are unknown to the mail transport system. .PP Since the alias file is read line by line, forward references work, but backward references are not recognized, thus, there is no recursion. @@ -156,7 +159,7 @@ Example Alias File: .nf <%etcdir%/BBoardAliases sgroup: fred, fear, freida -b-people: Blind List: bill, betty; +b-people: Blind List: bill, betty fred: frated@UCI UNIX\-committee: