I am trying to listen to a mail box where I can obtain an email and its attachment.
Has anyone done something similar?
I've done this and it took a custom extension. Fortunately, it's not too difficult. If you search for examples using the javax.mail package to receive email and you'll find lot's of code you can copy.
What is the protocol email server supports? you probably need customization, I don't think we have anything out of the box.
You are most likely going to have to use TCP to perform the virtualization. I doubt that you will get a whole lot without adding in some sort of Custom DPH (Scriptable or Java) to handle data extraction.
Review this post. SMTP Virtualization Bhavin seems to have attempted a virtualization at one time or another.
I read Bhavin's post. We are not trying to simulate the STMP server. We need to listen to a mail server to be able to take further actions based on specific emails sitting in the inbox. Those "actions" would be the process to be virtualized.
In summary: after being notified of an email, we need to obtain the email itself, open an attachment using a third party api, update the attachment, attach the updated file to a new email and send it to a new mailbox.
Yes I can see a lot of customization and scripting involved.
Sorry for the misunderstanding. Nothing OOTB that I know of will handle these steps.
Is it possible to share your custom extension to me @ firstname.lastname@example.org
We are also looking for a solution where we just want to listen to the incoming emails.
Sorry, I wrote this at work, so I'm not free to share the source code.
The approach I took was to use a CustJavaNodeInterface and the JavaMail package. If you get examples of code using those packages, you'll be about 90% complete.
Retrieving data ...