test/test_mails/memoryhole_mails_README
author Krista Grothoff <krista@pep-project.org>
Wed, 12 Oct 2016 15:33:55 +0200
changeset 1269 95e8c36adf13
permissions -rw-r--r--
Added corpus emails for testing and implementing memoryhole.
krista@1269
     1
The memoryhole mails here correspond to the memoryhole corpus at http://modernpgp.org/memoryhole/corpus/ and should be used for checking memoryhole compliance. (Also, they're a way to reverse engineer empty parts of the spec). These are part of the examples specification guidance and are included for the repository for testing purposes only. The actual emails have been extracted and are in memoryhole_[A-H].eml in this directory.
krista@1269
     2
krista@1269
     3
Some of these will have to be changed by us to have keys we can actually use to decrypt the contents for testing, but the descriptions below of those emails tell us what they should contain:
krista@1269
     4
krista@1269
     5
Contents
krista@1269
     6
krista@1269
     7
    A: alternative text/html message with embedded header, signed
krista@1269
     8
    B: alternative text/html message with embedded header, unsigned
krista@1269
     9
    C: alternative text/html message with embedded header, signed, with Subject tampered
krista@1269
    10
    D: alternative text/html message with embedded header, encrypted+unsigned
krista@1269
    11
    E: alternative text/html message with embedded header, encrypted+signed
krista@1269
    12
    F: headers in top-level MIME object: signed plaintext email
krista@1269
    13
    G: headers in top-level MIME object: signed multipart email
krista@1269
    14
    H: headers in top-level MIME: tampered subject and from
krista@1269
    15
krista@1269
    16
Email A:
krista@1269
    17
krista@1269
    18
alternative text/html message with embedded header, signed
krista@1269
    19
krista@1269
    20
└┬╴multipart/signed 1711 bytes (Subject: alternative text/html message with embedded header, signed)
krista@1269
    21
 ├┬╴multipart/mixed 827 bytes
krista@1269
    22
 │├─╴text/rfc822-headers attachment 205 bytes
krista@1269
    23
 │└┬╴multipart/alternative 450 bytes
krista@1269
    24
 │ ├─╴text/plain 86 bytes
krista@1269
    25
 │ └─╴text/html 202 bytes
krista@1269
    26
 └─╴application/pgp-signature 455 bytes
krista@1269
    27
krista@1269
    28
krista@1269
    29
Email B:
krista@1269
    30
krista@1269
    31
alternative text/html message with embedded header, unsigned
krista@1269
    32
krista@1269
    33
└┬╴multipart/mixed 1036 bytes (Subject: alternative text/html message with embedded header, unsigned)
krista@1269
    34
 ├─╴text/rfc822-headers attachment 207 bytes
krista@1269
    35
 └┬╴multipart/alternative 450 bytes
krista@1269
    36
  ├─╴text/plain 86 bytes
krista@1269
    37
  └─╴text/html 202 bytes
krista@1269
    38
krista@1269
    39
krista@1269
    40
Email C:
krista@1269
    41
krista@1269
    42
alternative text/html message with embedded header, signed, with Subject tampered
krista@1269
    43
krista@1269
    44
└┬╴multipart/signed 1706 bytes (Subject: the subject has been tampered!)
krista@1269
    45
 ├┬╴multipart/mixed 850 bytes
krista@1269
    46
 │├─╴text/rfc822-headers attachment 228 bytes
krista@1269
    47
 │└┬╴multipart/alternative 450 bytes
krista@1269
    48
 │ ├─╴text/plain 86 bytes
krista@1269
    49
 │ └─╴text/html 202 bytes
krista@1269
    50
 └─╴application/pgp-signature 455 bytes
krista@1269
    51
krista@1269
    52
krista@1269
    53
Email D:
krista@1269
    54
krista@1269
    55
alternative text/html message with embedded header, encrypted+unsigned
krista@1269
    56
krista@1269
    57
└┬╴multipart/encrypted 2496 bytes (Subject: Memory Hole Encrypted Message)
krista@1269
    58
 ├─╴application/pgp-encrypted 10 bytes
krista@1269
    59
 └─╴application/octet-stream 2064 bytes
krista@1269
    60
krista@1269
    61
krista@1269
    62
Email E:
krista@1269
    63
krista@1269
    64
alternative text/html message with embedded header, encrypted+signed
krista@1269
    65
krista@1269
    66
└┬╴multipart/encrypted 2903 bytes (Subject: Memory Hole Encrypted Message)
krista@1269
    67
 ├─╴application/pgp-encrypted 10 bytes
krista@1269
    68
 └─╴application/octet-stream 2471 bytes
krista@1269
    69
krista@1269
    70
krista@1269
    71
Email F:
krista@1269
    72
krista@1269
    73
headers in top-level MIME object: signed plaintext email
krista@1269
    74
krista@1269
    75
This message demonstrates including the memoryhole headers inside the
krista@1269
    76
top-level MIME object. The signed Subject and From are headers of the
krista@1269
    77
text/plain part, rather than having their own rfc822-headers part.
krista@1269
    78
krista@1269
    79
└┬╴multipart/signed 1242 bytes (Subject: headers in top-level MIME object: signed plaintext email)
krista@1269
    80
 ├─╴text/plain 207 bytes (Subject: headers in top-level MIME object: signed plaintext email)
krista@1269
    81
 └─╴application/pgp-signature 455 bytes
krista@1269
    82
krista@1269
    83
krista@1269
    84
Email G:
krista@1269
    85
krista@1269
    86
headers in top-level MIME object: signed multipart email
krista@1269
    87
krista@1269
    88
This message demonstrates including the memoryhole headers inside the
krista@1269
    89
top-level MIME object. The signed Subject and From are headers of the
krista@1269
    90
multipart/alternative part, rather than having their own
krista@1269
    91
rfc822-headers part.
krista@1269
    92
krista@1269
    93
└┬╴multipart/signed 1566 bytes (Subject: headers in top-level MIME object: signed multipart email)
krista@1269
    94
 ├┬╴multipart/alternative 684 bytes (Subject: headers in top-level MIME object: signed multipart email)
krista@1269
    95
 │├─╴text/plain 218 bytes
krista@1269
    96
 │└─╴text/html 202 bytes
krista@1269
    97
 └─╴application/pgp-signature 455 bytes
krista@1269
    98
krista@1269
    99
krista@1269
   100
Email H:
krista@1269
   101
krista@1269
   102
headers in top-level MIME: tampered subject and from
krista@1269
   103
krista@1269
   104
This email demonstrates including the memoryhole headers inside the
krista@1269
   105
top-level MIME object. The signed Subject and From are headers of the
krista@1269
   106
text/plain part, rather than having their own rfc822-headers part.
krista@1269
   107
krista@1269
   108
This email has been tampered with. It was originally sent by Winston,
krista@1269
   109
who signed the body (including the memoryhole headers). Eve has
krista@1269
   110
fiddled with the From and Subject headers in-flight.
krista@1269
   111
krista@1269
   112
└┬╴multipart/signed 1416 bytes (Subject: headers in top-level MIME: tampered subject and from)
krista@1269
   113
 ├─╴text/plain 393 bytes (Subject: headers in top-level MIME: subject restored to original)
krista@1269
   114
 └─╴application/pgp-signature 455 bytes
krista@1269
   115