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.
     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.
     2 
     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:
     4 
     5 Contents
     6 
     7     A: alternative text/html message with embedded header, signed
     8     B: alternative text/html message with embedded header, unsigned
     9     C: alternative text/html message with embedded header, signed, with Subject tampered
    10     D: alternative text/html message with embedded header, encrypted+unsigned
    11     E: alternative text/html message with embedded header, encrypted+signed
    12     F: headers in top-level MIME object: signed plaintext email
    13     G: headers in top-level MIME object: signed multipart email
    14     H: headers in top-level MIME: tampered subject and from
    15 
    16 Email A:
    17 
    18 alternative text/html message with embedded header, signed
    19 
    20 └┬╴multipart/signed 1711 bytes (Subject: alternative text/html message with embedded header, signed)
    21  ├┬╴multipart/mixed 827 bytes
    22  │├─╴text/rfc822-headers attachment 205 bytes
    23  │└┬╴multipart/alternative 450 bytes
    24  │ ├─╴text/plain 86 bytes
    25  │ └─╴text/html 202 bytes
    26  └─╴application/pgp-signature 455 bytes
    27 
    28 
    29 Email B:
    30 
    31 alternative text/html message with embedded header, unsigned
    32 
    33 └┬╴multipart/mixed 1036 bytes (Subject: alternative text/html message with embedded header, unsigned)
    34  ├─╴text/rfc822-headers attachment 207 bytes
    35  └┬╴multipart/alternative 450 bytes
    36   ├─╴text/plain 86 bytes
    37   └─╴text/html 202 bytes
    38 
    39 
    40 Email C:
    41 
    42 alternative text/html message with embedded header, signed, with Subject tampered
    43 
    44 └┬╴multipart/signed 1706 bytes (Subject: the subject has been tampered!)
    45  ├┬╴multipart/mixed 850 bytes
    46  │├─╴text/rfc822-headers attachment 228 bytes
    47  │└┬╴multipart/alternative 450 bytes
    48  │ ├─╴text/plain 86 bytes
    49  │ └─╴text/html 202 bytes
    50  └─╴application/pgp-signature 455 bytes
    51 
    52 
    53 Email D:
    54 
    55 alternative text/html message with embedded header, encrypted+unsigned
    56 
    57 └┬╴multipart/encrypted 2496 bytes (Subject: Memory Hole Encrypted Message)
    58  ├─╴application/pgp-encrypted 10 bytes
    59  └─╴application/octet-stream 2064 bytes
    60 
    61 
    62 Email E:
    63 
    64 alternative text/html message with embedded header, encrypted+signed
    65 
    66 └┬╴multipart/encrypted 2903 bytes (Subject: Memory Hole Encrypted Message)
    67  ├─╴application/pgp-encrypted 10 bytes
    68  └─╴application/octet-stream 2471 bytes
    69 
    70 
    71 Email F:
    72 
    73 headers in top-level MIME object: signed plaintext email
    74 
    75 This message demonstrates including the memoryhole headers inside the
    76 top-level MIME object. The signed Subject and From are headers of the
    77 text/plain part, rather than having their own rfc822-headers part.
    78 
    79 └┬╴multipart/signed 1242 bytes (Subject: headers in top-level MIME object: signed plaintext email)
    80  ├─╴text/plain 207 bytes (Subject: headers in top-level MIME object: signed plaintext email)
    81  └─╴application/pgp-signature 455 bytes
    82 
    83 
    84 Email G:
    85 
    86 headers in top-level MIME object: signed multipart email
    87 
    88 This message demonstrates including the memoryhole headers inside the
    89 top-level MIME object. The signed Subject and From are headers of the
    90 multipart/alternative part, rather than having their own
    91 rfc822-headers part.
    92 
    93 └┬╴multipart/signed 1566 bytes (Subject: headers in top-level MIME object: signed multipart email)
    94  ├┬╴multipart/alternative 684 bytes (Subject: headers in top-level MIME object: signed multipart email)
    95  │├─╴text/plain 218 bytes
    96  │└─╴text/html 202 bytes
    97  └─╴application/pgp-signature 455 bytes
    98 
    99 
   100 Email H:
   101 
   102 headers in top-level MIME: tampered subject and from
   103 
   104 This email demonstrates including the memoryhole headers inside the
   105 top-level MIME object. The signed Subject and From are headers of the
   106 text/plain part, rather than having their own rfc822-headers part.
   107 
   108 This email has been tampered with. It was originally sent by Winston,
   109 who signed the body (including the memoryhole headers). Eve has
   110 fiddled with the From and Subject headers in-flight.
   111 
   112 └┬╴multipart/signed 1416 bytes (Subject: headers in top-level MIME: tampered subject and from)
   113  ├─╴text/plain 393 bytes (Subject: headers in top-level MIME: subject restored to original)
   114  └─╴application/pgp-signature 455 bytes
   115