Support Questions

Find answers, ask questions, and share your expertise

RFC 2822 Validation error

avatar
Contributor

I'm trying to use ConsumeImap -> ExtractEmailAttachments processors with google mail. And it gets messages but fails with: "Message failed RFC2822 validation".

From source code i see there should be from and sentDate headers set.

I was thinking something is wrong with gmail server and i wrote python code using imaplib and email and it works. This code is outside of nifi.

Does anyone have any experience with this problem or clue how to fix this.

Best

Bojan

1 ACCEPTED SOLUTION

avatar
Contributor
12 REPLIES 12

avatar
Contributor

Thanks for the patch. 🙂

I just tried to compile it and build is failing:

validateConsumeIMAP

validateConsumeIMAPWithTimeout

Chears!

EDIT:

I skipped the tests and just compiled. ConsumeImap processor now works as expected.

Chears again!

avatar

Thanks for testing! I was already aware the unit test were failing but wanted to confirm the patch worked before I would change the original unit tests. (please note I am not a Hortonworks employee, just a big NiFi fan - and accidental committer. 🙂 )

avatar
New Contributor

Hi,

I'm trying to use ConsumeImap but get the message "RFC2822 validation"

Where can I find ConsumeImap processor compiled (I just find sources) ?

Best