fix(): fix imap parser
Some checks failed
Build Self-Hosting Docker Images / Build self-host docker images (push) Has been cancelled
Build Self-Hosting Docker Images / Build self-host web images (push) Has been cancelled
Build Self-Hosting Docker Images / merge (push) Has been cancelled

This commit is contained in:
Thomas Rogers 2026-01-04 20:48:00 +01:00
parent cf01144ec2
commit e379a9bb74
4 changed files with 12 additions and 4 deletions

View file

@ -11,7 +11,7 @@
},
"dependencies": {
"@omnivore/utils": "1.0.0",
"axios": "^1.7.7",
"axios": "1.12.0",
"imapflow": "^1.0.181",
"mailparser": "^3.7.1"
},
@ -23,7 +23,7 @@
"@types/html-to-text": "^9.0.2",
"@types/jsdom": "^21.1.3",
"@types/mailparser": "^3.4.5",
"@types/node": "^22.10.7",
"@types/node": "24.1.0",
"@types/pg": "^8.10.5",
"@types/pg-format": "^1.0.3",
"@types/urlsafe-base64": "^1.0.28",

View file

@ -8,7 +8,7 @@ void (() => {
emailObserver$
.pipe(
mergeMap((email: FetchMessageObject) =>
simpleParser(email.source.toString())
simpleParser(email.source?.toString() ?? '')
),
map(convertToMailObject),
mergeMap(sendToEmailApi)

View file

@ -4,6 +4,5 @@
"include": ["./src/**/*"],
"compilerOptions": {
"outDir": "dist",
"typeRoots": ["./../../node_modules/pgvector/types"]
}
}

View file

@ -10941,6 +10941,15 @@ axios@*, axios@^1.0.0, axios@^1.2.0, axios@^1.2.2, axios@^1.4.0, axios@^1.5.1, a
form-data "^4.0.4"
proxy-from-env "^1.1.0"
axios@1.12.0:
version "1.12.0"
resolved "https://registry.yarnpkg.com/axios/-/axios-1.12.0.tgz#11248459be05a5ee493485628fa0e4323d0abfc3"
integrity sha512-oXTDccv8PcfjZmPGlWsPSwtOJCZ/b6W5jAMCNcfwJbCzDckwG0jrYJFaWH1yvivfCXjVzV/SPDEhMB3Q+DSurg==
dependencies:
follow-redirects "^1.15.6"
form-data "^4.0.4"
proxy-from-env "^1.1.0"
axios@^0.26.0:
version "0.26.1"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.26.1.tgz#1ede41c51fcf51bbbd6fd43669caaa4f0495aaa9"