邮件列表模式下,部分首帖未发送邮件

谢谢 Cameron,很高兴收到!我将把这个话题安排在
一个月后关闭,如果它被关闭并且出现另一个问题,请随时
打开一个新的 :slight_smile:

我可能找到了我的一个差异。

我收到了 I can't install libraries - #2 by MRAB - Python Help - Discussions on Python.org 的电子邮件
但没有收到第一帖的电子邮件。我已附加在此处收到的标题。

您能否查看您的记录,了解第一帖的电子邮件情况?它应该有 message-id \u003cdiscourse/post/72724@discuss.python.org\u003e
但这个 message-id 在我的邮件过滤器日志中没有显示。

谢谢,
Cameron Simpson \u003ccs@cskk.id.au\u003e

第二帖的标题是:

Return-Path: \u003cincoming+verp-7a67e4e43670863710e0bebf82466d20@python1.discoursemail.com\u003e
X-Original-To: cs@cskk.id.au
Delivered-To: cs@cskk.id.au
Received: from mx-out-01b.sea2.discourse.cloud (mx-out-01b.sea2.discourse.cloud [184.105.176.58])
         (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))
         (No client certificate requested)
         by mail.cskk.id.au (Postfix) with ESMTPS id 2F85142106
         for \u003ccs@cskk.id.au\u003e; Tue,  1 Nov 2022 02:06:11 +0000 (UTC)
Received: from localhost.localdomain (unknown [IPv6:2602:fd3f:3:207:0:242:ac11:b])
         by mx-out-01b.sea2.discourse.cloud (Postfix) with ESMTP id 66C61100455
         for \u003ccs@cskk.id.au\u003e; Tue,  1 Nov 2022 02:06:09 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=discoursemail.com;
         s=sea2; t=1667268369;
         bh=dqc9opBcaL3Sz5b7apIIcM2hRhdys9o0z9IGxAzk4i4=;
         h=Date:From:Reply-To:To:In-Reply-To:References:Subject:
         List-Unsubscribe:List-ID:List-Archive;
         b=nuQKrBE6H2us2CerZzzR2yDWOnGG7R4kRgmH21VHpzOh/onYgIPtSFsguZ1nDYXXr
         t/+2pfIXGpl/wRRPuAppWH7IOLzJt5bv/+QbAflcKduBbATnRoVnEokbVLRJjg7fmS
         vvYcR3BPcaWV5LbVhw3/9F32/XqDtyHvb04kS0lmS230xvEN+IVJ1F43fAq+OOfp2j
         xboY8fyRJJ245gCTO07Bx/AE5tdrJ5sFrOeTmlz0gn9NJaKYgQxEOxqtWSulX8IyT0
         erHwnaEg6prJFWjGtxrhiZfe5EtqMVop5XaTI4hbxD++9ndJIHS5rCNn9jjurwWB4u
         5UToaINnQoDsQ==
1 个赞

跟进。看起来 Discourse 截断了我粘贴的标题。
我将通过网络论坛而不是电子邮件在此处输入它们:

这可能是一个显示问题。当我编辑此帖子时显示的原始文本包含完整的标题。我已经将它们上传为文件。我想。- Cameron
hdrs.txt (2.7 KB)

1 个赞

@martin 你看到上面的帖子了吗?看起来第一个帖子没有发送到电子邮件。- Cameron

1 个赞

是的,谢谢你,卡梅隆,我的错,我忘了回复,这周我一直忙于其他工作,而且我还在周中休息了一天。我设置了一个提醒,周一会处理这件事并妥善回复。

1 个赞

没关系,我只是确认一下。- 卡梅隆

2 个赞

已确认这是我们 Python 邮件日志中正确的 Message-ID。我认为在这种情况下可能发生的是,OP 最初发布在“Packaging”类别下,然后不久后更改为“Python Help”类别,这可能影响了邮件的发送。看起来 OP 只有 5 人收到了邮件,而第二次发帖有 30 人(包括你)收到了邮件。也许可以留意一下,看看这种情况是否再次发生,以便我们能发现是否存在某种模式——我们的邮件系统中有许多短路机制可以防止在某些情况下发送邮件,我们可能只是在这里遇到了其中一种情况。

1 个赞

