RSMTP
=====

Purpose:
	To decompress and unbatch incoming mail batches
	
Usage:
	RSMTP
	(most likely called as part of the doqueue script)

RSMTP will (if applicable) uncompress and unbatch incoming mail batches.
RSMTP will execute the 'r' commands "rsmtp", "rcsmtp", "rfsmtp",
"rgsmtp", "rzsmtp", "crsmtp", "frsmtp", "grsmtp", and "zrsmtp".
Input files must (after compression) be SMTP mail batches: one half of 
an interactive SMTP session, as described in RFC821.

If the 'r' command is not just "rsmtp", the extra letter is taken to
be an indicator of the compression method used (c=compress, f=freeze,
g and z=gzip). If compressed (any method) batches are sent to "rsmtp",
the correct method will be determined using magic numbers.

SMTP mail batches are unbatched, and the mail messages are put back
into the mail queue for RMAIL to process. So you must run RMAIL after
RSMTP, or the mail messages will not be delivered, after all.

RSMTP will recognise a wide range of SMTP formats:

- with or without "HELO"
- with or without "QUIT" (a "QUIT" line terminates the batch no matter what)
- MAIL FROM: and RCPT TO: lines can contain source routes or bang paths
- the mail messages may, but need not, have a From_ line
- lines may be separated by \r\n (as in RFC821) or \n (as usual)
