mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-07-09 06:23:07 +08:00
feat: add ENABLE_ATTACHMENT config (#99)
This commit is contained in:
@@ -82,7 +82,8 @@ async function email(message, env, ctx) {
|
||||
// process attachments
|
||||
try {
|
||||
if (
|
||||
parsedEmail.attachments
|
||||
env.ENABLE_ATTACHMENT
|
||||
&& parsedEmail.attachments
|
||||
&& parsedEmail.attachments.length > 0
|
||||
) {
|
||||
const { success } = await env.DB.prepare(
|
||||
|
||||
Reference in New Issue
Block a user