Skip to main content

Appendix B - Example of XRSQ R (Recipients First)

This is an example of how XRSQ R is used; first the user must establish that the server in fact implements XRSQ:

U: XRSQ
S: 200 OK, no scheme selected.

An XRSQ with a null argument always returns a 200 if implemented, selecting the "scheme" of null, i.e. none of them. If XRSQ were not implemented, a code of 4xx or 5xx would be returned.

U: XRSQ R
S: 200 OK, using that scheme

All's well; now the recipients can be specified.

U: XRCP Foo
S: 200 OK

U: XRCP Raboof
S: 520 Who's that? No such user here.

U: XRCP bar
S: 200 OK

Well, two out of three ain't bad. Note that the demise of "Raboof" has no effect on the storage of "Foo" or "bar". Now to furnish the message text, by giving a MAIL or MLFL with no argument:

U: MAIL
S: 350 Type mail, ended by <CRLF>.<CRLF>
U: Blah blah blah blah....etc etc etc
U: .
S: 256 Mail sent.

The text has now been sent to both "Foo" and "bar".