剥离传入的电子邮件附件不会通知发件人

Continuing the discussion from Incoming emails with attachments are not processed:

It appears that when an attachment is stripped off (e.g., because it’s not on the approved file type list) the user is never notified that the attachment did not go through.

This causes users to think/assume we got their attachment when in fact it never got included in their post.

Stripping attachments should notify the user (similar to a failed post due to address mismatch or other problems) that the attachment was not included because the file type is not allowed. (Or too big, etc.)

4 个赞

Back on topic, cleared out a ton of noise in this topic.

There are a lot of email clients that include little BS “attachments” with every email they send that contain signatures, calendar files, and other meaningless errata.

If we sent a bounce email on every one, for every “unknown” attachment that was emailed in, that’d be extremely noisy.

2 个赞

Any actual numbers here? Calendar files are usually only sent when someone wants to communicate about an event. Email signatures perhaps but those are usually only for HTML formatted emails right?

I have seen these things but not convinced it’s really a problem here.

One could also only notify when removing a “legit” type such as accepted whitelist matches.

2 个赞

All E-Mails I send have a smime.p7s attachment.

If dropping attachments notifies the sender, this needs a whitelist of filenames where dropping is harmless.

1 个赞

抱歉打扰,但我发现 Discourse 无法接受和处理带有附件的入站电子邮件。

另外,Incoming emails with attachments are not processed 这个链接已失效,所以我无法查看该主题。

我正在使用 Mailgun,并设置了一个 Discourse 群组,通过电子邮件地址接收消息。Mailgun 会通过 HTTP 调用我的 Discourse 安装,将这些电子邮件作为消息传递,但这些 HTTP 调用会因 406 Not acceptable 而失败。该错误官方描述为:

资源有效,但无法以请求中的 Accept 标头指定的格式提供。

Discourse 日志中没有关于这些 HTTP 406 错误的记录 :confused:

一个不太常见的错误是 Mailgun 报告 413 Request Entity Too Large,我理解这个错误,但不确定如何在 Discourse 端解决。我该如何配置 Discourse 来接受这些?