|
|
@ -12,17 +12,8 @@ Bob Bourne <bob.bourne@peptest.ch> |
|
|
|
>>> m.to = [you] |
|
|
|
>>> m.shortmsg = "let's meet next week" |
|
|
|
>>> m.longmsg = "Please call me back" |
|
|
|
>>> print(str(m).replace('\\r', '')) |
|
|
|
From: Alice Smith <alice.smith@peptest.ch> |
|
|
|
To: Bob Bourne <bob.bourne@peptest.ch> |
|
|
|
Subject: let's meet next week |
|
|
|
MIME-Version: 1.0 |
|
|
|
Content-Type: text/plain; charset="utf-8" |
|
|
|
Content-Transfer-Encoding: quoted-printable |
|
|
|
Content-Disposition: inline; filename="msg.txt" |
|
|
|
<BLANKLINE> |
|
|
|
Please call me back |
|
|
|
>>> m2 = m.encrypt() |
|
|
|
>>> print(m2) |
|
|
|
>>> m3, keys, rating, flags = m2.decrypt() |
|
|
|
>>> rating |
|
|
|
pEp.PEP_rating.PEP_rating_reliable |
|
|
|