home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1997 December / Internet_Info_CD-ROM_Walnut_Creek_December_1997.iso / drafts / draft_n_r / draft-palme-newsmail-00.txt < prev    next >
Text File  |  1997-08-23  |  31KB  |  720 lines

  1. Network Working Group                                       Jacob Palme
  2. Internet Draft                             Stockholm University and KTH
  3. draft-palme-newsmail-00.txt                                 August 1997
  4. Category-to-be: Proposed standard                Expires: February 1998
  5.  
  6.  
  7.  
  8.                   Messages between Email and Netnews
  9.  
  10.                          Status of this Memo
  11.  
  12.  This document is an Internet-Draft. Internet-Drafts are working
  13. documents of the Internet Engineering Task Force (IETF), its areas, and
  14. its working groups. Note that other groups may also distribute working
  15. documents as Internet-Drafts.
  16.  
  17.  Internet-Drafts are draft documents valid for a maximum of six months
  18. and may be updated, replaced, or obsoleted by other documents at any
  19. time. It is inappropriate to use Internet- Drafts as reference material
  20. or to cite them other than as ``work in progress.''
  21.  
  22.  To learn the current status of any Internet-Draft, please check the
  23. ``1id-abstracts.txt'' listing contained in the Internet- Drafts Shadow
  24. Directories on ftp.is.co.za (Africa), nic.nordu.net (Europe),
  25. munnari.oz.au (Pacific Rim), ds.internic.net (US East Coast), or
  26. ftp.isi.edu (US West Coast).
  27.  
  28.  This memo provides information for the Internet community. This' memo
  29. does not specify an Internet standard of any kind, since this document
  30. is mainly a compilation of information taken from other RFC-s..
  31. Distribution of this memo is unlimited.
  32.  
  33.  
  34.                             Abstract
  35.  
  36. Messages can be transported through gateways between email and netnews.
  37. Combined clients for mail and netnews can submit the same message at the
  38. same time to email and netnews. Many netnews clients can produce email
  39. replies to the author of netnews articles. This standard specifies how
  40. to handle these kinds of messages. This standard specifies three new
  41. email headers: 'Posted-To', 'Group-Reply-To' and 'Personal-Reply-To'.
  42. Further discussions on this memo should take place in the mailing-list
  43. MAILNEWS-L@SEGATE.SUNET.SE. More info in the full text of this memo or
  44. at URL http://www.dsv.su.se/~jpalme/ietf/jp-ietf-home.html#newsharmony.
  45.  
  46.  
  47. Table of contents
  48.  
  49. 1. Mailing List
  50. 2. Status
  51. 3. Introduction
  52. 4. Definitions
  53. 5. Headers in Combined and Converted Messages
  54.     5.1 References and In-Reply-To
  55.     5.2 Message-ID Header
  56.     5.3 "Followup-To" and "Group-Reply-To" Headers
  57.     5.4 "Posted-To" header
  58.     5.5 "Newsgroups" Header
  59.     5.6 "Approved" Header
  60.     5.7 "Subject" Header
  61.     5.8 "Received" and "Path" headers
  62.     5.9 "Control" messages
  63.     5.10 Other Headers
  64.     5.11 Headers Mandatory in Netnews but not in Email
  65.     5.12 Headers Optional in Netnews and not Defined in Email
  66. 6. Preparation of Replies to Combined Messages
  67. 7. Cooperating Clients and Gateways
  68. 8. Security considerations
  69. 9. Acknowledgments
  70. 10. References
  71. 11. Author's Addresses
  72. Appendix A: Examples
  73. Appendix B: Algorithm for Assigning Message-IDs to Messages in Gateways
  74. from Email to Netnews
  75. Appendix C: Example of two partially overlapping threads
  76.  
  77. 1.    Mailing List
  78.  
  79. Further discussion on this memo should be done through the mailing list
  80. MAILNEWS-L@SEGATE.SUNET.SE. To subscribe to this list, send a message to
  81. LISTSERV@SEGATE.SUNET.SE which contains the text
  82. SUB MHTML <your name (not your email address)>
  83.  
  84. Archives of this list are available by anonymous ftp from
  85. FTP://SEGATE.SUNET.SE in the
  86. directory /lists/mailnews-l. The archives are also available by email.
  87. Send a message to
  88. LISTSERV@SEGATE.SUNET.SE with the text INDEX MAILNEWS-L to get a list of
  89. the archive files,
  90. and then a new message GET <file name> to retrieve the archive files.
  91.  
  92. You can also browse the archives by http from
  93. HTTP://segate.sunet.se/archives/mailnews-l.html. The FTP archives are
  94. better if you want to
  95. download all messages, the HTTP archives are better if you want to
  96. browse and find a
  97. particular message only.
  98.  
  99. Finally, the archives from December 3, 1996 are also available in
  100. searchable format from URL
  101. http://www.reference.com/cgi-bin/pn/listarch?list=MAILNEWS-L@segate.sune
  102. t.se
  103.  
  104.  
  105. 2.    Status
  106.  
  107. This standard updates current email and netnews standards [RFC822],
  108. [RFC1036], [RFC1123] and [MIME].
  109.  
  110.  
  111. 3.    Introduction
  112.  
  113. Clients which can handle both email and netnews are becoming more
  114. common. Also those clients which are mainly intended for netnews often
  115. provide facilities for replying by email to the author of netnews
  116. articles. Messages are often gatewayed between netnews and email, for
  117. example by having a mailing list paralleling a newsgroup. Thus the same
  118. message is often sent to both email and netnews, or an email message is
  119. a reply to a netnews article. This standard specifies the use and
  120. interpretation of certain header information in such messages. This
  121. standard specifies three not-previously standardized email headers:
  122. "Posted-To", "Group-Reply-To" and "Personal-Reply-To" and gives
  123. additional advice on the use of other email and netnews headers. This
  124. standard also registers a global domain name, "md5.net" which should not
  125. be used except as specified in this standard.
  126.  
  127. One goal of this standard is that the recipient should be able to
  128. unambiguously identify the recipients (newsgroups and/or email) of a
  129. message and get information as a basis for decisions on where to send
  130. replies and followups to such messages.
  131.  
  132. In particular, some existing practice can cause the undesired public
  133. posting of private email messages to news. It is for this reason that a
  134. solution is necessary.  Because of the installed base of software which
  135. is based on two irreconcilable meanings of the "Newsgroups" header, when
  136. it occurs in email, it is not feasible to simply change the definition
  137. of these headers. New agents which use one of the two uses of this
  138. header might increase the likelihood of very undesirable results, in
  139. particular the undesired and unintended automatic conversion of private
  140. messages to public newsgroup postings.
  141.  
  142. This standard does not repeat information which is in the email and
  143. netnews standards [SMTP], [RFC822], [RFC1036], [RFC1123] and [MIME],
  144. except where this is needed for clarity.
  145.  
  146.  
  147. 4.    Definitions
  148.  
  149. The following terms are used in this standard. These terms may have a
  150. broader meaning in other standards, but are limited to the specific
  151. definitions within this document.
  152.  
  153. News Client        A program used by a user to read and post news.
  154.  
  155. Mail Client        A program used by a user to read and send mail.
  156.  
  157. Combined Client    A program which combines the some or all of the functions
  158.                    of a mail client and a news client.
  159.  
  160. Message            A message sent to either netnews, email or both.
  161.  
  162. Mail Message       Any message prepared by a client for transmission by mail
  163.                    only.
  164.  
  165. News Message       Any message prepared by a client for transmission by news
  166.                    only.
  167.  
  168. Combined Message   Any message which a combined agent distributes via both
  169.                    news and mail.
  170.  
  171. Group              A group of people receiving a message. A group can be a
  172.                    newsgroup (representing its subscribers), a mailing list
  173.                    (representing its subscribers), a set of nested mailing
  174.                    lists, or a number of recipient names in To, Cc or Bcc
  175.                    headers, or any combinations of these kinds of groups.
  176.  
  177. Original Message   The message to which the current message is a reply.
  178.  
  179. Root Message       A message which does not have any References, In-Reply-To
  180.                    or Supersedes headers.
  181.  
  182. Thread             The set of messages which can be found by finding all
  183.                    messages which have "References", "In-Reply-To" or
  184.                    "Supersedes" references to a certain root message, and
  185.                    continuing this operation recursively. Note that a message
  186.                    which has "In-Reply-To", "References" or "Supersedes"
  187.                    headers referring to messages in more than one thread, will
  188.                    not cause these two threads to merge into one thread.
  189.                    Successive messages, however, will in this case belong to
  190.                    more than one thread. See appendix C for an example.
  191.  
  192. Netnews Standards  See [RFC 1036]
  193.  
  194. Email Standards    See [RFC822], [RFC1123], [SMTP], [MIME]
  195.  
  196.  
  197. 5.    Headers in Combined and Converted Messages
  198.  
  199. 5.1   References and In-Reply-To
  200.  
  201. Messages which are sent at the same time to both mail and news MUST use
  202. the References field according to the definitions in netnews standards
  203. [RFC 1036], both for the copy of the message sent via email and the copy
  204. sent via netnews.
  205.  
  206. Gateways from news to mail SHOULD not modify the "References" field.
  207.  
  208. Gateways from mail to news MUST, if needed, modify the syntax of
  209. References and In-Reply-To to agree with netnews standards (where the
  210. "phrase" variant is not allowed).
  211.  
  212. Gateways from mail to news MAY transport the "References" and
  213. "In-Reply-To" header unchanged except for necessary syntax changes
  214. ("phrase" is not allowed in netnews). If they are able to do it
  215. correctly, they MAY convert the "References" and "In-Reply-To" field
  216. contents from the usage specified for email to the usage specified for
  217. netnews. Note that such a conversion requires a check on the messages
  218. whose Message-ID are given in the "References" and "In-Reply-To" field,
  219. and this check may have to be performed recursively all the way back to
  220. the root message of a thread (since the netnews usage of the
  221. "References" field requires the "References" field to contain the first,
  222. the last and as many as possible of the intermediate earlier messages in
  223. the thread, see [RFC 1036] clause 2.2.5). Thus, such a conversion is not
  224. easy to perform. Conversion should not be done unless the gateway is
  225. capable of doing it correctly.
  226.  
  227. Netnews messages can get replies, which are sent only as personal mail
  228. and are not to be gatewayed to netnews. Such replies SHOULD use the
  229. netnews (? or email?) conventions for "References" and "In-Reply-To".
  230.  
  231. Email replies to news messages MAY indicate the newsgroup of the
  232. original message as a comment in the "In-Reply-To" header. Example:
  233.  
  234. In-Reply-To: <message.id@some.host> (article in newsgroup foo.bar)
  235.  
  236.  
  237. 5.2   Message-ID Header
  238.  
  239. The "Message-ID" header MUST [RFC1036] be used (with its netnews syntax
  240. [RFC1036]) in messages sent to netnews and in combined messages and
  241. SHOULD be used with this syntax in messages sent via email to gateways
  242. from mail to news.
  243.  
  244. A message to be gatewayed from email to netnews may lack a "Message-ID"
  245. header. For creation of the Message-ID, the algorithm described in
  246. appendix B is recommended. Mail and news software should however not
  247. assume, without further checking, that a Message-ID which looks like it
  248. had been generated according to this algorithm is the same for copies of
  249. the same message which have been gatewayed at different places.
  250.  
  251.  
  252. 5.3   "Followup-To" and "Group-Reply-To" Headers
  253.  
  254. If the sender wishes to specify that further discussion on a message
  255. sent to more than one newsgroup and/or mailing list is to be sent to
  256. only one newsgroup, the "Followup-To" header MUST be used according to
  257. netnews conventions in both the email and netnews version of combined
  258. messages. It MUST only contain newsgroup names or the string "poster",
  259. never email addresses, not even email addresses which are gatewayed to
  260. newsgroups.
  261.  
  262. If the sender of a message wants followups, intended for the group of
  263. people who saw the replied-to article, to be sent to a mailing-list,
  264. this SHOULD be indicated using the "Group-Reply-To" header. The
  265. "Group-Reply-To" header has the same syntax as the "Reply-To" header in
  266. email standards, thus, multiple values are allowed. The "Group-Reply-To"
  267. can be used to indicate a recommended reply-address for replies intended
  268. for the same group of people who read the original message. Like
  269. "Followup-To" in netnews, this header can suggest followups to only some
  270. of the groups who got the original message. Readers of messages that
  271. contain "Followup-To" or "Group-Reply-To" headers, who want to read
  272. followups, should ensure that they are subscribed to one of the
  273. newsgroups in "Followup-To" or one of the mailing lists in
  274. "Group-Reply-To".
  275.  
  276. If the sender wants group followups to be sent to both a newsgroup and a
  277. mailing-list, both a Followup-To and a Group-Reply-To header can be
  278. used. This SHOULD however not be done if there is a gateway between the
  279. mailing-list and the newsgroup.
  280.  
  281. A person who sends a message to a mailing list, and does not want to get
  282. group replies except via this list, can include the list name in a
  283. "Group-Reply-To" header. If this person wants group replies both
  284. directly to his e- mail address and through the list, or if the person
  285. does not subscribe to the list, s/he can put both his/her personal
  286. e-mail address and the mailing list name in a "Group-Reply-To" header.
  287.  
  288. If "Group-Reply-To" refers to a mailing list which is run in parallel
  289. with a newsgroup, gateways from mail to news may translate the
  290. "Group-Reply-To" mailing list to its newsgroup equivalent in a
  291. "Followup-To" clause, and gateways from news to mail may translate the
  292. "Followup-To" clause to the equivalent "Group-Reply-To" header referring
  293. to its parallel mailing list.
  294.  
  295. The "Reply-To" header in e-mail is unfortunately used in two conflicting
  296. ways: (A) to indicate a replacement for the author as recipient of
  297. personal replies, (B) as specified above for "Group-Reply-To". Because
  298. of this, it SHOULD be phased-out, and replaced by the more explicit
  299. headers "Personal-Reply-To" and "Group-Reply-To". However, because of
  300. the wide usage of "Reply-To" (in both meanings) its phasing-out may take
  301. some years. "Personal-Reply-To" can be used both in e-mail and netnews
  302. to indicate where personal replies should be sent.
  303.  
  304.  
  305. 5.4   "Posted-To" header
  306.  
  307. This standard defines the new header "Posted-To".  The "Posted-To"
  308. header shall have the same syntax as the "Newsgroups" header defined in
  309. netnews standards.
  310.  
  311. The email version of a combined message MUST use the "Posted-To" header
  312. to indicate the newsgroups which this message is sent to. "Posted-To"
  313. MUST NOT be used in the netnews version of the message (there, the
  314. "Newsgroups" header is used instead). "Posted-To" must not be used for
  315. any other purpose than described here.
  316.  
  317. Gateways between netnews and email SHOULD convert the "Newsgroups"
  318. header in netnews to the "Posted-To" header in email and the reverse.
  319. Gateways which do not perform this conversion MUST remove the
  320. "Newsgroups" header from outgoing email messages and remove "Posted-To"
  321. from outgoing news articles.
  322.  
  323.  
  324. 5.5   "Newsgroups" Header
  325.  
  326. The "Newsgroups" header SHOULD not be used in email messages, even if
  327. these messages are also sent to newsgroups or are replies to news
  328. messages. If a message arriving via email has a "Newsgroups" header, the
  329. value of this header should be ignored. The value of this header shall
  330. in particular not be interpreted either to indicate the newsgroup to
  331. which this message is also posted (use Posted-To see 5.4), or to
  332. indicate the newsgroup of the original message (use a comment in the
  333. "In-Reply-To" field instead, see 5.1).
  334.  
  335. Note: the reason for this rule is that older software uses the
  336. "Newsgroups" header in either of these two very different ways in email.
  337. It is not possible to agree on a single meaning of the "Newsgroups"
  338. header in email, therefore its use is deprecated and replaced by other
  339. notation instead.
  340.  
  341.  
  342. 5.6   "Approved" Header
  343.  
  344. The "Approved" header defined in netnews standards may be used in email
  345. with the same meaning: This message has been approved by the moderator
  346. for distribution to members of a moderated group.
  347.  
  348.  
  349. 5.7   "Subject" Header
  350.  
  351. Combined messages SHOULD follow the netnews rules for the "Subject"
  352. header.
  353.  
  354. It is the responsibility of the client to create "Subject" headers which
  355. are correct. It is recommended that the netnews "Re: " convention is
  356. used also in email.
  357.  
  358.  
  359. 5.8   "Received" and "Path" headers
  360.  
  361. Email to news gateways MUST remove "Received" headers from incoming
  362. email messages while converting them to netnews. Attempts at converting
  363. "Received" headers to "Path" header MUST NOT be done. It is STRONGLY
  364. RECOMMENDED that the original email message be stored in the gateway
  365. (including all headers) for a period following processing, to allow
  366. tracing of forged or otherwise problematical articles. Netnews to email
  367. gateways MAY copy the "Path" header from the news article into the
  368. outgoing email.
  369.  
  370. Note: The "Path" header in netnews has as one of its uses to avoid
  371. duplicates of the same message. Because of this, trying to convert
  372. "Received" headers to "Path" headers might cause a message to be skipped
  373. in netnews, and that is why such conversion MUST NOT be done.
  374.  
  375.  
  376. 5.9   "Control" messages
  377.  
  378. Mail to netnews gateways should provide the ability for users to cancel
  379. articles they have used the gateway to post. To prevent the use of such
  380. gateways for illegitimate cancels, gateways should not post cancels for
  381. articles which were not posted through that gateway, and should require
  382. some authentication for cancels it does post.
  383.  
  384. For example, the gateway may generate a key which is returned to the
  385. user by email for each article posted. The user would include this key
  386. in the cancel message he sends to the gateway.
  387.  
  388.  
  389. 5.10  Other Headers
  390.  
  391. Headers defined for netnews only can occur in email, and headers defined
  392. for email can occur in netnews. An exception to this is the "Newsgroups"
  393. header, which must be handled as described in clause 5.4 and 5.5 above.
  394. Headers defined only for netnews should not be interpreted by email
  395. clients, nor should email-only headers be interpreted by news clients.
  396.  
  397. Some headers have a more restricted syntax in netnews than in email, in
  398. that case, the netnews syntax shall be used in combined messages.
  399. Gateways must restrict the syntax of such headers if they are conveyed
  400. from email to netnews.
  401.  
  402.  
  403. 5.11  Headers Mandatory in Netnews but not in Email
  404.  
  405. The following headers are mandatory in netnews but optional in email:
  406. "Newsgroups", "Subject", "Message-ID" and "Path". Combined messages
  407. SHOULD include these fields in both the mail and the netnews copy of the
  408. message, except that the "Newsgroups" header in netnews is replaced by
  409. the "Posted-To" header in email.
  410.  
  411.  
  412. 5.12  Headers Optional in Netnews and not Defined in Email
  413.  
  414. Headers optional in netnews and not defined in email may occur in email
  415. messages. Combined clients MUST, and email to news gateways SHOULD,
  416. include these optional headers in the netnews versions of any messages
  417. they post.
  418.  
  419.  
  420. 6.    Preparation of Replies to Combined Messages
  421.  
  422. Combined clients generating replies intended only for the author or for
  423. only a few email recipients shall follow the email conventions for
  424. replies and MAY indicate the newsgroup of the original message in a
  425. comment in the "In-Reply-To" clause as specified in section 5.1 of this
  426. standard.
  427.  
  428. Combined clients generating replies intended for the group who saw the
  429. original message should use the information in any "Followup-To" (or
  430. "Posted-To"/"Newsgroups" header, lacking a "Followup-To") to determine a
  431. default list of newsgroups to which the reply may be posted, and
  432. information from "Group-Reply-To" to determine a list of email
  433. recipients for group replies. The client MUST allow the user to modify
  434. any default list of email and newsgroup destinations.
  435.  
  436. "Group-Reply-To" indicates recommendations by the author of where to
  437. send group replies, when these recommendations are email addresses (or
  438. email addresses of mail gateways to newsgroups). "Followup-To" also
  439. indicates such recommendations as specified in RFC 1036. A message may
  440. include both "Followup-To" indicating a newsgroup, and "Group-Reply-To"
  441. indicating a mailing list, which for example is run in parallel with the
  442. same newsgroup or where the message is intended for recipients of both
  443. the newsgroup and the mailing list.
  444.  
  445. A client which knows that a followup will reach a mailing list in a
  446. "Group-Reply-To" header through a gateway from a newsgroup in a
  447. "Followup-To" header may send a followup only to the newsgroup, relying
  448. on the gateway to forward it to the mailing list. In this way, the risk
  449. of recipients getting multiple copies of the message can be reduced. If
  450. the client is not sure this will work, it should send the followup to
  451. both "Followup-To" and "Group-Reply-To" recipients.
  452.  
  453. The choice of the appropriate recipients for a reply to the same group
  454. as the original message is not always easy, and good user interfaces
  455. will help users by clarifying to them what they are doing and where
  456. their reply will be sent, and make the user aware if s/he is moving a
  457. mail discussion to a news discussion or the reverse.
  458.  
  459. In particular, any "Newsgroups" header in an email message SHOULD NOT be
  460. used as an indication that the original message has been sent to this
  461. newsgroup. Use of the "Newsgroups" header can otherwise easily result in
  462. a reply to a private message being sent to a newsgroup even though the
  463. original message was not sent to this newsgroup.
  464.  
  465.  
  466. 7.    Cooperating Clients and Gateways
  467.  
  468. If an email client is designed to cooperate with a certain gateway from
  469. email to netnews, then messages sent only between clients of this type
  470. and gateways of this type may employ additional information, not
  471. standardized here, to improve the cooperation between them. Such
  472. additional information MUST not be specified in ways which can cause
  473. misunderstandings if the message gets to other than the specified
  474. cooperating recipients.
  475.  
  476.  
  477. 8.    Security considerations
  478.  
  479. This standard will reduce the risk of various unexpected results for
  480. combined messages. Some existing risks in email and netnews may stay
  481. even with this standard, but no new risks are expected as a result of
  482. this standard. In general, increased transportation of messages between
  483. news and email may mean that existing risks in news are propagated to
  484. email or the reverse, but these risks would not be reduced by the lack
  485. of a standard for such combined messages.
  486.  
  487. One security problem is that many Usenet News servers will totally
  488. reject an incoming article, if the server already has an article with
  489. the same Message-ID. This is of course proper if the new copy is
  490. destined for the same newsgroup, but if the new copy is destined for
  491. another newsgroup, the proper handling would be to distribute it to that
  492. group, but not to the group where it already appears.
  493.  
  494. Newsgroup servers SHOULD accept articles even if the server already has
  495. an article with the same Message-ID, but only if the new article has as
  496. recipient some newsgroup where this message is not already stored, and
  497. then only distribute the new copy to the new newsgroup. Until all Usenet
  498. News servers have been modified to work this way, there is a security
  499. risk with gatewaying mailing lists to news, in that a message sent to
  500. more than one mailing lists, which are gatewayed to news at different
  501. hosts, might not get to both newsgroups. The best way to handle this
  502. problem is to change the behavious of news servers. An alternate
  503. solution might be to change the Message-ID in gateways, but this
  504. alternative has obvious drawbacks and is not recommended.
  505.  
  506. The algorithm for generating Message-IDs for messages lacking them can
  507. slightly increase this security risk, but since most messages have
  508. Message-IDs, the problem is there with or without this algorithm.
  509.  
  510.  
  511. 9.    Acknowledgments
  512.  
  513. This standard is based on an earlier draft written by John Stanley.
  514.  
  515.  
  516. 10.   References
  517.  
  518. Ref.          Author, title                         IETF status (May 1997)
  519.                                                     ----------------------
  520. ---           -------------
  521.  
  522. [SMTP]        J. Postel: "Simple Mail Transfer      Standard, Recommended.
  523.               Protocol", STD 10, RFC 821, August
  524.               1982.
  525.  
  526. [RFC822]      D. Crocker: "Standard for the         Standard, Recommended.
  527.               format of ARPA Internet text
  528.               messages." STD 11, RFC 822, August
  529.               1982.
  530.  
  531. [RFC1036]     M.R. Horton, R. Adams: "Standard      Non-standard (but still
  532.               for interchange of USENET             widely used as a de-facto
  533.               messages", RFC 1036, December         standard).
  534.               1987.
  535.  
  536. [RFC1123]     R. Braden (editor): "Requirements     Standard, Required.
  537.               for Internet Hosts -- Application
  538.               and Support", STD-3, RFC 1123,
  539.               October 1989.
  540.  
  541. [MIME]        N. Freed, N. Borenstein and           Draft Standard, elective.
  542.               others, "Multipurpose Internet
  543.               Mail Extensions (MIME) Part One to
  544.               Five, RFC 2045 to 2049.
  545.  
  546. [MD5]         Rivest, R., "The MD5                  Non-standard
  547.               Message-Digest Algorithm", RFC
  548.               1321, MIT Laboratory for Computer
  549.               Science and RSA Data Security,
  550.               Inc., April 1992.
  551.  
  552. [CMD5]        J. Myers, M. Rose: The Content-MD5    Draft standard, Elective
  553.               Header. RFC 1864, October 1995.
  554.  
  555.  
  556. 11.   Author's Addresses
  557.  
  558. Jacob Palme                        Phone: +46-8-16 16 67
  559. Stockholm University/KTH           Fax: +46-8-783 08 29
  560. Electrum 230                       Email: jpalme@dsv.su.se
  561. S-164 40 Kista, Sweden
  562.  
  563.  
  564. Appendix A: Examples
  565.  
  566. A.1 One Combined Message in two Instances.
  567.  
  568. The following is an example of a combined message, sent both to a
  569. newsgroup comp.lang.c and via e-mail to a person mary@foo.bar when
  570. transported via netnews:
  571.  
  572.    Newsgroups: comp.lang.c
  573.    To: mary@foo.bar
  574.    Date: 7 Jan 1997 12:34:21 +0000 (GMT)
  575.    Subject: A message about inheritance
  576.    From: fred@somewhere.zz
  577.    Message-ID: <123zx@somewhere.zz>
  578.    Path: a.news.system!b.news.system!somewhere.zz!fred
  579.  
  580.    What is it?
  581.  
  582.  
  583. The same message when transported via email:
  584.  
  585.    Posted-To: comp.lang.c
  586.    To: mary@foo.bar
  587.    Date: 7 Jan 1997 12:34:21 +0000 (GMT)
  588.    Subject: A message about inheritance
  589.    From: fred@somewhere.zz
  590.    Message-ID: <123zx@somewhere.zz>
  591.    Path: a.news.system!b.news.system!somewhere.zz!fred
  592.  
  593.    What is it?
  594.  
  595.  
  596. A.2 Conversion Performed by Email to News Gateway.
  597.  
  598. In this case, the mailing list name is not copied to a "To:" header in
  599. netnews, since it gives the same information which the "Newsgroups:"
  600. header gives in netnews. The email message before conversion:
  601.  
  602.    Received: from ietf.org (ietf.org [132.151.1.19])
  603.              by info.dsv.su.se (8.8.5/8.8.5) with SMTP
  604.              id QAA00061 for <jpalme@dsv.su.se>;
  605.              Mon, 2 Jun 1997 16:23:10 +0200 (MET DST)
  606.    Received: from ietf.org by ietf.org id aa05468; 2 Jun 97 9:50 EDT
  607.    Received: from ietf.ietf.org by ietf.org id aa04922; 2 Jun 97 9:28
  608.              EDT
  609.    Mime-Version: 1.0
  610.    Content-Type: Multipart/Mixed; Boundary="NextPart"
  611.    To: IETF-Announce@ietf.org
  612.    Sender: ietf-announce-request@ietf.org
  613.    From: Internet-Drafts@ietf.org
  614.    Reply-to: Internet-Drafts@ietf.org
  615.    Subject: I-D ACTION:draft-leiba-imap-idle-02.txt
  616.    Date: Mon, 02 Jun 1997 09:28:44 -0400
  617.    X-Orig-Sender: cclark@ietf.org
  618.    Message-ID: <9706020928.aa04922@ietf.org>
  619.  
  620.    A Revised Internet-Draft is available from the on-line Internet-
  621.    Drafts directories.
  622.  
  623. The same message after gatewaying to netnews:
  624.  
  625.    Mime-Version: 1.0
  626.    Content-Type: Multipart/Mixed; Boundary="NextPart"
  627.    Newsgroups: comp.standards.ietf.announcements
  628.    Sender: ietf-announce-request@ietf.org
  629.    From: Internet-Drafts@ietf.org
  630.    Reply-to: Internet-Drafts@ietf.org
  631.    Subject: I-D ACTION:draft-leiba-imap-idle-02.txt
  632.    Date: Mon, 02 Jun 1997 09:28:44 -0400
  633.    X-Orig-Sender: cclark@ietf.org
  634.    Message-ID: <9706020928.aa04922@ietf.org>
  635.  
  636.    A Revised Internet-Draft is available from the on-line
  637.    Internet-Drafts directories.
  638.  
  639.  
  640. A.3 Conversion Performed by News to Email Gateway.
  641.  
  642. Original netnews article:
  643.  
  644.    Newsgroups: comp.sys.mac
  645.    From: PHLLB@leeds.ac.uk (L. Burkholder)
  646.    Subject: cocoa (formerly kidsim)
  647.    Message-ID: <4p1ul5$88k_001@leeds.ac.uk>
  648.    NNTP-Posting-Host: woolhouse_pc37.leeds.ac.uk
  649.    Organization: University of Leeds
  650.    Date: Tue, 4 Jun 1996 19:16:24 +0100 (BST)
  651.    X-Newsreader: News Xpress Version 1.0 Beta #4
  652.  
  653.    Does anyone know how to get a copy of the recently announced Apple
  654.    visual programming language Cocoa (formerly called Kidsim)?
  655.  
  656. The same message after gatewaying to email:
  657.  
  658.    Posted-To: comp.sys.mac
  659.    To: info-mac@sumex-aim.stanford.edu
  660.    From: PHLLB@leeds.ac.uk (L. Burkholder)
  661.    Subject: cocoa (formerly kidsim)
  662.    Message-ID: <4p1ul5$88k_001@leeds.ac.uk>
  663.    NNTP-Posting-Host: woolhouse_pc37.leeds.ac.uk
  664.    Organization: University of Leeds
  665.    Date: Tue, 4 Jun 1996 19:16:24 +0100 (BST)
  666.    X-Newsreader: News Xpress Version 1.0 Beta #4
  667.  
  668.    Does anyone know how to get a copy of the recently announced Apple
  669.    visual programming language Cocoa (formerly called Kidsim)?
  670.  
  671.  
  672. Appendix B: Algorithm for Assigning Message-IDs to Messages in Gateways
  673. from Email to Netnews
  674.  
  675. The intention of the following algorithm is to make it likely that the
  676. same message will get the same Message-ID even if it is gatewayed in
  677. more than one place from email to news, and to make it very unlikely
  678. that two different messages get the same Message-ID. This algorithm is
  679. only intended for gateways from email to netnews, and only when
  680. gatewaying messages which do not have a Message-ID.
  681.  
  682. Step 1: Remove all headers except From, Date, Sender, Subject.
  683.  
  684. Step 2: Compute an MD5 checksum using the algorithm described in [1].
  685.  
  686. Step 3: Encode the checksum using BASE64 encoding as specified in [2].
  687.  
  688. Step 4: Concatenate the string "@MD5.net" to the encoded string.
  689.  
  690. Note: If the message does not have any Date header, this algorithm
  691. should not be attempted, instead an algorithm giving a globally unique
  692. Message-ID based on a domain controlled by the gateway should be used.
  693.  
  694.  
  695. Appendix C: Example of two partially overlapping threads
  696.  
  697. THREAD A:                            THREAD B:
  698.  
  699. Subject: The beatles<-------+        Subject: Abba
  700. Message-ID: a1@foo.bar       \       Message-ID: b1@foo.bar
  701.           ^                   \                ^
  702.           |                    \               |
  703. References: a1@foo.bar          \    References: b1@foo.bar
  704. Subject: Re: The beatles         \   Subject: Re: Abba
  705. Message-ID: a2@foo.bar            \  Message-ID: b2@foo.bar
  706.           ^                        \           ^
  707.           |                         \          |   THREADS A+B:
  708.           |                          \         |
  709. References: a1@foo.bar, a2@foo.bar   References: a1@foo.bar, b1@foo.bar,
  710. Subject: Re: The beatles                        b2@foo.bar
  711. Message-ID: a3@foo.bar               Subject: Re: Abba and the beatles
  712.           ^                          Message-ID: ab1@foo.bar
  713.           |                                    ^
  714.           |                                    |
  715. References: a1@foo.bar, a2@foo.bar,  References: a1@foo.bar, b1@foo.bar,
  716.             a3@foo.bar                           b2@foo.bar, ab1@foo.bar
  717. Subject:    Re: The beatles          Subject: Re: Abba and the beatles
  718. Message-ID: a4@foo.bar               Message-ID: ab2@foo.bar
  719.  
  720.