Email signature not being stripped out when user write new topic or reply to a topic

Hallo

When sending a new post or reply to a post via mail the email signature was not
stripped out.

The following was posted as a new topic:

Mal sehen was hier mit der Signatur passiert!

-- 
Mit lieben Grüßen

Manfred Bayer-Lemerz

Is there a setting to turn the stripping out off or on?

I have the original email headers/source available for anyone who wants to look at this bug more closely.

thanks

Manfred

Signature stripping is done automatically. Since there’s no standard, it’s hard to get it right for all the billions signature formats out there. Can you PM me the raw email so that I can have a look?

Thanks for the fast answer! Will send you the File right away!

For our group it would be helpful to understand what the preferred signature format is. For example, we could let folks know that anything after ten dashes ---------- would be parsed as a signature. We could then be in contact with our most difficult signature offenders (those that include images as part of their signature) and ask them to prepend their signature line with ten dashes. I realize this method wouldn’t work for everyone, but it would be very helpful for our smaller group (300 members).

Or possibly include something in the Admin that allowed us to specify our own local signature formats that would be stripped from incoming emails.

Usenet signature cut lines are standardized. How many people get it right (follow suit) in email is another matter. The quoted text in the first post does appear to be a standard Usenet cut line: hyphen-hyphen-space.

When I was young, I was told that the standard is two lines, space and linebreak.

A solution that I’ve mused about is that there couple be a use setting that included the text to remove. People could then paste their sig in there and have it removed when they posted.

Its still rather fiddly,but easier than machine learning.

I upgraded our email_reply_trimmer library and pushed it to master. Can you give it a try?

https://github.com/discourse/discourse/commit/726eb7bdcad38720caa7e3f8e411b26fb741d90a

Not sure, if this behaviour really belongs to this change: Emails are not accepted because of a invalid main body or a body, that is too short. In fact, the body is long enough according to the rules (min. 20 characters) and I cannot see a reason, why it should not be accepted. Maybe we strip out too much of the content?

I can provide you the email that matters.

Dirk

I have a few users who are willing to update their email signatures, but I’m confused on what I should tell them.

What signature protocols does Discourse accept?

What is the signal to for discourse to cut the signature?

I believe @gerhard is in the best position to advise here.

Discourse uses HTML emails by default and it automatically detects and strips email signatures of the most popular email clients. So, this should work out of the box as long as your users send HTML emails and use their email client to insert signatures.

For plain text emails it’s always a good idea to start signatures with the de facto standard of two dashes and a space.

-- 
signature

Is there any way to manually add signatures from my users to my board’s email trimmer library?

I only have 20 users, that’s all it’ll ever be. So it’s easy to manage.

Ideas?

@gerhard님, 아무리 시도해 봐도 자동 서명 제거 기능이 작동하지 않네요. 테스트한 이메일들은 새 이메일 하단에 이미지와/또는 텍스트가 포함된 표준 Microsoft Outlook 형식의 서명이 붙어 있는 상태입니다.

혹시 제 설정에 문제가 있는 걸까요?

항상 잘린 콘텐츠 표시가 체크되어 있나요?

네, 확인했습니다. 다른 설정이 필요한가요?

단축된 콘텐츠를 표시하지 않으려면 선택 해제해야 합니다.

음 - 제가 처음에 사용했던 설정이 바로 그건데, 그 설정에서도 서명이 잘리지 않았어요.

혹시 이메일로 작성한 첫 번째 게시물만 잘리고, 그 이후의 게시물들은 잘리지 않는 건가요?

모든 수신 메일에서 발생하는 문제인가요? 이메일 서명 트리머는 내 메일의 대부분에서 잘 작동하지만, 몇몇 랜덤한 메일과 X-Mailer: Microsoft Outlook 16.0에서 보내는 지속되는 메일이 그대로 통과합니다.

아니요, 메일로 작성된 모든 게시물에 트리머가 적용됩니다.