mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-09-06 07:57:04 +08:00
feat: |Worker| add REMOVE_ALL_ATTACHMENT and REMOVE_EXCEED_SIZE_ATTAC… (#563)
feat: |Worker| add REMOVE_ALL_ATTACHMENT and REMOVE_EXCEED_SIZE_ATTACHMENT
This commit is contained in:
@@ -23,7 +23,11 @@ export const remove_attachment_if_need = async (
|
||||
const msg = createMimeMessage();
|
||||
if (parsedEmail?.headers) {
|
||||
for (const header of parsedEmail.headers) {
|
||||
msg.setHeader(header["key"], header["value"]);
|
||||
try {
|
||||
msg.setHeader(header["key"], header["value"]);
|
||||
} catch (error) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
}
|
||||
msg.setSender({
|
||||
|
||||
Reference in New Issue
Block a user