-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a python library to strip signatures.
- Loading branch information
Showing
5 changed files
with
87 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import sys | ||
import talon | ||
from talon import quotations | ||
|
||
talon.init() | ||
|
||
reply = quotations.extract_from_html(sys.argv[1]) | ||
print(reply) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
Return-path: <[email protected]> | ||
Envelope-to: [email protected] | ||
Delivery-date: Thu, 18 Oct 2012 18:05:49 +0100 | ||
Received: from host86-178-142-72.range86-178.btcentralplus.com ([86.178.142.72]:60845 helo=[192.168.1.67]) | ||
by hera.krystal.co.uk with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) | ||
(Exim 4.80) | ||
(envelope-from <[email protected]>) | ||
id 1TOtXZ-002C4J-1a | ||
for [email protected]; Thu, 18 Oct 2012 18:05:49 +0100 | ||
essage-ID: <[email protected]> | ||
Date: Thu, 18 Oct 2012 18:05:51 +0100 | ||
From: Andy Allan <[email protected]> | ||
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120912 Thunderbird/15.0.1 | ||
IME-Version: 1.0 | ||
To: [email protected] | ||
Subject: Email with attached image | ||
Content-Type: multipart/mixed; | ||
boundary="------------090907060808010805080606" | ||
|
||
This is a multi-part message in MIME format. | ||
--------------090907060808010805080606 | ||
Content-Type: text/plain; charset=ISO-8859-1 | ||
Content-Transfer-Encoding: 7bit | ||
|
||
This email has a plain message body. | ||
|
||
Nikolai | ||
|
||
|
||
--------------090907060808010805080606 | ||
Content-Type: text/html; charset="UTF-8" | ||
Content-Transfer-Encoding: quoted-printable | ||
|
||
<p> | ||
This email has an HTML message body. | ||
</p> | ||
<br> | ||
<p> | ||
Nikolai | ||
</p> | ||
<br> | ||
<div class=3D"gmail_quote"> | ||
<div dir=3D"ltr"> | ||
On Mon, 10 Dec 2018 at 09:10, Martin wrote: | ||
<br> | ||
</div> | ||
<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> | ||
<div dir=3D"ltr">Hi Nikolai,</div> | ||
<br> | ||
<div>Here is the a message I'd like a reply too.</div> | ||
</blockquote> | ||
</div> |