Skip to content

Commit 47e64a8

Browse files
committed
fix(webhooks): fixed text.html field for messageNew if notifyWebSafeHtml is true
1 parent a869640 commit 47e64a8

File tree

6 files changed

+49
-38
lines changed

6 files changed

+49
-38
lines changed

data/google-crawlers.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"creationTime": "2024-01-02T23:00:58.000000",
2+
"creationTime": "2024-01-09T23:00:41.000000",
33
"prefixes": [
44
{
55
"ipv6Prefix": "2001:4860:4801:2008::/64"

lib/webhooks.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,10 @@ class WebhooksHandler {
497497
}
498498
}
499499

500-
if (payload.text && payload.text._generatedHtml) {
501-
payload.text.html = payload.text._generatedHtml;
502-
delete payload.text._generatedHtml;
500+
if (payload && payload.data && payload.data.text && payload.data.text._generatedHtml) {
501+
payload.data.text.html = payload.data.text._generatedHtml;
502+
503+
delete payload.data.text._generatedHtml;
503504
}
504505

505506
return payload;

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"libmime": "5.2.1",
8686
"libqp": "2.0.1",
8787
"license-checker": "25.0.1",
88-
"mailparser": "3.6.5",
88+
"mailparser": "3.6.6",
8989
"mailsplit": "5.4.0",
9090
"marked": "9.1.6",
9191
"minimist": "1.2.8",
@@ -104,7 +104,7 @@
104104
"socks": "2.7.1",
105105
"speakeasy": "2.0.0",
106106
"startbootstrap-sb-admin-2": "3.3.7",
107-
"timezones-list": "3.0.2",
107+
"timezones-list": "3.0.3",
108108
"undici": "5.28.2",
109109
"uuid": "9.0.1",
110110
"wild-config": "1.7.1",

sbom.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

static/licenses.html

Lines changed: 36 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!doctype html><html><head><meta charset="utf-8"><title>EmailEngine Licenses</title><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css" integrity="sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn" crossorigin="anonymous"></head><body>
22
<div class="container-fluid">
3-
<h1>EmailEngine v2.39.5</h1><p>EmailEngine includes code from the following software packages:</p>
3+
<h1>EmailEngine v2.39.6</h1><p>EmailEngine includes code from the following software packages:</p>
44
<table class="table table-sm">
55
<tr><thead class="thead-dark"><th>Package</th><th>Version</th><th>License</th><th>Publisher</th><th>Publisher's Email</th><th>Package URL</th></tr>
66
<tbody>
@@ -106,7 +106,7 @@ <h1>EmailEngine v2.39.5</h1><p>EmailEngine includes code from the following soft
106106
</tr>
107107
<tr>
108108
<td><a href="https://npmjs.com/package/@babel/runtime">@babel/runtime</a></td>
109-
<td>7.23.7</td>
109+
<td>7.23.8</td>
110110
<td>MIT</td>
111111
<td>The Babel Team</td>
112112
<td></td>
@@ -636,7 +636,7 @@ <h1>EmailEngine v2.39.5</h1><p>EmailEngine includes code from the following soft
636636
</tr>
637637
<tr>
638638
<td><a href="https://npmjs.com/package/@humanwhocodes/config-array">@humanwhocodes/config-array</a></td>
639-
<td>0.11.13</td>
639+
<td>0.11.14</td>
640640
<td>Apache-2.0</td>
641641
<td>Nicholas C. Zakas</td>
642642
<td></td>
@@ -656,7 +656,7 @@ <h1>EmailEngine v2.39.5</h1><p>EmailEngine includes code from the following soft
656656
</tr>
657657
<tr>
658658
<td><a href="https://npmjs.com/package/@humanwhocodes/object-schema">@humanwhocodes/object-schema</a></td>
659-
<td>2.0.1</td>
659+
<td>2.0.2</td>
660660
<td>BSD-3-Clause</td>
661661
<td>Nicholas C. Zakas</td>
662662
<td></td>
@@ -726,7 +726,7 @@ <h1>EmailEngine v2.39.5</h1><p>EmailEngine includes code from the following soft
726726
</tr>
727727
<tr>
728728
<td><a href="https://npmjs.com/package/@jridgewell/trace-mapping">@jridgewell/trace-mapping</a></td>
729-
<td>0.3.20</td>
729+
<td>0.3.21</td>
730730
<td>MIT</td>
731731
<td>Justin Ridgewell</td>
732732
<td>justin@ridgewell.name</td>
@@ -4554,6 +4554,16 @@ <h1>EmailEngine v2.39.5</h1><p>EmailEngine includes code from the following soft
45544554
</td
45554555
</tr>
45564556
<tr>
4557+
<td><a href="https://npmjs.com/package/linkify-it">linkify-it</a></td>
4558+
<td>5.0.0</td>
4559+
<td>MIT</td>
4560+
<td></td>
4561+
<td></td>
4562+
<td>
4563+
<a href="https://github.com/markdown-it/linkify-it">github.com/markdown-it/linkify-it</a>
4564+
</td
4565+
</tr>
4566+
<tr>
45574567
<td><a href="https://npmjs.com/package/locate-path">locate-path</a></td>
45584568
<td>5.0.0</td>
45594569
<td>MIT</td>
@@ -4645,7 +4655,7 @@ <h1>EmailEngine v2.39.5</h1><p>EmailEngine includes code from the following soft
46454655
</tr>
46464656
<tr>
46474657
<td><a href="https://npmjs.com/package/loupe">loupe</a></td>
4648-
<td>3.0.2</td>
4658+
<td>3.1.0</td>
46494659
<td>MIT</td>
46504660
<td>Veselin Todorov</td>
46514661
<td>hi@vesln.com</td>
@@ -4715,7 +4725,7 @@ <h1>EmailEngine v2.39.5</h1><p>EmailEngine includes code from the following soft
47154725
</tr>
47164726
<tr>
47174727
<td><a href="https://npmjs.com/package/mailparser">mailparser</a></td>
4718-
<td>3.6.5</td>
4728+
<td>3.6.6</td>
47194729
<td>MIT</td>
47204730
<td>Andris Reinman</td>
47214731
<td></td>
@@ -5495,7 +5505,7 @@ <h1>EmailEngine v2.39.5</h1><p>EmailEngine includes code from the following soft
54955505
</tr>
54965506
<tr>
54975507
<td><a href="https://npmjs.com/package/node-abi">node-abi</a></td>
5498-
<td>3.52.0</td>
5508+
<td>3.54.0</td>
54995509
<td>MIT</td>
55005510
<td>Lukas Geiger</td>
55015511
<td></td>
@@ -5555,16 +5565,6 @@ <h1>EmailEngine v2.39.5</h1><p>EmailEngine includes code from the following soft
55555565
</tr>
55565566
<tr>
55575567
<td><a href="https://npmjs.com/package/nodemailer">nodemailer</a></td>
5558-
<td>6.9.3</td>
5559-
<td>MIT-0</td>
5560-
<td>Andris Reinman</td>
5561-
<td></td>
5562-
<td>
5563-
<a href="https://github.com/nodemailer/nodemailer">github.com/nodemailer/nodemailer</a>
5564-
</td
5565-
</tr>
5566-
<tr>
5567-
<td><a href="https://npmjs.com/package/nodemailer">nodemailer</a></td>
55685568
<td>6.9.4</td>
55695569
<td>MIT-0</td>
55705570
<td>Andris Reinman</td>
@@ -6815,7 +6815,7 @@ <h1>EmailEngine v2.39.5</h1><p>EmailEngine includes code from the following soft
68156815
</tr>
68166816
<tr>
68176817
<td><a href="https://npmjs.com/package/set-function-length">set-function-length</a></td>
6818-
<td>1.1.1</td>
6818+
<td>1.2.0</td>
68196819
<td>MIT</td>
68206820
<td>Jordan Harband</td>
68216821
<td>ljharb@gmail.com</td>
@@ -6955,7 +6955,7 @@ <h1>EmailEngine v2.39.5</h1><p>EmailEngine includes code from the following soft
69556955
</tr>
69566956
<tr>
69576957
<td><a href="https://npmjs.com/package/sonic-boom">sonic-boom</a></td>
6958-
<td>3.7.0</td>
6958+
<td>3.8.0</td>
69596959
<td>MIT</td>
69606960
<td>Matteo Collina</td>
69616961
<td>hello@matteocollina.com</td>
@@ -7265,7 +7265,7 @@ <h1>EmailEngine v2.39.5</h1><p>EmailEngine includes code from the following soft
72657265
</tr>
72667266
<tr>
72677267
<td><a href="https://npmjs.com/package/swagger-ui-dist">swagger-ui-dist</a></td>
7268-
<td>5.10.5</td>
7268+
<td>5.11.0</td>
72697269
<td>Apache-2.0</td>
72707270
<td></td>
72717271
<td></td>
@@ -7355,7 +7355,7 @@ <h1>EmailEngine v2.39.5</h1><p>EmailEngine includes code from the following soft
73557355
</tr>
73567356
<tr>
73577357
<td><a href="https://npmjs.com/package/timezones-list">timezones-list</a></td>
7358-
<td>3.0.2</td>
7358+
<td>3.0.3</td>
73597359
<td>MIT</td>
73607360
<td>Om Srivastava</td>
73617361
<td></td>
@@ -7365,17 +7365,17 @@ <h1>EmailEngine v2.39.5</h1><p>EmailEngine includes code from the following soft
73657365
</tr>
73667366
<tr>
73677367
<td><a href="https://npmjs.com/package/tlds">tlds</a></td>
7368-
<td>1.240.0</td>
7368+
<td>1.244.0</td>
73697369
<td>MIT</td>
73707370
<td>Stephen Mathieson</td>
7371-
<td>me@stephenmathieson.com</td>
7371+
<td></td>
73727372
<td>
73737373
<a href="https://github.com/stephenmathieson/node-tlds">github.com/stephenmathieson/node-tlds</a>
73747374
</td
73757375
</tr>
73767376
<tr>
73777377
<td><a href="https://npmjs.com/package/tlds">tlds</a></td>
7378-
<td>1.244.0</td>
7378+
<td>1.247.0</td>
73797379
<td>MIT</td>
73807380
<td>Stephen Mathieson</td>
73817381
<td></td>
@@ -7385,7 +7385,7 @@ <h1>EmailEngine v2.39.5</h1><p>EmailEngine includes code from the following soft
73857385
</tr>
73867386
<tr>
73877387
<td><a href="https://npmjs.com/package/tlds">tlds</a></td>
7388-
<td>1.247.0</td>
7388+
<td>1.248.0</td>
73897389
<td>MIT</td>
73907390
<td>Stephen Mathieson</td>
73917391
<td></td>
@@ -7574,6 +7574,16 @@ <h1>EmailEngine v2.39.5</h1><p>EmailEngine includes code from the following soft
75747574
</td
75757575
</tr>
75767576
<tr>
7577+
<td><a href="https://npmjs.com/package/uc.micro">uc.micro</a></td>
7578+
<td>2.0.0</td>
7579+
<td>MIT</td>
7580+
<td></td>
7581+
<td></td>
7582+
<td>
7583+
<a href="https://github.com/markdown-it/uc.micro">github.com/markdown-it/uc.micro</a>
7584+
</td
7585+
</tr>
7586+
<tr>
75777587
<td><a href="https://npmjs.com/package/uglify-js">uglify-js</a></td>
75787588
<td>3.17.4</td>
75797589
<td>BSD-2-Clause</td>

translations/messages.pot

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
msgid ""
22
msgstr ""
33
"Content-Type: text/plain; charset=ascii\n"
4-
"POT-Creation-Date: 2024-01-03 18:14+0000\n"
4+
"POT-Creation-Date: 2024-01-15 10:21+0000\n"
55

66
#: views/config/license.hbs:48
77
msgid "%d day"
88
msgid_plural "%d days"
99
msgstr[0] ""
1010
msgstr[1] ""
1111

12-
#: views/redirect.hbs:1
13-
msgid "Click <a href=\"%s\">here</a> to continue&mldr;"
14-
msgstr ""
15-
1612
#: views/unsubscribe.hbs:1
1713
#: views/unsubscribe.hbs:79
1814
msgid "Unsubscribe"
@@ -57,6 +53,10 @@ msgstr ""
5753
msgid "Enter your email address"
5854
msgstr ""
5955

56+
#: views/redirect.hbs:1
57+
msgid "Click <a href=\"%s\">here</a> to continue&mldr;"
58+
msgstr ""
59+
6060
#: views/accounts/register/imap.hbs:11
6161
msgid "Your name"
6262
msgstr ""

0 commit comments

Comments
 (0)