Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert <div> to <p> tags from HTML emails
Fixes #820
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 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
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,33 @@ | ||
Return-Path: <george@example.net> | ||
Date: Fri, 11 Jan 2019 11:08:02 +0000 | ||
From: George Coulouris <george@example.net> | ||
To: message-2@cyclescape.org | ||
Message-ID: <4B61E3D3-5D34-436E-BCD5-3A03DC7F550C@net> | ||
In-Reply-To: <message-2@cyclescape.org> | ||
Subject: Re: [Cyclescape] junction revisions | ||
Mime-Version: 1.0 | ||
Content-Type: multipart/alternative; | ||
boundary="Apple-Mail=_C821455D-1F0C-4FD1-A56E-B7CC812C2296" | ||
Content-Transfer-Encoding: 7bit | ||
Envelope-to: message-2@cyclescape.org | ||
|
||
--Apple-Mail=_C821455D-1F0C-4FD1-A56E-B7CC812C2296 | ||
Content-Type: text/plain; | ||
charset=utf-8 | ||
Content-Transfer-Encoding: quoted-printable | ||
|
||
Text split by divs=0D | ||
and not by p tags=0D | ||
|
||
--Apple-Mail=_C821455D-1F0C-4FD1-A56E-B7CC812C2296 | ||
Content-Type: text/html; | ||
charset=utf-8 | ||
Content-Transfer-Encoding: quoted-printable | ||
|
||
<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; chars= | ||
et=3Dutf-8"></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mod= | ||
e: space; line-break: after-white-space;" class=3D""><div class=3D"">&nbs= | ||
p; Text split by divs</div><div class=3D"">And not by p tags</div></body>= | ||
</html>= | ||
|
||
--Apple-Mail=_C821455D-1F0C-4FD1-A56E-B7CC812C2296-- |
ca23fd7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nikolai-b Could you anonymise lines 1 (e-mail) and 3 (name) of that test example, and ideally ensure that any cases of email @cyclescape.org do not stay as such, as they will just generate spam.
ca23fd7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mvl22 george@example.net is already anonymised. Given that there are many links to
@cyclescape.org
(and it is the web address) I don't think it is worth worrying about spam, we should use more sophisticated checks if we think that email is a way of spammers posting content. Currently we are storing all inbound emails in theInboundMail
table but I don't think that is a problem, the table is getting big though (298 MB) but most of these are delivery failure reports and us spamming ourself. I'll make an issue to clear it out though.ca23fd7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was referring to the name part directly after "From", not the e-mail.