- I am not able to fetch the attachments. The flow files are in MIME format and it is not fetching the attachments. When i route on attribute attachments greater than 1 , all the mails and the ones without attachment are also getting passed. The attachment fetched is looking like the mail body.
- I am getting only few of the mails fetched and these mails are getting fetched repeatedly
Firstly i was making few mistakes, so i rectified it.
- I made the job to be scheduled to run at a certain time or else it keeps pulling the same email multiple times. Also it is able to pull only unread emails. So that is a drawback. So you can mark the email as read after fetching. In that way it will only pull the mail once. By this i was able to fetch all incoming unread emails.
- Still the mail is in a unreadable mime format, so the extract attachment processor cannot read and extract the attachment. So we need to remove the unwanted lines from the mime file . So i wrote a Unix script to remove unwanted lines and text from the mime file and then passed it to the extract attachment processor and voila it was able to fetch the attachment perfectly. I had to play around with the mime file. You need to open the mime file and keep only the From,To,Subject and Attachment content of the mime file and remove rest of the content.
Rite now this is working for my requirement. Hope this helps.