add design criteria of pEpMIME to README.md :-)
3 months ago
1 changed files
Download Patch File
Download Diff File
@ -25,3 +25,48 @@ used. So a typical build on macOS i.e. looks like this:
CXXFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib make PREFIX=$HOME -j4 all install
# Design criteria of pEpMIME
pEpMIME "normalizes" the MIME messages during parsing, and uses some heuristics especially for
non-MIME-compliant inputs. The generated
* contains UTF-8 NFC-compliant text in
* contains appropriate MIME headers, e.g.
The MIME generator also serializes data in a special and predictive manner:
* Non-7bit data in MIME leaves' headers and bodies are always base64 encoded. "quoted printable"
encoding is never generated.
* MIME delimiter are short and predictive "=pEp=#=", where
is the smallest possible
hexadecimal number so the delimiter does not occur in the message.
Due to this normalization there is
round-trip guarantee that a generated MIME message is
identical to the original MIME message:
1) "MIME_text" -->
"MIME text" and "MIME_text2" usually differ due to normalization
`struct message msg1`
--> "MIME_text" -->
`struct message msg2`
The content of
is identical, except …
(*FIXME*: AFAIK there are special bizarre cases, but I don't remember at the moment)
## Special Headers
Additionally pEpMIME adds some internal annotations into
using keys that start
with ":pEp:MIME:", a string that can never occur in MIME messages, so they cannot be set by external
attackers. The MIME generator of pEpMIME is aware of these special header lines, acts appropriately
that start with ":", so they will never occur as
MIME header in the generated MIME message.
Adapters and clients are allowed to use these special header fields and might also define their own
(with another prefix, so they won't interfere with future pEpMIME headers).
Currently these special headers are used by pEpMIME:
: to store the special annotations for
plaintext bodies, according to RFC 3676
: represents the flag
This field is used only internally and does not occur in the returned