Professional Documents
Culture Documents
UNIVERSITY OF PUNE
SEMINAR REPORT ON
NAME
KUNAL . R . CHIGARE
CLASS
BE - I
ROLL NO
109
YEAR
2002-2003
CERTIFICATE
This is to certify that
Mr. Kunal . R . Chigare
Has completed the necessary seminar work and prepared the bonafied report
on
INERNET MESSAGE ACCESS PROTOCOL ( IMAP )
in a satisfactory manner as partial fulfillment for requirement of the degree
of
B.E (Computer)
Of
University of Pune In the academic year 2002-2003
Date:
Place
Prof. G P Potdar
Seminar coordinator
CONTENTS
Preface.iv
Acknowledgement...v
1. IMAP : BRIEF OVERVIEW AND HISTORY....1
IMAP.
IMAP Features.
IMSP Features.
IMAP History & Status.
2.WHAT IS IMAP....4
IMAP definition
Key goals and operations
3. MESSAGE ACCES PARADIGMS.6
Modes of operation
Message access protocols
Protocol requirements
4. SYNCHRONIZATION OPERATIONS FOR..14
DISCONNECTED IMAP CLIENTS
Design principles
Overall picture of synchronization
Normal synchronization
5. POP AND IMAP...23
Similarities between POP & IMAP
IMAP Advantages
IMAP Disadvantages
6. IMAP : THE FUTURE OF THE INTERNET MAIL..30
Advantages of IMAP revolution
Conclusion
REFERENCES37
Acknowledgement
I express my sincere thanks and heartfelt gratitude to my internal
guide
Prof. R.B. Ingle for his efforts and help in my Seminar.
Special thanks to Prof. Girish Potdar for there tremendous help through
out the seminar.
I wish to record my thanks to Prof. C.V.K. Rao (H.O.D, Computer
Science Dept.) for his support and co-operation extending to me during
this work.
Also I am very thankful to my friends for their timely help and
useful suggestions.
PREFACE
Internet mail has escaped the academic world to become
dominant basis for electronic mail world-wide . While the World-Wide Web
and http/html continue to get attention for their many and sundry uses .
electronic mail quietly remains the predominant mission-critical use of the
internet , and its growth path matches or exceeds that of the web.
Among the many growth trends associated with internet
email , two have developed as particularly troublesome to managers and
administrators of existing mail systems ,the rapid upward scaling of users
,data ,administrative units,
And the mobility of users as they move between home , office and travel in
various states of connectivity.
IMAP ( The Internet Message Access Protocol ) has emerged
as the corner step technology of so-called enterprise internet mail , largely
because the model and depth of the IMAP protocol provide solutions to the
user and administrator problems associated with scaling and mobility. From
its origins at Stanford University and the University of Washington and
Carnegie Mellon University , IMAP is now embraced by companies ranging
from dozens of small start-ups to Netscape , Microsoft , Apple , HP , and Sun .
IMAP is the future of internet mail technologies.
2. IMAP Features
3. IMSP Features .
2. WHAT IS IMAP
IMAP stands for Internet Message Access Protocol . It is a method of
accessing electronic mail for bulletin board messages that are kept in a
( possibly shared ) mail server. In other words it permits a client email
program to access remote message stores as if they were local. For example
email stored on IMAP server can be manipulated from a desktop computer at
home , a workstation at the office , and a notebook computer while traveling
without the need to transfer messages or files back and forth between these
computers.
IMAP s ability to access messages ( both new and saved ) from more than
one computer has become extremely important as reliance on electronic
messages and use of multiple computer increase , but this functionally cannot
be taken for granted : the widely used Post Office Protocol ( POP ) works
best when one has only a single computer , since it was designed to support
offline message access , wherein messages are downloaded and then
detected from the mail server . This mode of access is not compatible with
access from multiple computers since it tends to sprinkle messages across all
of the computers used for mail access . Thus unless all of those machines
share a common file system , the offline mode of access that POP was
designed to support effectively ties the user to one computer for the message
storage and manipulation.
IMAP is centered on the notion the server is your primary mail repository.
Messages are always retained in the server. The client may issue commands
to download them , access and set message state information , but the server
always maintains the mailboxes . The protocol also provides for the entire
machine.
Accordingly a distributed messaging architecture that
accommodates personal computer usage paradigms is of interest . However
before specific client-server protocols to support such an architecture , it is
important to understand the different ways messaging clients and servers
might be used .
The Internet document RFC-1733 defines three modes of
operation , or message access paradigms , in a disturbed messaging system :
Offline
Online
Disconnected
You can think of office operation as providing a store-andforward service , where the last hop transmission is initiated by the user via a
mail program in the final destination host. It is intended to move mail ( on
demand ) from an intermediate server ( drop point ) to a single destination
machine , usually a PC or Mac . Once successfully delivered to the users
machine , the messages are declared from the mail server.
The offline model shines when a person always accesses their
mail from a single computer and is content to have the primary copy of their
messages live on that single machine . If however one needs to access their
message store from different times , or if they wish to keep the message store
* on a different machine than one they directly interact with , then the offline
model is inappropriate.
A growing fraction of e-mail users have one machine at work and a
different one at home , and a different one at home , and possibly also a
laptop for travel . We fell that such users would , if given a choice , prefer
online and disconnected access , and would choose offline access only when
connect time and /or server resources are at a premium . And while online
access
requires roughly the same connect times as offline access .A preference fro
offline access can not be inferred from its present market share , because
much of the user community has never been offered the choice .
NOTE :
Although it is tempting to think that a remote file system protocol is the best
solution to the problem of accessing remote message stores , there are some
problems with that strategy :
File system protocols are tightly bound to the operating system and
installation can sometimes be invasive.
Insulate the client program from the file format used on the server.
The Post Office Protocol ( POP ) was designed to support offline mail
processing .In the offline paradigm , mail is delivered to a ( usually shared )
server and a personal computer user periodically invokes a mail client
program that connects to the server and downloads all of the pending mail to
the users own machine . Thereafter , all mail processing is local to the client
machine .Think of the offline access mode as a kind of store-and-forward
service , intended to move mail( on demand ) from the mail server ( drop point
) to a single destination machine , usually a PC or Mac. Once delivered to the
Pcs or Macs , the messages are then deleted from the mail server .Although
the limitations of offline access have triggered interest in using POP in online
( or disconnected ) operation .Indeed , POP s pseudo online mode of
operation , wherein client protocol in order for the mail client to access or
PROTOCOL
REQUIRMENTS
FOR
ONLINE
AND
DISCONNECTED
OPERRATION.
Retrieving
and
updating
personal
information .
configuration
make efficient use of the network connection , both in the usual sense
( not generating spurious traffic ) and in the sense that we would prefer
not to have the connection sitting idle while the client and/or the server is
performing strictly local computation or I/O . Another , perhaps simpler
way of stating this is that we assume that network connections are
expensive.
client operations should be performed using UID s , so that the client can
be sure that it and server are talking about the same messages during the
synchronization process. It is permissible , but probably not useful , for a
disconnected client to use message numbers once it has obtained a valid
current mapping between UID s and message numbers.
DMSP
client
then deletes message A2 in mail box A , the human will expect that
message A1 is gone and that message A2 is still present but its now
deleted.
is that set of
the messages UID and FLAGS .Other likely candidates are the RFC822.SIZE and BODYSTRUCTURE data items and the RFC-822
Note that this step is also where the client finds out about
changes to the flags of messages that the client already has in its local
cache , as well as finding out about messages in the local cache that
no longer exist on the server ( i.e. messages that have been expunged ).
no more valid . The client should then empty the local cache of that mailbox
and remove any pending
actions which refer to the UID s in that mailbox . The client may also
issue a warning to the human.
tag1 UID FETCH < last seen + 1> : * < descriptors >
can do with this mailbox until the responses to the first command start
arriving . A clever synchronization program might use this time to fetch its
local cache state from the disk , or start the process of synchronizing another
mailbox.
Once the descriptors start arriving, the client can start issuing
appropriate FETCH commands for interesting messages or body parts
thereof. The decision on what is an interesting message is up to the client
software and the human. One easy criterion that should probably be
implemented in any client is whether the message is too big for automatic
retrieval, where too big is a parameter defined in the clients configuration
file .It is important to note that fetching a message into the disconnected
clients local cache does NOT imply that the human has (or even will)
read the message . Thus the synchronization program for a disconnected client
should always be careful to use the PEEK variants of the FETCH data items
that implicitly set the / seen flag.
Once the last descriptor has arrived and the last FETCH
command has been issued , the client simply needs to process the incoming
fetch items using them to update the local message cache .
messages
silly position of deleting and possibly expunging its cached copy of a message
, then fetching an identical copy via the network.
Fortunately , there is a relatively easy way around this
problem by including the Message-ID: header and the INTERNALDATE
data item as part of the descriptor of a new message against messages that
are already in its cache and avoid fetching the extra copy. Of course its
possible that the cost of checking to see if the message is already in the local
cache may exceed the cost of just fetching it , so this technique should not be
used blindly. If the MUA implements a move command , it make special
provisions to use this technique when it knows that a copy / delete sequence
is the result of a move command .
Since its theoretically possible for this algorithm to find the
wrong message ( given sufficiently malignant Message ID headers ) ,
implementers should provide a way to disable this
permanently and on a message-by-message basis.
optimization , both
IMAP ADVANTAGES.
The functional areas where POP is weak, with respect to online /
disconnected operation, are strengths for IMAP, since online access was its
original design center. Specific advantages of IMAP over POP (for
online/disconnected use) include:
Remote Folder Manipulation:
and the mailbox format. In particular, the mailbox format must permit
concurrent status flag updates from different sessions, and the message
access protocol must provide for notification
of each user session when a status flag changes. IMAP differs from many
client server protocols in that the responses from a server may not be a
direct result of requests from one's own clients; the server must be able to
send "unsolicited data to any client to inform it of mailbox state changes.
Note that in practice, shared folder support also requires that the protocol
permit access to multiple folders.
Another example of mailbox state change is new mail
notification . In IMAP, when a client program performs any operation on
a mailbox, the server will automatically include in its response notification
of any new messages that have arrived since the last notification.
Implications of multiple folder support...
A key objective of online and disconnected operation is to support
message access from different computer from different times. This
includes knowledge workers with one computer in the office and a
different one at home, as well as "nomadic students who must rely on lab
machines which do not have any local per - user storage.
Thus, the ability to "manipulate remote folders other than INBOX
is fundamental to online and disconnected operation. This means being
able to save messages from one folder to a different one , being able to
IMAP DISADVANTAGES:
Message integration:
Everything in the message architecture can be integrated via
IMAP: Usenet news can be fed into shared folders and read as email
.Mailing lists and mailing list digests world just like Usenet news .Hold
bulletin board discussions with friends and co workers.
Mobility and persistent access to user data:
With ACAP and IMAP together, you will be able to store data not
in MIME and internet mail message format on the network .Keep your
Netscape bookmarks there, for sharing and for access on the road .Keep
company data, to-do lists schedules.
CONCLUSION.
The key points are that:
operation.
The key virtue of the offline message access paradigm is that it minimizes
server connect time and server disk requirements .However , offline mode
works best for the people who use single client machine all the time ;its
not suited for the goals of accessing ones camping or saved messages
folder from different machines at different times .If one realizes on a
remote file system protocol to access message data on different machine
,this is really " online mode in disguise" -- but without the advantages of
the application specific protocol turned for online and disconnected
operation.
IMAP is such an application -specific protocol; a client
server messaging protocol designed to permit manipulation of the remote
mail boxes as if they were local .In addition to fully supporting the offline
access paradigm, it offers capabilities that are essential for proper online
message access, and which cannot be achieved with POP mailers unless
they also use general file system protocols to provide location-independent
access to message archives and message status information.
REFERNCES :
[1] www.linktionary.com/i/imap.html.
[2] www.imc.org.
[3] www.imc.org/fcs.html.
[4] www.ema.org.
[5] www.imap.org
[6] www.washington.edu/imap
[7] www.emailman.com
[8] www.screen.com/start/guide/email.html.
[9] www.idm.internet.com/foundation/imap4.html.
[10] Computer networks - Tenunbaum