Here's an example method that's more complex:
(nnimap "imap.gmail.com" (nnimap-inbox "INBOX") (nnimap-split-methods default) (nnimap-expunge t) (nnimap-stream ssl))
nnimapshould connect to the server. Possible values are:
sslsetting, and then tries the
nnimap-shell-programto be what you need.
anonymous. If this variable isn't set, the normal login methods will be used. If you wish to specify a specific login method to be used, you can set this variable to either
login(the traditional IMAP login method),
nil, expunge articles after deleting them. This is always done if the server supports UID EXPUNGE, but it's not done by default on servers that doesn't support that command.
nil, fetch partial articles from the server. If set to a string, then it's interpreted as a regexp, and parts that have matching types will be fetched. For instance, ‘"text/"’ will fetch all textual parts, while leaving the rest on the server.
nil, record all IMAP commands in the ‘"*imap log*"’ buffer.