mail icon indicating copy to clipboard operation
mail copied to clipboard

Case-sensitive handling of subject reply prefix

Open davidmhewitt opened this issue 4 years ago • 4 comments

What Happened

Mail has case-sensitive detection of the "Re: " prefix in a message subject. Some mail clients, Microsoft Outlook's desktop client definitely being one of them append a capital "RE: ". If you reply to one of these messages with Mail, you can end up with an undesirable "Re: RE:" chain on the front of the subject. This can grow to silly lengths if both clients are case-sensitive when they try and detect the prefix.

Expected Behavior

The "Re: " prefix is detected regardless of case.

Additional Notes

While Mail does not currently support prepending a "Fwd:" prefix, some mail clients handle this different again. For example, Microsoft Outlook prepends "FW:"

Platform Information

elementary OS 6.0 Beta

davidmhewitt avatar Jul 08 '21 08:07 davidmhewitt

I'm unsure if we should prevent adding several Fw prefixes because you're most likely never ping-ponging with forwards and it's actually an indicator to know how many times the document got forwarded before arriving (for mail chains… hi there grandma :wave: )

tintou avatar Jul 08 '21 10:07 tintou

Mhm, that's a valid point. Maybe we can simply prefix the subject with Fwd: whenever a message gets forwarded and skip the check. After all, I encounter it very rarely anyways. What do you think @davidmhewitt ?

marbetschar avatar Jul 08 '21 11:07 marbetschar

Since we don't currently handle forward prefixes, let's keep this issue focused on the Re: RE: problem.

cassidyjames avatar Jul 08 '21 17:07 cassidyjames

I added Re: and Fwd: handling to https://github.com/elementary/mail/pull/603 - so .... how to proceed there? :)

marbetschar avatar Jul 09 '21 07:07 marbetschar