nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DAVID SMITH <davidrsm...@btinternet.com>
Subject Help with ExtractText processor and Mime format files
Date Sat, 14 Jan 2017 21:30:05 GMT
Hi
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 <dave@home.example.com>
To: John Doe <john@example.com>
Subject: =?iso-8859-1?Q?Test Email?=
Message-ID: <Pine.MSC.4.21.0001112233.8672-2345678@home.example.com>
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. 

---123456789-987654321-958746372=:6982
Content-Type: TEXT/PLAIN; charset=US-ASCII


Many thanksDave


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