mail 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. .TH MAIL 1
  2. .SH NAME
  3. mail \- mail and mailboxes
  4. .SH SYNOPSIS
  5. .B mail
  6. [
  7. .I arg ...
  8. ]
  9. .SH DESCRIPTION
  10. .PP
  11. Mail is a shell script that invokes
  12. .IR nedmail (1),
  13. the mail reader,
  14. when no recipients appear on the command line and
  15. .IR marshal (1),
  16. the mail preparer,
  17. otherwise.
  18. All command line options are passed through.
  19. See the man pages for those two commands for
  20. more details.
  21. .PP
  22. Incoming mail for a user
  23. .I username
  24. is put in the file
  25. .BI /mail/box/ username /mbox
  26. unless either the file
  27. .BI /mail/box/ username /forward
  28. or
  29. .BI /mail/box/ username /pipeto
  30. exists.
  31. The mailbox must have append-only and exclusive-access mode
  32. (see
  33. .IR chmod (1)).
  34. A user must create his or her own mailbox using the
  35. .B -c
  36. option of
  37. .IR nedmail (1).
  38. Mailboxes are created writable (append-only) but not readable by others.
  39. .PP
  40. If the file
  41. .BI /mail/box/ username /forward
  42. exists and is readable by everyone, incoming mail
  43. will be forwarded to the addresses contained in the first line of the file.
  44. The file may contain multiple addresses.
  45. Forwarding loops are caught and resolved by local delivery.
  46. .PP
  47. If the file
  48. .BI /mail/box/ username /pipeto
  49. exists and is readable and executable by everyone,
  50. it will be run for each incoming message for the user.
  51. The message will be piped to it rather
  52. than appended to his/her mail box.
  53. The file is run as user
  54. .BR none .
  55. Its two arguments are the
  56. with arguments of the destination address
  57. (e.g.
  58. .BR local!gremlin )
  59. and the user's mail box path
  60. (e.g.
  61. .BR /mail/box/gremlin/mbox )
  62. .SH FILES
  63. .TF /mail/box/*/dead.letter
  64. .TP
  65. .B /sys/log/mail
  66. mail log file
  67. .TP
  68. .B /mail/box/*
  69. mail directories
  70. .TP
  71. .B /mail/box/*/mbox
  72. mailbox files
  73. .TP
  74. .B /mail/box/*/forward
  75. forwarding address(es)
  76. .TP
  77. .B /mail/box/*/pipeto
  78. mail filter
  79. .TP
  80. .B /mail/box/*/L.reading
  81. mutual exclusion lock for multiple mbox readers
  82. .TP
  83. .B /mail/box/*/L.mbox
  84. mutual exclusion lock for altering mbox
  85. .TP
  86. .B /lib/face/48x48x?
  87. directories of icons for
  88. .I seemail
  89. .SH SOURCE
  90. .TP
  91. .B /rc/bin/mail
  92. .SH "SEE ALSO"
  93. .IR aliasmail (8),
  94. .IR faces (1),
  95. .IR filter (1),
  96. .IR marshal (1),
  97. .IR mlmgr (1),
  98. .IR nedmail (1),
  99. .IR qer (8),
  100. .IR rewrite (6),
  101. .IR send (8),
  102. .IR smtp (8),
  103. .IR upasfs (4)