Skip to main content

Why Two Schemes Anyway? and Stray Notes

Why two schemes anyway?​

Because neither by itself is optimal for all systems. XRSQ R allows more of a "bulk" mailing, because everything is saved up and then mailed simultaneously; this is very useful for systems such as ITS where the FTP server does not itself write mail directly, but hands it on to a central mailer demon of great power; the more information (e.g. recipients) associated with a single "hand-off", the more efficiently mail can be delivered.

By contrast, XRSQ T is geared to FTP servers which want to deliver mail directly, in one-by-one incremental fashion. This way they can return an individual success/failure reply code for each recipient given which may depend on variable file system factors such as exceeding disk allocation, mailbox access conflicts, and so forth; if they tried to emulate XRSQ R's bulk mailing, they would have to ensure that a success reply to the MAIL/MLFL indeed meant that it had been delivered to ALL recipients specified - not just some.

Stray notes​

  • Because this is after all an extension of FTP protocol, one must be prepared to deal with sites which don't recognize either XRSQ or XRCP. "XRSQ" and "XRSQ ?" are explicitly designed as tests to see whether either scheme is implemented; XRCP is not, and a failure return of the "unimplemented" variety could be confused with "No scheme selected yet", or even with "Recipient unknown". Be safe, be sure, use XRSQ!

  • There is no way to indicate in a positive response to "XRSQ ?" that the preferred "scheme" for a server is that of the default state; i.e. none of the multi-recipient schemes. The rationale is that in this case, it would be pointless to implement XRSQ/XRCP at all, and the response would therefore be negative.

  • One reason that the use of MAIL/MLFL is restricted to null arguments with this multi-recipient extension is the ambiguity that would result if a non-null argument were allowed; for example, if XRSQ R was in effect and some XRCP's had been given, and a MAIL FOO<CRLF> was done, there would be no way to distinguish a failure reply for mailbox "FOO" from a global failure for all recipients specified. A similar situation exists for XRSQ T; it would not be clear whether the text was stored and the mailbox failed, or vice versa, or both.

  • "Resets" are done by all XRSQ's and "normal" MAIL/MLFL's to avoid confusion and overly complicated implementation. The XRSQ command implies a change or uncertainty of status, and the latter commands would otherwise have to use some independent mechanisms to avoid clobbering the data bases (e.g. message text storage area) used by the T/R schemes. However, once a scheme is selected, it remains "in effect" just as a "TYPE A" or "BYTE 8" remains selected. The recommended way for doing a reset, without changing the current selection, is with "XRSQ ?". Remember that "XRSQ" alone reverts to the no-scheme state.

  • It is permissible to intersperse other FTP commands among the XRSQ/XRCP/MAIL sequences.