1

Does message rfc822 allow a new line in between two headers?

After Content-Disposition I got a newline. Attaching Image

enter image description here

Erwin Bolwidt
  • 30,799
  • 15
  • 56
  • 79

1 Answers1

1

The Received header (and all of the headers that follow it) are not part of the MIME part headers - they are the content of the MIME part.

This attachment has a MIME-type of message/rfc822 which is an email message. When you parse the content of the MIME part (which starts with the Received header), what you end up with is another message object.

jstedfast
  • 35,744
  • 5
  • 97
  • 110
  • 1
    That's not entirely a correct analysis. The body part's headers are separate from the body part's contents, which are a `message/rfc822` part with a completely distinct set of headers. – tripleee Jun 23 '20 at 11:31
  • I think you misunderstood what I wrote because you just restated what I said in a different way. – jstedfast Jun 23 '20 at 13:25
  • If that's what you are trying to say, the first four words should probably not end with "yes". – tripleee Jun 23 '20 at 13:53