feat: add ENABLE_CHECK_JUNK_MAIL (#469)

This commit is contained in:
Dream Hunter
2024-11-07 00:58:15 +08:00
committed by GitHub
parent 49b3f10838
commit ddfa2c5d03
9 changed files with 72 additions and 2 deletions
+3 -1
View File
@@ -260,7 +260,8 @@ export const commonParseMail = async (raw_mail: string | undefined | null): Prom
sender: string,
subject: string,
text: string,
html: string
html: string,
headers?: Record<string, string>[]
} | undefined> => {
if (!raw_mail) {
return undefined;
@@ -287,6 +288,7 @@ export const commonParseMail = async (raw_mail: string | undefined | null): Prom
subject: parsedEmail.subject || "",
text: parsedEmail.text || "",
html: parsedEmail.html || "",
headers: parsedEmail.headers || [],
};
}
catch (e) {