IMAP - PowerPoint PPT Presentation

1 / 15
About This Presentation
Title:

IMAP

Description:

Stands for accessing electronic mail that are kept on a server ... C: a001 login TIM timmy. S: a001 OK LOGIN completed. C: a002 select inbox. S: * 18 EXISTS ... – PowerPoint PPT presentation

Number of Views:728
Avg rating:3.0/5.0
Slides: 16
Provided by: christian144
Category:
Tags: imap | timmy

less

Transcript and Presenter's Notes

Title: IMAP


1
IMAP
  • internet message access protocol

2
content
  • about imap
  • procedure of the imap protocol
  • interaction between client and server
  • flags message attributes
  • different states of an imap session
  • state diagram
  • commands
  • example of an imap session

3
about imap
  • Internet message access protocol
  • 1986, Stanford University
  • Stands for accessing electronic mail that are
    kept on a server
  • access messages from more than one computer
  • More than one user
  • Imap protocol based on a TCP connection (port
    143)
  • No functionality to send messages (realized with
    SMTP)

4
Procedure of the imap protocol
  • All emails are kept on a mail server
  • Functionality
  • Treat as local directory
  • work directly on server
  • copy
  • delete
  • different folders
  • download message headers and later on the full
    messages

5
Procedure of the imap protocol 2
  • communication procedure
  • Connection initialization
  • Welcome of the server
  • Interaction between client and server
  • Connection closed

6
Interaction between client and server
  • Client sends data - server receives
  • client-command begins with alphanumeric string
    (tag) e.g. A001 which is created for every new
    command
  • then the command with corresponding arguments
    follows
  • Server sends data client receives
  • Server receives and works with the command
  • Returns the same tag with a state (OK/NO/BAD)
  • Additional information begin with (untagged)
  • Untagged in formation can be sent at every time

7
Different states of an imap session
  • Most commands are only valid in special states
    (otherwise protocol error)
  • 4 states (initialization is not an own state)
  • Non-Authenticated
  • Authenticated
  • Selected
  • Logout, Closed

8
State diagram
Reject con.
9
Flags message attributes
  • List of token associated with the message that is
    sent by the server
  • A flag can be permanent or session-only
  • types
  • System flag
  • flag name that is pre-defined in the imap
    specification
  • All system flags begin with \
  • Keywords
  • A keyword is defined by the server implementation
  • Keywords do not begin with \

10
Flags Message Attributes 2
  • \Seen (Message has been read)
  • \Answered (Message has been answered)
  • \Flagged (Message is "flagged" for urgent/special
    attention)
  • \Deleted (Message is "deleted" for removal by
    later EXPUNGE)
  • \Draft (Message has not completed composition
    (marked as a draft))
  • \Recent (Message is "recently" arrived in this
    mailbox. This session is the first session to
    have been notified about this message)

11
commands
  • LOGIN username password
  • SELECT mailbox-name
  • CREATE new-mailbox-name
  • DELETE mailbox-name
  • RENAME old-name new-name
  • AUTHENTICATE
  • CLOSE
  • SEARCH
  • COPY

12
imap session
  • S OK IMAP4rev1 Service Ready
  • C a001 login TIM timmy
  • S a001 OK LOGIN completed
  • C a002 select inbox
  • S 18 EXISTS
  • S FLAGS(\Answered\Flagged\Deleted\Seen\Draft)
  • S 2 RECENT
  • S OK UNSEEN 17 Message 17 is the first
    unseen message
  • S OK UIDVALIDITY 3857529045 UIDs valid
  • S a002 OK READ-WRITE SELECT completed
  • C a003 fetch 12 bodyheader
  • S 12 FETCH (BODYHEADER 350
  • S Date Wed, 19 May 2003 022325 -0700 (PDT)
  • S From christiane ltchristiane_at_schmidt.degt
  • S Subject weekend planning

13
imap session 2
  • S To steffen ltsteffen_at_grunwald.degt
  • S cc steffen ltsteffen_at_diehl.degt
  • S Message-Id ltB27397-0100000_at_TIM01.degt
  • S MIME-Version 1.0
  • S Content-Type TEXT/PLAIN CHARSETUS-ASCII
  • S
  • S )
  • S a003 OK FETCH completed
  • C a004 store 12 flags \deleted
  • S 12 FETCH (FLAGS (\Seen \Deleted))
  • S a004 OK FLAGS completed
  • C a005 logout
  • S BYE IMAP4rev1 server terminating connection
  • S a005 OK LOGOUT completed

14
eom
  • Thank you for your attention!

15
references
  • Tanenbaum Computernetzwerke
  • IMAP4rev1 Protocol Specification
  • Links
  • www.imap.org
  • www.informatik.uni-hamburg.de/RZ/netz/mail/imap.sh
    tml
  • courses.iicm.edu/hkrott/docs/nwa-ws2002/vortraege
    -20030124.pdf
Write a Comment
User Comments (0)
About PowerShow.com