[quote=“Cameron Simpson, post:94, topic:233499,
username:cameron-simpson”]
It should have message-id <discource/post/72724@discuss.python.org>
but that message-id does not show in my mail filer logs here.
[/quote]

已确认这是 python 的电子邮件日志中正确的 Message-ID

好的。

I think maybe what has happened in this case is that the OP was posted under the “Packaging” category and then not long after changed to the “Python Help” category, which could have affected the sending of emails. It looks like only 5 people were emailed for the OP, and 30 were emailed (including you) for the second post. Maybe just keep an eye out and see if this happens again and we can see if a pattern develops – there are many short circuits in our email system to prevent emails being sent in certain cases, and we may have just run into one here.

这很有趣。我的邮件列表模式已开启,据我所知,“Packaging”类别对我来说并没有被静音。我本不应该收到 OP 的邮件吗?

将我作为一个未收到邮件的已知案例来检查短路是否会有所帮助?

祝好,
Cameron Simpson cs@cskk.id.au

1 个赞

这是另一个我收到了第二篇帖子但未收到 OP 的示例:

2 个赞

我又收到第二个帖子,而不是 OP。

2 个赞

再举一个例子:https://discuss.python.org/t/why-i-cant-do-conda-activate-env-in-jupyterlab/18034,我看到了第二个帖子但没有看到第一个。尽管 OP 是八月份的。

1 个赞

还有另一个:os.scandir should have an option to also yield the path itself - Ideas - Discussions on Python.org

对于这个帖子,我只有第 6 篇。

@martin,我们能撤销这个主题的自动关闭吗?

2 个赞

抱歉,目前内部有很多事情在处理。感谢您发送更多示例,我会尝试从中找出规律。

您是指元(meta)上的这个主题吗?还是您链接到的这个主题 os.scandir should have an option to also yield the path itself - Ideas - Discussions on Python.org ?这两个主题似乎都没有自动关闭功能。

抱歉,目前内部事务繁多。感谢您发送更多示例,我会从中寻找规律。

没关系,不着急。

您是指元上的这个主题吗?

这个元上的帖子。昨天(?)它显示将在2周后自动关闭,根据您在此处的设置:

但现在似乎已关闭,所以一切都好。

祝好,
Cameron Simpson cs@cskk.id.au

1 个赞

抱歉,那是我做的。:slightly_smiling_face: 在看到您要求关闭计时器后,我将其移除了。我点了一个小小的“赞”作为回应,但这可能是一个过于微妙的表示。:slightly_smiling_face:

3 个赞

对我来说太含蓄了。正如你从帖子中可能猜到的,我是一个邮件优先的用户。

而且,我读了《雪崩》,但没注意到主角的名字是个双关语。所以,如果你想用含蓄的方式,你是在和我打一场艰苦的仗 :slight_smile:

祝好,
Cameron

5 个赞

我现在将此作为示例。到目前为止,在逐步调试代码时,我还没有发现任何问题。根据我们的 EmailLog 表,没有人收到了该主题 OP 的电子邮件,但尚不清楚原因,因为如果我按照 discourse/app/jobs/regular/notify_mailing_list_subscribers.rb at 23ac0cf8f1f5d7aede3991c6947530dc1af7f7a2 · discourse/discourse · GitHub 的步骤进行操作,并在发送电子邮件之前停止,那么看起来会发生正确的事情。SkippedEmailLog 中也没有 OP 的记录。我猜想,可能是该作业失败了,然后在每次后续重试时都失败了,但我对此表示怀疑。

我刚刚调整了我们托管 Python 的一些设置,以便能够看到这些作业更详细的日志信息。请留意,如果您在未来几周内再次注意到这种情况,请告诉我,我希望能找到问题所在。

1 个赞

[quote=“Cameron Simpson, post:102, topic:233499,
username:cameron-simpson”]
And another example where I received the second post and not the OP.
[/quote]

我现在用这个作为例子。到目前为止,在逐步调试代码时,我还没有发现任何问题。根据我们的 EmailLog 表,没有人收到该主题 OP 的电子邮件,但原因尚不清楚,因为如果我按照 discourse/app/jobs/regular/notify_mailing_list_subscribers.rb at 23ac0cf8f1f5d7aede3991c6947530dc1af7f7a2 · discourse/discourse · GitHub 的相同步骤进行操作,并在发送电子邮件之前停止,看起来正确的事情将会发生。SkippedEmailLog 中也没有 OP 的记录。我猜想可能是该作业失败了,然后在每次后续重试时都失败了,但我对此表示怀疑。

