~jhd/.mail
), but not the way that
MTAs interact with each other, since that is specified by the SMTP
protocol.
IMAP views the ``mailbox'' as a sequence of (possibly hierarchically-nested) folders, each containing messages and one of which is the ``inbox'', and provides facilities to list the contents of a folder, to retrieve header information about a message (without retrieving the whole message: important if there's a 5Mb attachment!), to retrieve the whole message, to delete/copy messages and so on (24 commands in all). To send messages, the user agent becomes an MTA and communicates the message via SMTP (generally to a relay MTA, as in the top half of Figure 28.3).
IMAP user agents tend to assume that TCP/IP connections to the IMAP server (port 143) are always open, and that SMTP (port 25) connections to the relay MTA (which could, but need not, be the same machine) are always possible.