Skip to content

Commit

Permalink
fix(documentstore): do not report missing email as an error
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Oct 15, 2023
1 parent db25851 commit 58130c7
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion data/google-crawlers.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"creationTime": "2023-10-03T22:00:24.000000",
"creationTime": "2023-10-10T22:00:33.000000",
"prefixes": [
{
"ipv6Prefix": "2001:4860:4801:2008::/64"
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
"@postalsys/email-text-tools": "2.1.1",
"@postalsys/hecks": "3.0.0-fork.3",
"@postalsys/templates": "1.0.5",
"ace-builds": "1.28.0",
"ace-builds": "1.30.0",
"base32.js": "0.1.0",
"bull-arena": "4.0.1",
"bullmq": "4.12.0",
"bullmq": "4.12.4",
"compare-versions": "6.1.0",
"dotenv": "16.3.1",
"encoding-japanese": "2.0.0",
Expand All @@ -77,7 +77,7 @@
"ioredfour": "1.2.0-ioredis-07",
"ioredis": "5.3.2",
"ipaddr.js": "2.1.0",
"joi": "17.10.2",
"joi": "17.11.0",
"jquery": "3.7.1",
"js-beautify": "1.14.9",
"libbase64": "1.2.1",
Expand All @@ -86,15 +86,15 @@
"license-checker": "25.0.1",
"mailparser": "3.6.5",
"mailsplit": "5.4.0",
"marked": "9.0.3",
"marked": "9.1.2",
"minimist": "1.2.8",
"msgpack5": "6.0.2",
"murmurhash": "2.0.1",
"nanoid": "3.3.4",
"node-gettext": "3.0.0",
"nodemailer": "6.9.5",
"pino": "8.15.3",
"prom-client": "14.2.0",
"nodemailer": "6.9.6",
"pino": "8.16.0",
"prom-client": "15.0.0",
"psl": "1.9.0",
"pubface": "1.0.6",
"punycode": "2.3.0",
Expand All @@ -104,22 +104,22 @@
"speakeasy": "2.0.0",
"startbootstrap-sb-admin-2": "3.3.7",
"timezones-list": "3.0.2",
"undici": "5.25.3",
"undici": "5.26.3",
"uuid": "9.0.1",
"wild-config": "1.7.0",
"wild-config": "1.7.1",
"xml2js": "0.6.2"
},
"devDependencies": {
"chai": "4.3.10",
"eerawlog": "1.5.1",
"eslint": "8.50.0",
"eslint": "8.51.0",
"eslint-config-nodemailer": "1.2.0",
"eslint-config-prettier": "9.0.0",
"grunt": "1.6.1",
"grunt-cli": "1.4.3",
"grunt-eslint": "24.3.0",
"jsxgettext": "0.11.0",
"pino-pretty": "10.2.0",
"pino-pretty": "10.2.3",
"pkg": "5.8.1",
"resedit": "2.0.0",
"xgettext-template": "5.0.0"
Expand Down
2 changes: 1 addition & 1 deletion static/js/ace/ace.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/js/ace/ext-language_tools.js

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion workers/documents.js
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,11 @@ const documentsWorker = new Worker(
});
messageIdHeader = (getResult?._source?.messageId || '').toString().trim();
} catch (err) {
logger.error({ msg: 'Failed to retrieve Message-ID for deleted email', account: job.data.account, message: messageId, err });
if (err.name === 'ResponseError') {
logger.trace({ msg: 'Failed to retrieve Message-ID for deleted email', account: job.data.account, message: messageId });
} else {
logger.error({ msg: 'Failed to retrieve Message-ID for deleted email', account: job.data.account, message: messageId, err });
}
}

deleteResult = await client.delete({
Expand Down

0 comments on commit 58130c7

Please sign in to comment.