We have a COBOL program that we use to send emails from our system written in COBOL. It uses SMTP to link to email servers via a Socket using C$SOCKET and works well. We even send binary attachments using base-64 conversion. Now this works fine and was based on the example program sendmail.
We now have a new requirement to access a specific email address, and we want to retrieve all emails sent to it, and update our system creating a service call. Has anyone else done this? Is there an example COBOL source code that does this? I have looked for one but have not found anything.
Any help would be most appreciated.