Andro
(Andrew Bernard)
13 يناير 2021، 6:01ص
1
أرسل رسائل بريد إلكتروني واردة يدويًا من Gmail. لكن Discourse يرفضها مع شكاوى بأن حقل “الأولوية” (Precedence) مضبوط على “قائمة” (list)، وأن الرسالة مولدة تلقائيًا — بينما هي ليست كذلك: لقد كتبتها أنا.
من رؤوس الرسالة:
Auto-Submitted: auto-generated
Precedence: list
List-ID: The Jackrail | Test <test.jackrail.space>
List-Archive: https://jackrail.space/t/a-test-please-work/579
List-Post: mailto:replies+591d4708be667d02b1c5826953683fba@jackrail.space
ما الذي يحدث؟
steinjer
(Joerg)
14 فبراير 2021، 6:48م
2
منذ الإصدار الحالي، تتطلب ردود البريد الإلكتروني دائمًا الرد على “الرد إلى القائمة”. لم يعد الرد البسيط بالنقر على “رد” في برنامج البريد يعمل.
جديد في Mailheader هو هذا السطر:
List-Post: <mailto:replies+0d953a3a06191ea09a38f1f4f62129c4@forum.example.org>
وبما أن هذا تمت إضافته في الكود (تم تعديل شرط if)، فإن منصة Discourse لدينا تعمل الآن كخادم للبريد الجماعي، رغم أننا لم نختار هذا الخيار.
master ← issue/group-smtp-email-improvements
merged 05:32AM - 05 Jan 21 UTC
Fixes a rare race condition causing the `Imap::Sync` class to create an incoming… email and associated post/topic, which then kicks off the PostAlerter to notify others in the PM about a reply in the topic, but for the OP which is not necessary (because the person emailing the IMAP inbox already knows about the OP). Basically, we should never be sending the group SMTP email for the first post in a topic.
Also in this PR:
* Custom attribute accessors for the to/from/cc addresses on `IncomingEmail`, to parse them from an array to a joined string so the logic for this is only in one place.
* Store extra detail against the `IncomingEmail` created in `GroupSmtpMailer`
* regex test Mail header Reply-To as string instead of Field, which fixes `warning: deprecated Object#=~ is called on Mail::Field; it always returns nil`
* Add DEBUG_IMAP to log all IMAP logs as warnings for easier debugging
* Changed the Rails logging to `ImapSyncLog` in the `GroupSmtpMailer`
martin
(Martin Brennan)
14 فبراير 2021، 10:57م
3
هل تقصد أنك يجب أن ‘ترد على الجميع’؟ لست متأكدًا مما تقصده بـ ‘الرد على القائمة’. أي كود في ذلك الطلب المدمج (PR) كان سيُغيّر هذا السلوك؟ الشرط الوحيد الذي أراه قد تغير هو هذا:
لكنني لا أستطيع أن أرى كيف كان سيُغيّر السلوك بمجرد إضافة to_s؟
steinjer
(Joerg)
15 فبراير 2021، 7:58ص
4
أعتقد أن شرط جملة if المعدل يؤدي الآن إلى ظهور عنوان رسالة جديد هو ‘list-post’.
مثال على بريد إلكتروني جديد من نظام discourse الخاص بنا كما يظهر في Thunderbird:
ويحتوي رأس البريد الإلكتروني على السطر التالي:
List-Post: mailto:replies+6e23071765f50da1c819aba7f2ffb386@forum.sol....
قبل الإصدار الجديد (لم يظهر قائمة الردود):
ولم يكن هناك سطر في رأس البريد يحتوي على “List-Post”.