IMAP
FETCH
HTTP
HTTP CONNECT
HTTP proxy
#
# Server-side
HTTP/1.1 200 Mighty fine indeed
imap: sure hit me
From: me@somewhere
To: fake@nowhere
body
--
yours sincerely
From: me@somewhere
To: fake@nowhere
body
--
yours sincerely
#
# Client-side
imap
http-proxy
http
proxy
IMAP FETCH tunneled through HTTP proxy
'imap://imap.1321:%IMAPPORT/1321/;MAILINDEX=1' -u user:secret -p -x %HOSTIP:%PROXYPORT
#
# Verify data after the test has been "shot"
A001 CAPABILITY
A002 LOGIN user secret
A003 SELECT 1321
A004 FETCH 1 BODY[]
A005 LOGOUT
CONNECT imap.1321:%IMAPPORT HTTP/1.1
Host: imap.1321:%IMAPPORT
User-Agent: curl/%VERSION
Proxy-Connection: Keep-Alive