Text of forwarded emails don't show up in posts

@tobiaseigen: I hadn’t tried clicking on the envelope icon. That’s neat, but it not feasible as a workaround. I can’t possibly go around looking for posts sent by email and looking for forwarded content. Especially because we have some private categories on our site which I purposefully ignore unless I am @mentioned.

@sam: No forwarded email works. They come out like this:

(Obviously, a forwarded email followed that line, but it was cut.)

As far as I understand, email forwarding as a feature is not implemented at all. What kind of information are you looking for at this stage?

The behavior I expected is this:

إعجاب واحد (1)

We just hit this problem in a test instance where we are assessing Discourse as a ticketing system.

The test was done using GMail, a pretty popular service. Getting emails forwarded is not unusual in our context. This problem is quite a blocker for us…

It’s a bit strange that nobody has complained in the last years. Maybe there is another thread with a workaround somewhere? :slight_smile:

Latest commit e50e502 on Jul 22, 2016

Ouch. I was about to file an issue upstream (nobody seems to have complained about forwarded emails there), but the lack of activity is discouraging. Maintaining a local patch isn’t a great prospect either.

Our users are totally external, people sending email to what they think is a normal mailbox.

Any ideas to unblock this situation?

إعجاب واحد (1)

The answer you quoted is quite out of date. We stared using our own gem a long time ago.

If you post the raw email with all its headers (or send me a PM) and tell as what you saw and what you expected to see, we might be able to figure this out.

You did enable the enable forwarded emails site setting, right?

5 إعجابات

Er… doh.

OK, I tested again with the same email and now the forward does appear, no problem. It appears in a different way than expected (the topic appears as created by the author of the email being forwarded, not the email being sent, an this has implications we have to consider).

In any case, thank you. The big blocker is now solved.

4 إعجابات

Is it possible that this problem can still be reproduced when Creating a read-only mailing list mirror?

We cannot get forwarded email through in a mailing list mirror category, while forwards land just fine in another category in the same test instance with posting via email enabled.

We are discussing this problem here and you can find several tests in this mailing list mirror category created to test this problem.

Maybe the solution is to skip any removal of content in mailing list mirror mode? Mirror is mirror, and the risk of missing content is way more expensive than the convenience of not showing signatures (especially when we are thinking that Discourse becomes the de facto archive of a mailing list).

4 إعجابات

I guess we could add a setting to disable trimming for mailing list mirrors. It could make sense for lists where members know how to behave and don’t include hundreds of useless lines of text from previous emails. Can you create a feature request for it?

Nevertheless, I’ll try figure out why forwarded emails do not work for mailing list mirrors.

4 إعجابات

I think the typical forward would match the embedded marker not followed by a quote rule which discards it. Discarding is reasonable behavior for the other cases mentioned there (e.g. huge quote) but not for forwards.

إعجابَين (2)

كنت أظن أنني فعلت ذلك لأن نظام Discourse الخاص بي كان يقبل فعليًا البريد الإلكتروني المُحوَّل وينشئ منشورات. ومع ذلك، فقد تم إزالة محتوى البريد الإلكتروني المُحوَّل. إذن، هل فهمي صحيح بأن هذا الإعداد يغير طريقة تحليل الرسائل الواردة؟ أو ربما بدقة أكبر: كيف يتم تحليل الرسائل الواردة التي ليست ردودًا على موضوع موجود؟

على أي حال، أتمنى أن يؤدي تفعيل هذا الإعداد إلى حل مشكلة عدم ظهور المحتوى المُحوَّل في المنشورات. لكنني لا أزال أتساءل: أليس هناك طريقة سهلة لإصلاح المنشورات يدويًا حيث وضع Discourse خط الفصل (بين المحتوى المعروض والمحتوى المزال) في المكان الخطأ؟

تعديل: لقد وجدت للتو هذه الميزة الجديدة (التي لم أحصل عليها بعد في تلك النسخة) لذا سأقوم بالتحديث، لكن هل يمكن لأحد توضيح كيف يرتبط هذا الإعداد الجديد بما تم مناقشته هنا؟ هل هو مخصص لقوائم البريد؟

تعديل 2: بعد استكشاف عدة مواضيع أخرى تم إنشاؤها عبر البريد خلال الأشهر القليلة الماضية، يبدو أن محتوى الرسائل الإلكترونية المُحوَّلة يُزال فقط إذا كان هناك نص مضاف قبل البريد الإلكتروني المُحوَّل (مثل: “للعلم” أو “إليك شيء مثير للاهتمام”). أما إذا تم تحويل البريد الإلكتروني دون تعليق، فيتم عرض المحتوى (ومع ذلك، يتم إزالة رؤوس البريد الإلكتروني المُحوَّل بحيث يبدو أن المحوِّل هو من كتب محتوى المنشور). هل كل هذا السلوك مقصود؟