home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume4 / uumail3 / part1 / Alias.Design < prev    next >
Encoding:
Text File  |  1986-11-30  |  2.4 KB  |  81 lines

  1. This is the format for the Alias file used in uumail. It is derived from
  2. the Rand Mail Handler system (MH).
  3. Stan Barber 02/15/86
  4. ***************************************************************************
  5. This work in its current form is Copyright 1986 Stan Barber
  6. with the exception of opath, gethostname and the original getpath which
  7. as far as I know are in the Public Domain. This software may be distributed
  8. freely as long as no profit is made from such distribution and this notice
  9. is reproducted in whole.
  10. ***************************************************************************
  11.  
  12. The Alias file for mail delivery is the file
  13.  
  14.     /usr/lib/uucp/Aliases
  15.  
  16. Each line of the alias file has the format:
  17.  
  18. match : alias
  19.  
  20. Where:
  21.  
  22.     alias       :=  simple-list
  23.             |   "<" alias-file
  24.             |   "=" UNIX-group
  25.             |   "|" program-name
  26.  
  27.     simple-list :=  simple-name
  28.             |   simple-list, simple-name
  29.  
  30. Alias-file and program-name are fully qualified UNIX file names.
  31. UNIX-group is a group name from /etc/group.  A simple-name is a 
  32. local user login name, including only alphanumerics, `.' and `-'. 
  33. Throughout this file case is ignored, except for alias-file and
  34. program-name.
  35.  
  36. In match, a trailing * on a name will match anything. (See example
  37. below.)
  38.  
  39. The procedure for mail aliasing is:
  40.  
  41. 1) Build a list of all addresses from the message to be
  42.    delivered, eliminating duplicates.
  43.  
  44. 2) For each line in the alias file, compare "match" against all
  45.    of the existing addresses.  If a match, remove the matched
  46.    name from the address list, and add each new alias name to the
  47.    address list if it is not already on the list.
  48.  
  49. 3) If output from uumail is to be sent to some other program, the pipe
  50.    ("|") alias will cause output to be directly sent to that program instead
  51.    of via mail.
  52.  
  53. Since the alias file is read line by line, forward references
  54. work, but backward references are not recognized, thus, there is
  55. no recursion.
  56.  
  57. E.g.:
  58.  
  59. Borden: bruce
  60. Bruce: bsb
  61. Wharman: mike
  62. ASRL: bsb, mike, obrien, giarla
  63. UNIX-committee: < /usr/people/unix-committee
  64. System: = sys
  65. rnews: | /usr/lib/news/recnews
  66.    ...
  67.  
  68. In the "unix-committee" example, the file "/usr/people/unix-
  69. committee" contains one simple-name, or a list of comma separated
  70. simple-names.  A new-line will be treated as a blank in this
  71. file, s.a.
  72.  
  73.     foo, fie,
  74.     fum, fiddle
  75.  
  76. In the "system" case, the names from the group "sys" will be used
  77. as the expanded name list.
  78.  
  79. Originally by
  80. Bruce Borden    October 1979
  81.