[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 330
  • Last Modified:

Viewing actual Communication between IMAP client and Server

I have created an IMAP mail client using the available Indy Components.

All of you guys familiar with IMAP will know that IMAP works using a bunch of commands sent from the client to the server to open a mailbox/get/delete mail etc.

What i would like to do is actually view my client sending these commands.By this I mean I would like to see the actual communication between the client and server whilst running my application in Delphi.

I would like to see this for example:

S: Welcome to IMAP server...please login
C:001 LOGIN 'usernaem' 'password'

bla bla

Is it possible to view this in some sort of console? I am sure Delphi must offer a testing tool which will allow me to do this!

Thanks guys


  • 2
1 Solution
I'm not sure that Delphi does.  You certainly have the option of a packet sniffer (such as Ethereal: http://www.ethereal.com/).  The Indy components also allow for interceptor classes - one of which I believe allows for the input/output of the communications to file in addition to the normal communication path, Indy help files are compiled and available at http://www.indyproject.org/Docs/index.iwp.  Be sure to check which version of Indy you are using.
alexeijamesAuthor Commented:
Yo Barthax!

Genius!!!! It worked perfectly! I installed ethereal and applied a filter to view only Imap Packets!

Precisely what i wanted.


Thankyou very much

No problem. :)

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now