2. Procedure
When information is to be remotely printed, the user application constructs an RFC 822 [1] message, containing a "Message-ID" field along with a "multipart/mixed" content [2] having two parts, the first being a "application/remote-printing" content-type, and the second being an arbitrary content-type corresponding to the information to be printed. The message is then sent to the remote printer server's electronic mail address.
It should be noted that not all content-types have a natural printing representation, e.g., an "audio" or "video" content. For this reason, the second part of the "multipart/mixed" content should be one of the following:
text/plain, message/rfc822, application/postscript image/tiff (defined in Appendix A), any multipart
Note that:
(1) With the "text/plain" content-type, not all character sets may be available for printing. (2) With the "message" content-type, the subordinate content will be processed recursively. (3) With the "application/postscript" content-type, the remote printer server should evaluate the contents in a safe execution environment. (4) With the "multipart" content-type the subordinate contents will be processed recursively: for a "multipart/mixed" or "multipart/digest" content, each subordinate content will start on a new page, whilst for a "multipart/parallel" content, all subordinate contents will, if possible, start on the same page. Naturally, when processing a "multipart/alternative" content, only one subordinate content will be printed.
When the remote printer server finishes its processing, a message is returned to the originator, indicating either success or failure.
2.1. Naming, Addressing, and Routing
A printer is identified by a telephone number which corresponds to a G3-facsimile device connected to the international telephone network, e.g.,
+1 415 968 2510
where "+1" indicates the IDDD country code, and the remaining string is a telephone number within that country. This number is used to construct the address of a remote printer server, which forms the recipient address for the message, e.g.,
That is, the local-part of the remote printer server's address is ALWAYS "remote-printer", and the domain-part is constructed by reversing the telephone number, converting each digit to a domain-label, and being placed under "tpc.int."
The message is routed in exactly the same fashion as all other electronic mail, i.e., using the MX algorithm [3]. Since a remote printer server might be able to access many printers, the wildcarding facilities of the DNS [4,5] are used accordingly. For example, if a remote printer server residing at "dbc.mtview.ca.us" was willing to access any printer with a telephone number prefix of
+1 415 968
then this resource record might be present
*.8.6.9.5.1.4.1.tpc.int. IN MX 10 dbc.mtview.ca.us.
Naturally, if several remote printer servers were willing to access any printer in that prefix, multiple MX resource records would be present.
It should be noted that the presence of a wildcard RR which matches a remote printer server's address does not imply that the corresponding telephone number is valid, or, if valid, that a G3-facsimile device is connected at the phone number.
2.2. The application/remote-printing Content-Type
(1) MIME type name: application (2) MIME subtype name: remote-printing (3) Required parameters: none (4) Optional parameters: none (5) Encoding considerations: 7bit preferred (6) Security considerations: none
The "application/remote-printing" content-type contains originator and recipient information used when generating a cover sheet. Using the ABNF notation of RFC 822, the syntax for this content is:
<content> ::= <recipient-info> CRLF
<originator-info>
[CRLF <cover-info>]
<recipient-info> ::= "Recipient" ":" <value> CRLF
<address-info>
<originator-info> ::= "Originator" ":" <value> CRLF
<address-info>
<address-info> ::= ["Title" ":" <value> CRLF]
["Department" ":" <value> CRLF]
["Organization" ":" <value> CRLF]
["Mailstop" ":" <value> CRLF]
["Address" ":" <value> CRLF]
["Telephone" ":" <value> CRLF]
"Facsimile" ":" <value> CRLF
["Email" ":" <value> CRLF]
<value> ::= *text
[CRLF LWSP-char <value> ]
<cover-info> ::= *(*text CRLF)
Note that the value of the "Email" field is an RFC 822 mailbox address.
2.3. Usage Example
Suppose someone wished to send the author some comments on this memo using this facility. The message constructed might look like this:
To: [email protected]
From: "John Q. Public" <[email protected]>
Date: Sun, 11 Apr 1993 20:34:13 -0800
Subject: Comments on "An Experiment in Remote Printing"
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----- =_aaaaaaaaaa0"
------- =_aaaaaaaaaa0
Content-Type: application/remote-printing
Recipient: Marshall Rose
Title: Principal
Organization: Dover Beach Consulting, Inc.
Address: 420 Whisman Court
Mountain View, CA 94043-2186
US
Telephone: +1 415 968 1052
Facsimile: +1 415 968 2510
Originator: John Q. Public
Organization: The Public Domain
Telephone: +1 801 555 1234
Facsimile: +1 801 555 6789
EMail: "John Q. Public" <[email protected]>
Any text appearing here would go on the cover-sheet.
------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Here are my comments on your draft.
...
------- =_aaaaaaaaaa0--
2.4. Remote Printing without MIME
If the originator's user agent doesn't support MIME, (e.g., the originator accesses the Internet mail infrastructure via a gateway in another mail dominion), then it is still possible for remote printing to occur, albeit in a more limited fashion. Specifically, because a "application/remote-printing" content is not present, cover sheet information must be derived from some other source; and, the message body will be treated as a "text/plain" content.
Typically, a cover sheet consists of three sections:
- information identifying the originator;
- information identifying the recipient; and,
- additional information supplied by the remote printer server.
To identify the originator, the remote printer server will use the message headers, usually by stripping any trace headers (i.e., "Received" and "Return-Path") and then re-ordering the remaining headers starting with the "From" header.
To identify the recipient, an alternative syntax is used for recipient addressing, in which the local-part of the remote printer server's address consists of "remote-printer" followed by an RFC 822
atom, e.g.,
remote-printer.Arlington_Hewes/[email protected]
This mailbox syntax is purposefully restricted in the interests of pragmatism.
The atom following "remote-printer" is considered an opaque string for use in recipient identification when generating a cover sheet.
To paraphrase RFC 822, an atom is defined as:
atom = 1*atomchar
atomchar= <any upper or lowercase alphabetic character (A-Z a-z)>
/ <any digit (0-9)>
/ "!" / "#" / "$" / "%" / "&" / "'" / "*" / "+"
/ "-" / "/" / "=" / "?" / "^" / "_" / "`" / "{"
/ "|" / "}" / "~"
When generating a cover sheet using this opaque string, the remote printer server will interpret an underscore character ("_") as a space, and a solidus character ("/") as an end-of-line sequence. A remote printer server will interpret two consecutive underscore characters in the opaque string as a single underscore, and two consecutive solidus characters as a single solidus. So, the opaque string,
Arlington_Hewes/Room_403
used in the example above might appear on the cover sheet as
To: Arlington Hewes
Room 403
Note that some Internet mail software (especially gateways from outside the Internet) impose stringent limitations on the size of a mailbox-string. Thus, originating user agents should take care in limiting the local-part to no more than 70 or so characters.
Note that by using the alternative syntax for recipient addressing, it is completely legal to send non- textual messages in which the cover sheet information is automatically derived -- simply by including "MIME-Version:" and "Content-Type:" headers in the message, but omitting the initial "application/remote-printing" content, e.g.,
To: remote-printer.Arlington_Hewes/[email protected]
cc: Marshall Rose <[email protected]>
From: Carl Malamud <[email protected]>
Date: Sun, 18 Jul 1993 09:14:13 -0500
Subject: proposal for enhancement
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: application/postcript
%!
Note that by using the alternative syntax for recipient addressing, remote printing and e-mail recipients can be identified in the same message.