Added corpus emails for testing and implementing memoryhole.
authorKrista Grothoff <krista@pep-project.org>
Wed, 12 Oct 2016 15:33:55 +0200
changeset 126995e8c36adf13
parent 1268 10397798d2b3
child 1270 f07300d75b4b
Added corpus emails for testing and implementing memoryhole.
test/test_mails/memoryhole_A.eml
test/test_mails/memoryhole_B.eml
test/test_mails/memoryhole_C.eml
test/test_mails/memoryhole_D.eml
test/test_mails/memoryhole_E.eml
test/test_mails/memoryhole_F.eml
test/test_mails/memoryhole_G.eml
test/test_mails/memoryhole_H.eml
test/test_mails/memoryhole_mails_README
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/test_mails/memoryhole_A.eml	Wed Oct 12 15:33:55 2016 +0200
     1.3 @@ -0,0 +1,73 @@
     1.4 +Subject: alternative text/html message with embedded header, signed
     1.5 +Message-ID: A@memoryhole.example
     1.6 +Date: Thu, 16 Jul 2015 11:44:44 +0200
     1.7 +To: Julia 
     1.8 +From: Winston 
     1.9 +MIME-Version: 1.0
    1.10 +Content-Type: multipart/signed; micalg="pgp-sha256";
    1.11 + protocol="application/pgp-signature"; boundary="cccccccccccc"
    1.12 +
    1.13 +--cccccccccccc
    1.14 +Content-Type: multipart/mixed; boundary="bbbbbbbbbbbb"
    1.15 +
    1.16 +--bbbbbbbbbbbb
    1.17 +Content-Type: text/rfc822-headers
    1.18 +Content-Disposition: attachment
    1.19 +
    1.20 +Date: Thu, 16 Jul 2015 11:44:44 +0200
    1.21 +Subject: alternative text/html message with embedded header, signed
    1.22 +From: Winston 
    1.23 +To: Julia 
    1.24 +Message-ID: A@memoryhole.example
    1.25 +
    1.26 +--bbbbbbbbbbbb
    1.27 +Content-Type: multipart/alternative; boundary="aaaaaaaaaaaa"
    1.28 +
    1.29 +--aaaaaaaaaaaa
    1.30 +Content-Type: text/plain
    1.31 +
    1.32 +This is a test
    1.33 +message on multiple lines
    1.34 +
    1.35 +with a silly bit more.
    1.36 +-- 
    1.37 +and a .sig here.
    1.38 +
    1.39 +--aaaaaaaaaaaa
    1.40 +Content-Type: text/html
    1.41 +
    1.42 +
    1.43 +
    1.44 +
    1.45 +
    1.46 +
    1.47 +This is a test
    1.48 +message on multiple lines
    1.49 +
    1.50 +with a silly bit more.
    1.51 +
    1.52 +
    1.53 +and a .sig here.
    1.54 +
    1.55 +
    1.56 +
    1.57 +
    1.58 +--aaaaaaaaaaaa
    1.59 +
    1.60 +--bbbbbbbbbbbb
    1.61 +
    1.62 +--cccccccccccc
    1.63 +Content-Type: application/pgp-signature
    1.64 +
    1.65 +-----BEGIN PGP SIGNATURE-----
    1.66 +
    1.67 +iQEcBAABCAAGBQJVv1AkAAoJEBX7TryOLWy3G2UH/jj8HCYfzjf7g/+Xzl7pcTtW
    1.68 +fLh0wbdfeoxg8+hKa7AA+IhYXupQ9tNWVws9ECKunKMy8MGIPnTRjfDv9qiz4Gmz
    1.69 +XI/U3K51NP4vTyv2oAf9gig27Y4glsw/krKvDCshSaf9N3Lk04JQ6vVUBRZ2kIrN
    1.70 +RKfToHcUfxaZiZvbEy0MsT5CNmvMLdGEmukWUoFmOmOxQqBp5+omxNcugnwFpGyK
    1.71 +SlyJxaH0fniMDiIv983cLpXsp2WVmbYddDxZDAqr4HpTIXbQ/dPNEOp1QTi+86Dd
    1.72 +SO7nYkDUNIR2JrcexOUCZnV0FryG2dsGRAgL9Wp6T6CPP3Q8uSnOI22P2mtaD/M=
    1.73 +=3Bmv
    1.74 +-----END PGP SIGNATURE-----
    1.75 +
    1.76 +--cccccccccccc
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/test/test_mails/memoryhole_B.eml	Wed Oct 12 15:33:55 2016 +0200
     2.3 @@ -0,0 +1,52 @@
     2.4 +Subject: alternative text/html message with embedded header, unsigned
     2.5 +Message-ID: B@memoryhole.example
     2.6 +Date: Thu, 16 Jul 2015 11:44:44 +0200
     2.7 +To: Julia 
     2.8 +From: Winston 
     2.9 +Content-Type: multipart/mixed; boundary="bbbbbbbbbbbb"
    2.10 +
    2.11 +--bbbbbbbbbbbb
    2.12 +Content-Type: text/rfc822-headers
    2.13 +Content-Disposition: attachment
    2.14 +
    2.15 +Date: Thu, 16 Jul 2015 11:44:44 +0200
    2.16 +Subject: alternative text/html message with embedded header, unsigned
    2.17 +From: Winston 
    2.18 +To: Julia 
    2.19 +Message-ID: B@memoryhole.example
    2.20 +
    2.21 +--bbbbbbbbbbbb
    2.22 +Content-Type: multipart/alternative; boundary="aaaaaaaaaaaa"
    2.23 +
    2.24 +--aaaaaaaaaaaa
    2.25 +Content-Type: text/plain
    2.26 +
    2.27 +This is a test
    2.28 +message on multiple lines
    2.29 +
    2.30 +with a silly bit more.
    2.31 +-- 
    2.32 +and a .sig here.
    2.33 +
    2.34 +--aaaaaaaaaaaa
    2.35 +Content-Type: text/html
    2.36 +
    2.37 +
    2.38 +
    2.39 +
    2.40 +
    2.41 +
    2.42 +This is a test
    2.43 +message on multiple lines
    2.44 +
    2.45 +with a silly bit more.
    2.46 +
    2.47 +
    2.48 +and a .sig here.
    2.49 +
    2.50 +
    2.51 +
    2.52 +
    2.53 +--aaaaaaaaaaaa
    2.54 +
    2.55 +--bbbbbbbbbbbb
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/test/test_mails/memoryhole_C.eml	Wed Oct 12 15:33:55 2016 +0200
     3.3 @@ -0,0 +1,73 @@
     3.4 +Subject: the subject has been tampered!
     3.5 +Message-ID: C@memoryhole.example
     3.6 +Date: Thu, 16 Jul 2015 11:44:44 +0200
     3.7 +To: Julia 
     3.8 +From: Winston 
     3.9 +MIME-Version: 1.0
    3.10 +Content-Type: multipart/signed; micalg="pgp-sha256";
    3.11 + protocol="application/pgp-signature"; boundary="cccccccccccc"
    3.12 +
    3.13 +--cccccccccccc
    3.14 +Content-Type: multipart/mixed; boundary="bbbbbbbbbbbb"
    3.15 +
    3.16 +--bbbbbbbbbbbb
    3.17 +Content-Type: text/rfc822-headers
    3.18 +Content-Disposition: attachment
    3.19 +
    3.20 +Date: Thu, 16 Jul 2015 11:44:44 +0200
    3.21 +Subject: alternative text/html message with embedded header, signed, with Subject tampered
    3.22 +From: Winston 
    3.23 +To: Julia 
    3.24 +Message-ID: C@memoryhole.example
    3.25 +
    3.26 +--bbbbbbbbbbbb
    3.27 +Content-Type: multipart/alternative; boundary="aaaaaaaaaaaa"
    3.28 +
    3.29 +--aaaaaaaaaaaa
    3.30 +Content-Type: text/plain
    3.31 +
    3.32 +This is a test
    3.33 +message on multiple lines
    3.34 +
    3.35 +with a silly bit more.
    3.36 +-- 
    3.37 +and a .sig here.
    3.38 +
    3.39 +--aaaaaaaaaaaa
    3.40 +Content-Type: text/html
    3.41 +
    3.42 +
    3.43 +
    3.44 +
    3.45 +
    3.46 +
    3.47 +This is a test
    3.48 +message on multiple lines
    3.49 +
    3.50 +with a silly bit more.
    3.51 +
    3.52 +
    3.53 +and a .sig here.
    3.54 +
    3.55 +
    3.56 +
    3.57 +
    3.58 +--aaaaaaaaaaaa
    3.59 +
    3.60 +--bbbbbbbbbbbb
    3.61 +
    3.62 +--cccccccccccc
    3.63 +Content-Type: application/pgp-signature
    3.64 +
    3.65 +-----BEGIN PGP SIGNATURE-----
    3.66 +
    3.67 +iQEcBAABCAAGBQJVv1AlAAoJEBX7TryOLWy3KDEH/2AZoqbni9ITq0klVnWPtMfE
    3.68 +u9ZG2ynGIGYEhgbn/vqaDTdyx8NDqucDfVupWtbmjVUOfbmI9kvMwXuLyCJ4Ng14
    3.69 +9gTtC1XngUXH2MNwrxa0blTnIPX1YDQwmTmE59V0v3tcI9QKDzM95HRX1RciWSMk
    3.70 +gIvOU/W2yUXkvV6BjkOFnhY5X0QP+uBa8Dtf5saEOHRsxNzD2r68fg7TjteF7FFv
    3.71 +K3hegtj6hVx3cRDgxbZPc48zQkpejksDmBB83jPlDrVX4y1kj4btqfg52M77TROG
    3.72 +gadJ16Q4FMgvlXfuB80RgK7bGCIUDnQlGc/wxBifDrGyIGQXUpePD3uPgzinTM8=
    3.73 +=X2AM
    3.74 +-----END PGP SIGNATURE-----
    3.75 +
    3.76 +--cccccccccccc
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/test/test_mails/memoryhole_D.eml	Wed Oct 12 15:33:55 2016 +0200
     4.3 @@ -0,0 +1,53 @@
     4.4 +Subject: Memory Hole Encrypted Message
     4.5 +Message-ID: D@memoryhole.example
     4.6 +Date: Thu, 16 Jul 2015 11:44:44 +0200
     4.7 +To: Julia 
     4.8 +From: Winston 
     4.9 +MIME-Version: 1.0
    4.10 +Content-Type: multipart/encrypted; protocol="application/pgp-encrypted";
    4.11 + boundary="cccccccccccc"
    4.12 +
    4.13 +--cccccccccccc
    4.14 +Content-Type: application/pgp-encrypted
    4.15 +
    4.16 +Version: 1
    4.17 +--cccccccccccc
    4.18 +Content-Type: application/octet-stream
    4.19 +
    4.20 +-----BEGIN PGP MESSAGE-----
    4.21 +
    4.22 +hQEMA5I+4kg3RI5lAQf/QmjnIjKUWRjMP7WXoAo4e/Si0XMROhoazm9p0ktdlSlN
    4.23 +TXyKgVWEyyn0NeALpI7L+DVfSpzTqM9VeDWlb7hd5wDuV26LpNm622zavtkELHVq
    4.24 +yZHUKGCabE0pn9m0cCaw844yG3A7hVo9l/R/2PTP7q2B33xyP+kdEgvovQ5oB8z2
    4.25 +Pu36q5h93XK+dRFPOCQGQ1Df9298PCr5EkYBaNoJUOi11IngnXq8pBZCeUDegu4P
    4.26 +ZQL6EEEoQpJp294bFto4/+7ATo/D1sPky4n0BjQcQtF/uiv6hlfCUScE+89TDfVM
    4.27 +ZuiyHkKiVn7E7CNVOp/3/1HGn4uQSxWlOt88dk29fYUBDANLbJvEVDbKBwEIAL3d
    4.28 +sZUuapkg9hxrWTazp0fImn7vm+XzkLBPl1aGe99JAYUBtGPMxCeZt4FVycfe9ZQI
    4.29 +q2CxUd5L45bQbhzOpax//wA1pn65So0+DI+MhkNWaJzob5NliuVnxEfUSG1lM8X0
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s
    4.45 +URjm/SmZNFFT1n9TKCZ4Hm6i+i2OSARM48COFUwOcWqsWOk8zSIvEzAwAaI4Wppu
    4.46 +rU8/bY1l/nzQum8he/R8oKQy+eyOH8lc9gxoZ2Uwsk+SuIR2JgTPybYYPnWQb63f
    4.47 +Blqi/u8sg8nEyxjUT8agz2au7n9yVWRHt4e0LQimTUsqQlzmP88PNd+zmw8evYkt
    4.48 +rrrpustqKTAxUnmy5wQgXupUCGF1Jh1yrJx4XMJLD4hd5avIhvLfY+GV4/kk2hxD
    4.49 +btbyNyrSlyjm2iR0f1zUofz6P55hk2nEiU6ETNFEMVaG02PHDPzhcSXTegXDcTrO
    4.50 +nRLRvTjAwyTNeZEkwEzf86ubKkXma1THXjHkEA4RFgcq29gbl8ur4pswGTGSf9tW
    4.51 +Kc58/moSRlLEnrCyZUqDC2mELrq6fbHBVpLjkDzlIK2B+sic2CKGJAnWyiTeTL5I
    4.52 +IwCsTyNE/3xQ9ZFZO1qYrRYswLfu1UbN2RTQD9L96s4FOQkVqLEw
    4.53 +=zFDo
    4.54 +-----END PGP MESSAGE-----
    4.55 +
    4.56 +--cccccccccccc
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/test/test_mails/memoryhole_E.eml	Wed Oct 12 15:33:55 2016 +0200
     5.3 @@ -0,0 +1,60 @@
     5.4 +Subject: Memory Hole Encrypted Message
     5.5 +Message-ID: E@memoryhole.example
     5.6 +Date: Thu, 16 Jul 2015 11:44:44 +0200
     5.7 +To: Julia 
     5.8 +From: Winston 
     5.9 +MIME-Version: 1.0
    5.10 +Content-Type: multipart/encrypted; protocol="application/pgp-encrypted";
    5.11 + boundary="cccccccccccc"
    5.12 +
    5.13 +--cccccccccccc
    5.14 +Content-Type: application/pgp-encrypted
    5.15 +
    5.16 +Version: 1
    5.17 +--cccccccccccc
    5.18 +Content-Type: application/octet-stream
    5.19 +
    5.20 +-----BEGIN PGP MESSAGE-----
    5.21 +
    5.22 +hQEMA5I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83vP8QsBa2oQ3SeZnOPBW/dddap1XiLDcCgxnJNxh8r6lBaI/ydPa0ofy
    5.38 +O4IaBaOwPxNjXa04XaA7nNCPzPEZGZzBEwl457MKmEMkM3Ct7WzbuS24yl1gdD+/
    5.39 +jQh+9XNktAfeSZqQOQjADGg92R2ZQzheRGNlDS9mBYiVXR18QLMDT/b7KA9jXEpE
    5.40 +V4tpcYx0oSKsdNSUraQYtK6p20ZK7l5xvKrHb68EdnX5Pn8FvAx/WebV4bkrodvh
    5.41 +GUOUGSRZpt2sG2AoFADF1y6iEdlP85P0kxSBW3/NAZwqLk9Zyhr4+CzNUkMKdwSr
    5.42 +l5Lx9EreY+D7QSKIHPK4kj6vJzOoqzxL5Of40BQNwyIsHk4VlBjt8Zn6KdJtcTh9
    5.43 +gG7aRkfNpLASV58BV453jWMU10t9bpEjmIhxzdgdGENWmqbf2DJDuvPMfeDloYIi
    5.44 +gy4Q44KFxPXHINY0CgxwlSm+4VIn3xbSebql36ec3DHp0u8kblPHUh/cS0BWhrPS
    5.45 +r/AMNjVfre7dWAnEPzrQLqylQqwFjCEOlNECjQpHvWam5oYo4r7PtBnXItv+FGgH
    5.46 +RA+mEFYjD4ydrBuvHdgelV69U70Vn2a13zYeWECauwgRQWvKkZvRBsdHMLm1fehQ
    5.47 +4+hFdKc01x/nOGlL5pEuaZ5VshrzqCp6qW0uG4KniDuZWVS7505k61JQfoL2T8RT
    5.48 +i2b+K6VfCDNAKy800N7rOn3IosERCr4jyPG5QaqoNURGseTMt+tzrxpU1T6lup8+
    5.49 +fI2Kgg/6OE48Ik9VYQIS7ntb8AyRVMiRZ0CbUvTxWwxniM1e3brSa31nhYnXTj31
    5.50 +swCCS69q8Rv/gAftmYW21tz2aN+6XexD5ahxvjF30z2ymc2S33gu8Z3VGmUAp+iu
    5.51 +hoC7FshVQoUl7yBmr7fXdSBmENqwmPJ/CArQVnoVHWoT43RT9AztNl0uVBWok28A
    5.52 +PYHc98Df/MV7b/dRFZQOeteowkmJHVbX1klrCh4GI5Wsj89S7DSsQ29B2Ru7/Cjp
    5.53 +v9BKsg4R5JYQrCiCHfMbtP9zykmTXRDVIhEEVwBk4E0SIWYMK/9gZiTcDswRJcMZ
    5.54 +ap119HKLEwRSewiCJf4aMPeWzN4Pm4AuupL86ns1MavAEYWu+e9cw7uxP8acZx2M
    5.55 +g75OY8KUBs6DlI8iO8mQjMctCWGmOJt5y0oehCflf8A+0o4auSE0bQusFnTpch1N
    5.56 +LWhi2w62V1lk/12hoYUAkiadTImIn3nYBCBtXyrvLcJv0GGW3+K0ShYjsjzNitpb
    5.57 +c4mcq3S4fGIVCqwdS+9His7D1fn5Jjak/imQSrBHHovLCuiK7GN7ut8UfUAqqhUw
    5.58 +CJ7WJAeHMNhsOZu4jz6wAtgjm67Hzx0pY649wbITET8ZOM3zNR0XeMHAHrLm+I3C
    5.59 +WEm4
    5.60 +=8kjs
    5.61 +-----END PGP MESSAGE-----
    5.62 +
    5.63 +--cccccccccccc
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/test/test_mails/memoryhole_F.eml	Wed Oct 12 15:33:55 2016 +0200
     6.3 @@ -0,0 +1,33 @@
     6.4 +Subject: headers in top-level MIME object: signed plaintext email
     6.5 +Message-ID: F@memoryhole.example
     6.6 +Date: Wed, 29 Jul 2015 09:31:44 +0100
     6.7 +To: Julia 
     6.8 +From: Winston 
     6.9 +MIME-Version: 1.0
    6.10 +Content-Type: multipart/signed; micalg="pgp-sha256";
    6.11 + protocol="application/pgp-signature"; boundary="bbbbbbbbbbbb"
    6.12 +
    6.13 +--bbbbbbbbbbbb
    6.14 +Content-Type: text/plain; boundary="aaaaaaaaaaaa"
    6.15 +Subject: headers in top-level MIME object: signed plaintext email
    6.16 +From: Winston 
    6.17 +
    6.18 +This message demonstrates including the memoryhole headers inside the
    6.19 +top-level MIME object. The signed Subject and From are headers of the
    6.20 +text/plain part, rather than having their own rfc822-headers part.
    6.21 +
    6.22 +--bbbbbbbbbbbb
    6.23 +Content-Type: application/pgp-signature
    6.24 +
    6.25 +-----BEGIN PGP SIGNATURE-----
    6.26 +
    6.27 +iQEcBAABCAAGBQJVv1AlAAoJEBX7TryOLWy3VvIIAIcw8p+Nsv0YGORvuz+wubBb
    6.28 +/7vy9DNw+RN9pL63dDHz3NKP5yc8LIL0rPkOn9wh05GU4jrSGn6iGCOa6ubhY0sF
    6.29 +GAYpvT810hwN/qPMoTDxEetv/pZbkuOI1uiK3AF9lE0dj0oNAecERZqlh8zLJbvs
    6.30 +rRXS9FwXxBvu8XXYSq5+V18SZ0YoZO/BdI9/NT/LTgZ6PZ6qy3YcvJ433NIeUBeK
    6.31 +jkCVyUQFrVxlSrUPDryF5LqirAYdf3EjWarIGxvwXNkKfzTUUKD7r4zLvbPe81hm
    6.32 +ZVn/i/r38TUB8JR8GMxWz5/B0MOZBW1shAksErAvy4XXrXNRaahLHmRXg1otLEU=
    6.33 +=vLOX
    6.34 +-----END PGP SIGNATURE-----
    6.35 +
    6.36 +--bbbbbbbbbbbb
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/test/test_mails/memoryhole_G.eml	Wed Oct 12 15:33:55 2016 +0200
     7.3 @@ -0,0 +1,58 @@
     7.4 +Subject: headers in top-level MIME object: signed multipart email
     7.5 +Message-ID: G@memoryhole.example
     7.6 +Date: Wed, 29 Jul 2015 09:31:44 +0100
     7.7 +To: Julia 
     7.8 +From: Winston 
     7.9 +MIME-Version: 1.0
    7.10 +Content-Type: multipart/signed; micalg="pgp-sha256";
    7.11 + protocol="application/pgp-signature"; boundary="bbbbbbbbbbbb"
    7.12 +
    7.13 +--bbbbbbbbbbbb
    7.14 +Content-Type: multipart/alternative; boundary="aaaaaaaaaaaa"
    7.15 +Subject: headers in top-level MIME object: signed multipart email
    7.16 +From: Winston 
    7.17 +
    7.18 +--aaaaaaaaaaaa
    7.19 +Content-Type: text/plain
    7.20 +
    7.21 +This message demonstrates including the memoryhole headers inside the
    7.22 +top-level MIME object. The signed Subject and From are headers of the
    7.23 +multipart/alternative part, rather than having their own
    7.24 +rfc822-headers part.
    7.25 +
    7.26 +--aaaaaaaaaaaa
    7.27 +Content-Type: text/html
    7.28 +
    7.29 +
    7.30 +
    7.31 +
    7.32 +
    7.33 +
    7.34 +This is a test
    7.35 +message on multiple lines
    7.36 +
    7.37 +with a silly bit more.
    7.38 +
    7.39 +
    7.40 +and a .sig here.
    7.41 +
    7.42 +
    7.43 +
    7.44 +
    7.45 +--aaaaaaaaaaaa
    7.46 +
    7.47 +--bbbbbbbbbbbb
    7.48 +Content-Type: application/pgp-signature
    7.49 +
    7.50 +-----BEGIN PGP SIGNATURE-----
    7.51 +
    7.52 +iQEcBAABCAAGBQJVv1AlAAoJEBX7TryOLWy3uIMIAINYRcblN4PXmoLmO8JZfXzB
    7.53 +afKGkrxAkyFgRb2hs65OJgRb2UZrDqWtiiGxIcW6/JO/g/A3so3dlQFx0lSTxWMe
    7.54 +YCcFqoPtWphdTuenKZIE3KqQmKgVq7sJz9cNpr6JAMvG0g8S/OdO+mFjPe+UUJJd
    7.55 +i4z0kJkatnzfzY9R88R+PONxLNLv4gAP1omPFmLAwaZ9gP6x6nCKm4VXGQp3PYQL
    7.56 +FlDrBnaIotjp4Fr55gZcT1wSxWO1/jh+yNm8uGEQABSnXezXX6c98YO372QGgVlQ
    7.57 +7iqjEO7YAPqQEoAupeHZgFl2Ddh4eQtuiw+BEItphtC+uRNPniS/BeBB+dppUd0=
    7.58 +=IFof
    7.59 +-----END PGP SIGNATURE-----
    7.60 +
    7.61 +--bbbbbbbbbbbb
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/test/test_mails/memoryhole_H.eml	Wed Oct 12 15:33:55 2016 +0200
     8.3 @@ -0,0 +1,37 @@
     8.4 +Subject: headers in top-level MIME: tampered subject and from
     8.5 +Message-ID: H@memoryhole.example
     8.6 +Date: Wed, 29 Jul 2015 09:31:44 +0100
     8.7 +To: Julia 
     8.8 +From: Eve 
     8.9 +MIME-Version: 1.0
    8.10 +Content-Type: multipart/signed; micalg="pgp-sha256";
    8.11 + protocol="application/pgp-signature"; boundary="bbbbbbbbbbbb"
    8.12 +
    8.13 +--bbbbbbbbbbbb
    8.14 +Content-Type: text/plain; boundary="aaaaaaaaaaaa"
    8.15 +Subject: headers in top-level MIME: subject restored to original
    8.16 +From: Winston 
    8.17 +
    8.18 +This email demonstrates including the memoryhole headers inside the
    8.19 +top-level MIME object. The signed Subject and From are headers of the
    8.20 +text/plain part, rather than having their own rfc822-headers part.
    8.21 +
    8.22 +This email has been tampered with. It was originally sent by Winston,
    8.23 +who signed the body (including the memoryhole headers). Eve has
    8.24 +fiddled with the From and Subject headers in-flight.
    8.25 +
    8.26 +--bbbbbbbbbbbb
    8.27 +Content-Type: application/pgp-signature
    8.28 +
    8.29 +-----BEGIN PGP SIGNATURE-----
    8.30 +
    8.31 +iQEcBAABCAAGBQJVv1AmAAoJEBX7TryOLWy3KI8H/3kcjcx1Oc7nL8YIk9U+NLer
    8.32 +gkvwLSTJIgAeN0hFLexkaZw/b2yVyD4SrAua10nO+88vWuP2LLn0BZ+7+ZSioslk
    8.33 +HwijVHijjBqlImkzWfmO5CwEDiVSTup3836x0zgwCXXvhRnVMtb0pah2QI0+4wuQ
    8.34 +m62oHI+eBz2FfPtdg7v8KT59l5dnn5oxX4nBZEL01YcBT791/mFZiORrOBGhtLU/
    8.35 +4/qlOy17MoEqMmdur1UTb9LvZsv8+N1HtTLOLb4PLRNzbKof2/Jlf7drCiojn9nK
    8.36 +lCF1cd/vLG7M/GBr4p+czePjEdy4YHIiNWhM1DMGR2bkZsFFq/K51/SZYIUi5Xs=
    8.37 +=/qbi
    8.38 +-----END PGP SIGNATURE-----
    8.39 +
    8.40 +--bbbbbbbbbbbb
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/test/test_mails/memoryhole_mails_README	Wed Oct 12 15:33:55 2016 +0200
     9.3 @@ -0,0 +1,115 @@
     9.4 +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.
     9.5 +
     9.6 +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:
     9.7 +
     9.8 +Contents
     9.9 +
    9.10 +    A: alternative text/html message with embedded header, signed
    9.11 +    B: alternative text/html message with embedded header, unsigned
    9.12 +    C: alternative text/html message with embedded header, signed, with Subject tampered
    9.13 +    D: alternative text/html message with embedded header, encrypted+unsigned
    9.14 +    E: alternative text/html message with embedded header, encrypted+signed
    9.15 +    F: headers in top-level MIME object: signed plaintext email
    9.16 +    G: headers in top-level MIME object: signed multipart email
    9.17 +    H: headers in top-level MIME: tampered subject and from
    9.18 +
    9.19 +Email A:
    9.20 +
    9.21 +alternative text/html message with embedded header, signed
    9.22 +
    9.23 +└┬╴multipart/signed 1711 bytes (Subject: alternative text/html message with embedded header, signed)
    9.24 + ├┬╴multipart/mixed 827 bytes
    9.25 + │├─╴text/rfc822-headers attachment 205 bytes
    9.26 + │└┬╴multipart/alternative 450 bytes
    9.27 + │ ├─╴text/plain 86 bytes
    9.28 + │ └─╴text/html 202 bytes
    9.29 + └─╴application/pgp-signature 455 bytes
    9.30 +
    9.31 +
    9.32 +Email B:
    9.33 +
    9.34 +alternative text/html message with embedded header, unsigned
    9.35 +
    9.36 +└┬╴multipart/mixed 1036 bytes (Subject: alternative text/html message with embedded header, unsigned)
    9.37 + ├─╴text/rfc822-headers attachment 207 bytes
    9.38 + └┬╴multipart/alternative 450 bytes
    9.39 +  ├─╴text/plain 86 bytes
    9.40 +  └─╴text/html 202 bytes
    9.41 +
    9.42 +
    9.43 +Email C:
    9.44 +
    9.45 +alternative text/html message with embedded header, signed, with Subject tampered
    9.46 +
    9.47 +└┬╴multipart/signed 1706 bytes (Subject: the subject has been tampered!)
    9.48 + ├┬╴multipart/mixed 850 bytes
    9.49 + │├─╴text/rfc822-headers attachment 228 bytes
    9.50 + │└┬╴multipart/alternative 450 bytes
    9.51 + │ ├─╴text/plain 86 bytes
    9.52 + │ └─╴text/html 202 bytes
    9.53 + └─╴application/pgp-signature 455 bytes
    9.54 +
    9.55 +
    9.56 +Email D:
    9.57 +
    9.58 +alternative text/html message with embedded header, encrypted+unsigned
    9.59 +
    9.60 +└┬╴multipart/encrypted 2496 bytes (Subject: Memory Hole Encrypted Message)
    9.61 + ├─╴application/pgp-encrypted 10 bytes
    9.62 + └─╴application/octet-stream 2064 bytes
    9.63 +
    9.64 +
    9.65 +Email E:
    9.66 +
    9.67 +alternative text/html message with embedded header, encrypted+signed
    9.68 +
    9.69 +└┬╴multipart/encrypted 2903 bytes (Subject: Memory Hole Encrypted Message)
    9.70 + ├─╴application/pgp-encrypted 10 bytes
    9.71 + └─╴application/octet-stream 2471 bytes
    9.72 +
    9.73 +
    9.74 +Email F:
    9.75 +
    9.76 +headers in top-level MIME object: signed plaintext email
    9.77 +
    9.78 +This message demonstrates including the memoryhole headers inside the
    9.79 +top-level MIME object. The signed Subject and From are headers of the
    9.80 +text/plain part, rather than having their own rfc822-headers part.
    9.81 +
    9.82 +└┬╴multipart/signed 1242 bytes (Subject: headers in top-level MIME object: signed plaintext email)
    9.83 + ├─╴text/plain 207 bytes (Subject: headers in top-level MIME object: signed plaintext email)
    9.84 + └─╴application/pgp-signature 455 bytes
    9.85 +
    9.86 +
    9.87 +Email G:
    9.88 +
    9.89 +headers in top-level MIME object: signed multipart email
    9.90 +
    9.91 +This message demonstrates including the memoryhole headers inside the
    9.92 +top-level MIME object. The signed Subject and From are headers of the
    9.93 +multipart/alternative part, rather than having their own
    9.94 +rfc822-headers part.
    9.95 +
    9.96 +└┬╴multipart/signed 1566 bytes (Subject: headers in top-level MIME object: signed multipart email)
    9.97 + ├┬╴multipart/alternative 684 bytes (Subject: headers in top-level MIME object: signed multipart email)
    9.98 + │├─╴text/plain 218 bytes
    9.99 + │└─╴text/html 202 bytes
   9.100 + └─╴application/pgp-signature 455 bytes
   9.101 +
   9.102 +
   9.103 +Email H:
   9.104 +
   9.105 +headers in top-level MIME: tampered subject and from
   9.106 +
   9.107 +This email demonstrates including the memoryhole headers inside the
   9.108 +top-level MIME object. The signed Subject and From are headers of the
   9.109 +text/plain part, rather than having their own rfc822-headers part.
   9.110 +
   9.111 +This email has been tampered with. It was originally sent by Winston,
   9.112 +who signed the body (including the memoryhole headers). Eve has
   9.113 +fiddled with the From and Subject headers in-flight.
   9.114 +
   9.115 +└┬╴multipart/signed 1416 bytes (Subject: headers in top-level MIME: tampered subject and from)
   9.116 + ├─╴text/plain 393 bytes (Subject: headers in top-level MIME: subject restored to original)
   9.117 + └─╴application/pgp-signature 455 bytes
   9.118 +