Hi
I use mail adapter and PayloadSwapBean to download attachment from email. The scenario is mail -> PI -> file.
If there is an attachment with the mail, the attachment is saved to the file. However, if the attachment is not there, the mail content payload is saved to file. How I can ignore those mails without attachment in this case?
My next question is how can we only allow mail adapter to process emails from certain addresses? If mail adapter processes emails from anywhere, then PI might be spammed potentially.
Cheers.