OT: How is text files like this (or like any RFC) written? Is there any standard format and is it done in a specific way?
EDIT: Found it! There was actually a RFC for that. https://tools.ietf.org/html/rfc7322
EDIT: Found it! There was actually a RFC for that. https://tools.ietf.org/html/rfc7322