nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Help with ExtractText processor and Mime format files
Date Sat, 14 Jan 2017 21:30:05 GMT
I have received some mime format files and I want to extract certain parts of them to use
as attributes, such as the 'To' and 'From'  fields.
I have tried using the ExtractText processor but I can never get the regex to give me a match.
My questions are :1)    Am I using the best processor to decode mime format messages?2)   
If the extractText processor is the best way of decoded a mime format message, can someone
give me an example of a regex which  would give me either the sender or the recipient .

The following is an example of a file I have received:
Date: Fri, 13 Jan 2017 10:26:12 -0400 (EDT)
From: David Smith <>
To: John Doe <>
Subject: =?iso-8859-1?Q?Test Email?=
Message-ID: <>
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="-123456789-987654321-958746372=:6982"

  This message is in MIME format.  The first part should be plain text. 

Content-Type: TEXT/PLAIN; charset=US-ASCII

Many thanksDave

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message