home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 3
/
TheARMClub_PDCD3.iso
/
hensa
/
internet
/
a082_1
/
!Rucp
/
Doc
/
rmail
< prev
next >
Wrap
Text File
|
1991-04-08
|
2KB
|
47 lines
Program: rmail.c 16 September 1990
Arguments: One or more addresses to deliver mail to
or "-t" to direct rmail to read the addresses from the RFC-822 header.
Optional argument "-f" to denote file to read in place of stdin.
Optional argument "-F" to denote file to read in place of stdin and DELETE after readering.
Optional argument "-x" to for debug level
Input: mail to be delivered, with RFC-822 header, on stdin.
Output: 'From' and 'Received:' headers are added, 'Bcc:' headers are removed,
and the mail is delivered to one or more local users and/or one or more remote users.
Exit code: 0 Success
1 One or more letters not delivered
2 No mail delivered
3 Configuration file error
4 Invalid option/help specified
5 Invalid option/help specified
Note: When parsing RFC-822 headers, this program
expects them to be "well-behaved", that is in
format generated by UUPC/extended. This implies:
One address per line
Resent- headers, if any, before the original headers.
From: header must precede To: header.
To: header must precede Cc: and Bcc: headers.
Cc: and Bcc: headers must be together (one
after the other)
The MUA has prefixed any obsolete Resent- headers by X-
Note: The "-t" flag is supported by BSD sendmail for the
purpose listed above, but we also turn use it to
control other special options, all of which
basically cause the program to act more like a
local mailer than a remote mailer; these options
include:
Stripping off blind carbon copies
Generating the UUCP From line differently