Is like Imap handshake ssl over QSslSocket is comming data clean text or binary file..
Incomming data mail like 7MB or over...

Imap protocol is like chat and many data

You can red the imap server QT https://code.google.com/p/omapd/
and client the are so many possibility to talk and send file and over many free port nr.

Qt Code:
  1. : ("Server:* OK Gimap ready for requests from 2141.60.43.3234 a46if15970528eei.95
  2. ", "Client:C001 CAPABILITY
  3. ", "Server:* CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH AUTH=XOAUTH2 AUTH=PLAIN AUTH=PLAIN-CLIENTTOKEN
  4. ", "Server:C001 OK Thats all she wrote! a46if15970528eei.95
  5. ", "Client:A002 AUTHENTICATE PLAIN *encodeddata_user_pass*
  6. ", "Server:* CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE CONDSTORE ESEARCH
  7. ", "Server:A002 OK username@gmail.com Peter Spencer authenticated (Success)
  8. ", "Client:L001 LIST "" "*"
  9. ", "Server:* LIST (\HasNoChildren) "/" "INBOX"
  10. ", "Server:* LIST (\Noselect \HasChildren) "/" "[Gmail]"
  11. ", "Server:* LIST (\HasNoChildren \Drafts) "/" "[Gmail]/Bozze"
  12. ", "Server:* LIST (\HasNoChildren \Trash) "/" "[Gmail]/Cestino"
  13. ", "Server:* LIST (\HasNoChildren) "/" "[Gmail]/Draft"
  14. ", "Server:* LIST (\HasNoChildren \Important) "/" "[Gmail]/Importanti"
  15. ", "Server:* LIST (\HasNoChildren \Sent) "/" "[Gmail]/Posta inviata"
  16. ", "Server:* LIST (\HasNoChildren \Junk) "/" "[Gmail]/Spam"
  17. ", "Server:* LIST (\HasNoChildren \Flagged) "/" "[Gmail]/Speciali"
  18. ", "Server:* LIST (\HasNoChildren \All) "/" "[Gmail]/Tutti i messaggi"
  19. ", "Server:L001 OK Success
  20. ", "Client:M002 SELECT INBOX
  21. ", "Server:* FLAGS (\Answered \Flagged \Draft \Deleted \Seen NonJunk Junk)
  22. ", "Server:* OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen NonJunk Junk \*)] Flags permitted.
  23. ", "Server:* OK [UIDVALIDITY 1] UIDs valid.
  24. ", "Server:* 5 EXISTS
  25. ", "Server:* 0 RECENT
  26. ", "Server:* OK [UIDNEXT 202] Predicted next UID.
  27. ", "Server:* OK [HIGHESTMODSEQ 66770]
  28. ", "Server:M002 OK [READ-WRITE] INBOX selected. (Success)
  29. ", "Client:U501 FETCH 1 (BODY[])
  30. ", "Client:U501 FETCH 2 (BODY[])
  31. ", "Client:U501 FETCH 3 (BODY[])
  32. ", "Client:U501 FETCH 4 (BODY[])
  33. ", "Client:U501 FETCH 5 (BODY[])
  34. ")
To copy to clipboard, switch view to plain text mode