How to get attachments by email using Pentaho Kettle?

I ran into a big problem. My task is to download some emails from the server using the IMAP protocol. This is achieved using the "receive mail (POP3 / IMAP)" entry, which downloads emails, but in binary format.

Binary files are .mailfiles that contain sender files, themes, bodies, and encoded attachments. I need to get separate files because I have to follow some steps with these files as input.

I saw that there are third-party libraries or utilities to decode the file .mailand get a list of attachment files. However, I want to make this process without any additional utility (because this would require a shell step, depending on SO).

Is there a way or trick to get attachments using only Pentaho job entries or conversion steps?

I am using version 5.1 of the Pentaho Kettle.

+4
source share
1 answer

I will explain the whole process so that someone can take advantage of this.


1) START Get mails (POP3/IMAP) .
2) Get mails IMAP ( , , , ..) " ", .
3) "" " " " ". Target, .
4) "" IMAP, . .
5) "", " " " ".

+2

All Articles