Re: Regarding ConsumeIMAP Processor.

2016-09-30 Thread Andre
Prabhu,

There's a PR on github with a possible solution to this issue:

Can you try running that code and let us know if it solves your problem?

Also, be mindful of compiling NiFi using 'mvn -DskipTests=true clean
install'

Best regards

On Wed, Sep 21, 2016 at 2:25 PM, prabhu Mahendran 
wrote:

> Hi,
>
> I am new to the NIFI. I have just use Consume IMAP Processor to retrieve
> attachement from mail Server.
>
> If i use it then i can able to download attachement but that document
> having MIME type information with addition of EMail Data like below
> screenshot.
>
>
> I need to extract the exact data only but this data comes with some MIME
> information.
>
> Can anyone please help me to extract data only or remove the MIME
> information from file?
>
> Thanks,
>
>
>
>
>
>


Re: Regarding ConsumeIMAP Processor.

2016-09-21 Thread Andre
Prabhu,

The sample message you sent seems to be a multipart MIME message, so if
what you referring to use the part that shows

HI\nHello\n\nWelcome


Then the ExtractEmailAttachments should be able to extract the contents (it
is an attachment, spitting out a flowfile containing the "Sample.txt"
attachment

You would

ConsumeIMAP (get the message from server -> ExtractEmailHeaders (get the
the From, Subject, To, etc from flowfile content and add as attributes ->
ExtractEmailAttachments (extract each individual attachment from the
flowfile).
At this stage you should produce a new flowfile containing Sample.txt which
seems to be the content you want?

Would you also mind uploading the sample email you want to process into a
gist? May be easier to understand what you are trying to achieve.

Cheers


On Wed, Sep 21, 2016 at 6:41 PM, prabhu Mahendran 
wrote:

> Andre,
>
> Thanks for your help.
>
> I have already use those processors and it produces simple message+MIME
> information without RFC 2822 headers.
>
> Could you suggest any other processor to remove MIME information?
>
> Thanks,
>
>
>
> On Wed, Sep 21, 2016 at 10:57 AM, Andre  wrote:
>
>> Prabhu,
>>
>>
>> Would ExtractEmailHeaders[1] and ExtractEmailAttachments[2] cover your
>> use case?
>>
>> https://nifi.apache.org/docs/nifi-docs/components/org.apache
>> .nifi.processors.email.ExtractEmailHeaders/index.html
>> https://nifi.apache.org/docs/nifi-docs/components/org.apache
>> .nifi.processors.email.ExtractEmailAttachments/index.html
>>
>> Cheers
>>
>>
>> On Wed, Sep 21, 2016 at 2:25 PM, prabhu Mahendran <
>> prabhuu161...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I am new to the NIFI. I have just use Consume IMAP Processor to retrieve
>>> attachement from mail Server.
>>>
>>> If i use it then i can able to download attachement but that document
>>> having MIME type information with addition of EMail Data like below
>>> screenshot.
>>>
>>>
>>> I need to extract the exact data only but this data comes with some MIME
>>> information.
>>>
>>> Can anyone please help me to extract data only or remove the MIME
>>> information from file?
>>>
>>> Thanks,
>>>
>>>
>>>
>>>
>>>
>>>
>>
>


Regarding ConsumeIMAP Processor.

2016-09-20 Thread prabhu Mahendran
Hi,

I am new to the NIFI. I have just use Consume IMAP Processor to retrieve
attachement from mail Server.

If i use it then i can able to download attachement but that document
having MIME type information with addition of EMail Data like below
screenshot.


I need to extract the exact data only but this data comes with some MIME
information.

Can anyone please help me to extract data only or remove the MIME
information from file?

Thanks,