对。我也看不出那段代码有什么问题,除非 NOT EXISTS 的东西存在一些奇怪的问题。但在我看来,它看起来是正常的。

我刚刚调整了我们托管 Python 的一些设置,以便能够看到这些作业更详细的日志信息。请留意,如果您在未来几周内再次遇到这种情况,请告诉我,我希望能找到问题所在。

谢谢。我看到新项目时会及时向您汇报。

此致,
Cameron Simpson cs@cskk.id.au

1 个赞

今日又有一个例子:Printing only duplicates from a list - Python Help - Discussions on Python.org

我收到了第二个帖子,但没有收到第一个帖子:

[~/var/log/mailfiler]fleet2*\u003e agf discourse/post/78942@discuss.python.org *log
main.log
5551250:2022-12-24 08:25:19,937 Level 25 mailfiler: monitor: +spool:   +spool/new/1671830717.M998823P71474Q174.fleet2.l 	<discourse/post/78942@discuss.python.org>
5552015:2022-12-24 08:25:37,173 Level 25 mailfiler: monitor: +spool-in:   +spool-in/new/1671830719.#5973M944325P789 	<discourse/post/78942@discuss.python.org>

spool-in.log
3606809:2022-12-24 08:25:37,173 Level 25   +spool-in/new/1671830719.#5973M944325P789 	<discourse/post/78942@discuss.python.org>

spool.log
3243627:2022-12-24 08:25:19,937 Level 25   +spool/new/1671830717.M998823P71474Q174.fleet2.l 	<discourse/post/78942@discuss.python.org>
[~/var/log/mailfiler]fleet2*\u003e agf discourse/post/78934@discuss.python.org *log
[~/var/log/mailfiler]fleet2*\u003e

显示了我日志中第二个帖子 message-id 的 grep,然后是第一个帖子 message-id,但没有看到。

祝好,
Cameron

还有今天的另一个:Serve HTML from extensionless URLs in http.server - #2 by Rosuav - Ideas - Discussions on Python.org
时间上的巧合(这和前一个实例都是今天早上发生的,在此之前似乎有一段平静期)让我怀疑我们是不是遇到了一个简单的“是否应该发送?”的逻辑错误,而是某种更广泛的情况导致它不起作用,例如 Discourse 实例重启或其他资源问题。

类似地搜索回复消息 ID,然后是 in-reply-to(OP)消息 ID:

[~/var/log/mailfiler]fleet2*\u003e agf discourse/post/78998@discuss.python.org *log
main.log
5553805:2022-12-24 08:42:48,500 Level 25 mailfiler: monitor: +spool:   +spool/new/1671831759.M979332P32679Q9.fleet2.l <discourse/post/78998@discuss.python.org>
5553809:2022-12-24 08:42:48,522 Level 25 mailfiler: monitor: +spool-in:   +spool-in/new/1671831768.#6332M514534P789 <discourse/post/78998@discuss.python.org>

spool-in.log
3607754:2022-12-24 08:42:48,522 Level 25   +spool-in/new/1671831768.#6332M514534P789 <discourse/post/78998@discuss.python.org>

spool.log
3244519:2022-12-24 08:42:48,500 Level 25   +spool/new/1671831759.M979332P32679Q9.fleet2.l <discourse/post/78998@discuss.python.org>
[~/var/log/mailfiler]fleet2*\u003e agf discourse/post/78967@discuss.python.org *log
[~/var/log/mailfiler]fleet2*\u003e

此致,
Cameron

2 个赞

感谢您提供这两个例子,Cameron。这确实可能是这样的原因,也许与我们的 Sidekiq 后台作业出错有关,或者由于它们存储在 Redis 中而导致其他问题。

已确认在该主题的 OP 中没有您用户的 EmailLog 记录。目前我没有发现其他线索,这是一个非常令人沮丧的 bug,难以追踪其根本原因。

不幸的是,这只是一个月的时间,所以它已经被一个自动化系统关闭了。我刚刚再次开启了我们详细的日志记录功能,为期 3 个月,这样我们就可以看看是否有更多 Python 的例子出现,以便我进行查看。

1 个赞