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.%TESTNUMBER:%IMAPPORT/%TESTNUMBER/;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 %TESTNUMBER
A004 FETCH 1 BODY[]
A005 LOGOUT
CONNECT imap.%TESTNUMBER:%IMAPPORT HTTP/1.1
Host: imap.%TESTNUMBER:%IMAPPORT
User-Agent: curl/%VERSION
Proxy-Connection: Keep-Alive