rfc1733.models_in_IMAP4.txt 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. Network Working Group M. Crispin
  2. Request for Comments: 1733 University of Washington
  3. Category: Informational December 1994
  4. DISTRIBUTED ELECTRONIC MAIL MODELS IN IMAP4
  5. Status of this Memo
  6. This memo provides information for the Internet community. This memo
  7. does not specify an Internet standard of any kind. Distribution of
  8. this memo is unlimited.
  9. Distributed Electronic Mail Models
  10. There are three fundamental models of client/server email: offline,
  11. online, and disconnected use. IMAP4 can be used in any one of these
  12. three models.
  13. The offline model is the most familiar form of client/server email
  14. today, and is used by protocols such as POP-3 (RFC 1225) and UUCP.
  15. In this model, a client application periodically connects to a
  16. server. It downloads all the pending messages to the client machine
  17. and deletes these from the server. Thereafter, all mail processing
  18. is local to the client. This model is store-and-forward; it moves
  19. mail on demand from an intermediate server (maildrop) to a single
  20. destination machine.
  21. The online model is most commonly used with remote filesystem
  22. protocols such as NFS. In this model, a client application
  23. manipulates mailbox data on a server machine. A connection to the
  24. server is maintained throughout the session. No mailbox data are
  25. kept on the client; the client retrieves data from the server as is
  26. needed. IMAP4 introduces a form of the online model that requires
  27. considerably less network bandwidth than a remote filesystem
  28. protocol, and provides the opportunity for using the server for CPU
  29. or I/O intensive functions such as parsing and searching.
  30. The disconnected use model is a hybrid of the offline and online
  31. models, and is used by protocols such as PCMAIL (RFC 1056). In this
  32. model, a client user downloads some set of messages from the server,
  33. manipulates them offline, then at some later time uploads the
  34. changes. The server remains the authoritative repository of the
  35. messages. The problems of synchronization (particularly when
  36. multiple clients are involved) are handled through the means of
  37. unique identifiers for each message.
  38. Crispin [Page 1]
  39. RFC 1733 IMAP4 - Model December 1994
  40. Each of these models have their own strengths and weaknesses:
  41. Feature Offline Online Disc
  42. ------- ------- ------ ----
  43. Can use multiple clients NO YES YES
  44. Minimum use of server connect time YES NO YES
  45. Minimum use of server resources YES NO NO
  46. Minimum use of client disk resources NO YES NO
  47. Multiple remote mailboxes NO YES YES
  48. Fast startup NO YES NO
  49. Mail processing when not online YES NO YES
  50. Although IMAP4 has its origins as a protocol designed to accommodate
  51. the online model, it can support the other two models as well. This
  52. makes possible the creation of clients that can be used in any of the
  53. three models. For example, a user may wish to switch between the
  54. online and disconnected models on a regular basis (e.g. owing to
  55. travel).
  56. IMAP4 is designed to transmit message data on demand, and to provide
  57. the facilities necessary for a client to decide what data it needs at
  58. any particular time. There is generally no need to do a wholesale
  59. transfer of an entire mailbox or even of the complete text of a
  60. message. This makes a difference in situations where the mailbox is
  61. large, or when the link to the server is slow.
  62. More specifically, IMAP4 supports server-based RFC 822 and MIME
  63. processing. With this information, it is possible for a client to
  64. determine in advance whether it wishes to retrieve a particular
  65. message or part of a message. For example, a user connected to an
  66. IMAP4 server via a dialup link can determine that a message has a
  67. 2000 byte text segment and a 40 megabyte video segment, and elect to
  68. fetch only the text segment.
  69. In IMAP4, the client/server relationship lasts only for the duration
  70. of the TCP connection. There is no registration of clients. Except
  71. for any unique identifiers used in disconnected use operation, the
  72. client initially has no knowledge of mailbox state and learns it from
  73. the IMAP4 server when a mailbox is selected. This initial transfer
  74. is minimal; the client requests additional state data as it needs.
  75. As noted above, the choice for the location of mailbox data depends
  76. upon the model chosen. The location of message state (e.g. whether
  77. or not a message has been read or answered) is also determined by the
  78. model, and is not necessarily the same as the location of the mailbox
  79. data. For example, in the online model message state can be co-
  80. located with mailbox data; it can also be located elsewhere (on the
  81. client or on a third agent) using unique identifiers to achieve
  82. Crispin [Page 2]
  83. RFC 1733 IMAP4 - Model December 1994
  84. common reference across sessions. The latter is particularly useful
  85. with a server that exports public data such as netnews and does not
  86. maintain per-user state.
  87. The IMAP4 protocol provides the generality to implement these
  88. different models. This is done by means of server and (especially)
  89. client configuration, and not by requiring changes to the protocol or
  90. the implementation of the protocol.
  91. Security Considerations
  92. Security issues are not discussed in this memo.
  93. Author's Address:
  94. Mark R. Crispin
  95. Networks and Distributed Computing, JE-30
  96. University of Washington
  97. Seattle, WA 98195
  98. Phone: (206) 543-5762
  99. EMail: MRC@CAC.Washington.EDU
  100. Crispin [Page 3]