{"action":"created","issue":{"url":"https://api.github.com/repos/deltachat/deltachat-core/issues/128","repository_url":"https://api.github.com/repos/deltachat/deltachat-core","labels_url":"https://api.github.com/repos/deltachat/deltachat-core/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/deltachat/deltachat-core/issues/128/comments","events_url":"https://api.github.com/repos/deltachat/deltachat-core/issues/128/events","html_url":"https://github.com/deltachat/deltachat-core/issues/128","id":303075615,"node_id":"MDU6SXNzdWUzMDMwNzU2MTU=","number":128,"title":"Subject and Group names","user":{"login":"r10s","id":9800740,"node_id":"MDQ6VXNlcjk4MDA3NDA=","avatar_url":"https://avatars2.githubusercontent.com/u/9800740?v=4","gravatar_id":"","url":"https://api.github.com/users/r10s","html_url":"https://github.com/r10s","followers_url":"https://api.github.com/users/r10s/followers","following_url":"https://api.github.com/users/r10s/following{/other_user}","gists_url":"https://api.github.com/users/r10s/gists{/gist_id}","starred_url":"https://api.github.com/users/r10s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r10s/subscriptions","organizations_url":"https://api.github.com/users/r10s/orgs","repos_url":"https://api.github.com/users/r10s/repos","events_url":"https://api.github.com/users/r10s/events{/privacy}","received_events_url":"https://api.github.com/users/r10s/received_events","type":"User","site_admin":false},"labels":[{"id":859014977,"node_id":"MDU6TGFiZWw4NTkwMTQ5Nzc=","url":"https://api.github.com/repos/deltachat/deltachat-core/labels/spec","name":"spec","color":"6835c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-03-07T12:16:11Z","updated_at":"2018-08-16T16:37:36Z","closed_at":null,"author_association":"MEMBER","body":"I am wondering if we can improve the usage of the e-mail \"subject\" and make it more conform with standard MUAs.\r\n\r\n**Currently**, _incoming_ `Subject:` headers are used for the following:\r\n\r\n- the subject is shown before the message if it is not prefixed by `Re:` etc. and if the message comes from a normal MUA\r\n- for [ad-hoc-groups](https://github.com/deltachat/deltachat-core/issues/69#issuecomment-370247669), the subject is used as the _initial_ group name (`Re` should be stripped, but currently [isn't](https://github.com/deltachat/deltachat-core/issues/126))\r\n\r\nFor _outgoing_ messages, the `Subject:` header is used as follows:\r\n\r\n- It is set to an excerpt of the message prefixed by the word `Chat:` and possibly the group name.\r\n- The incoming subject is not used\r\n\r\n**Ideas** that came into my mind but need more thinking and discussion:\r\n\r\n- set the expected subject for outgoing messages, so for a group name \"Family\", the subject will be \"Re: Family\", this would make sorting things easier for existing MUAs, otoh the text excerpt will be missing. At the latest when we decide to support [Mailing lists](https://github.com/deltachat/deltachat-core/issues/125), sth. like that should be done, so maybe it is better to do the same for all types of mails.  \r\nFor the view from the Delta Chat side and for Delta-Chat-to-Delta-Chat this won't change anything \r\n- group names are currently handled by the new [`Chat-Group-Name:` header](https://delta.chat/en/spec#groups), as a result normal MUAs cannot change the group name. Maybe we should just treat the subject (stripped by Re: etc.) as the group name? This would allow other MUAs to change the subject as well. However, users of normal MUAs just changing the subject may not be aware of the consequences, so maybe this is no good idea.\r\n- should updated subjects change the group name? This may be useful but maybe also unexpected if a group just changes its name and the user cannot find it again.\r\nMoreover, it is [no easy job](https://stackoverflow.com/questions/9153629/regex-code-for-removing-fwd-re-etc-from-email-subject) to strip out the Re: Fwd: stuff when regarding all languages.\r\n- But maybe it should be possible by groups initially created as Ad-hoc groups? Maybe at least if the name was not changed by Chat-Group-Name?\r\n- The Subject is currently not used to _create_ groups - this is only done by the existing member list. So,  two mails with two different subjects to the same recipients will be filed under the same Ad-hoc group. We could create different groups for this, however, I fear this would spam the chatlist and tear apart chats. I also do not feel comfortable to give such a power to the subject. Maybe the existing approach is just fine.\r\n\r\nI am sure I've forgotten something an I am looking forward to comments and suggestions."},"comment":{"url":"https://api.github.com/repos/deltachat/deltachat-core/issues/comments/413608372","html_url":"https://github.com/deltachat/deltachat-core/issues/128#issuecomment-413608372","issue_url":"https://api.github.com/repos/deltachat/deltachat-core/issues/128","id":413608372,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzYwODM3Mg==","user":{"login":"WinAuthFan","id":26532335,"node_id":"MDQ6VXNlcjI2NTMyMzM1","avatar_url":"https://avatars3.githubusercontent.com/u/26532335?v=4","gravatar_id":"","url":"https://api.github.com/users/WinAuthFan","html_url":"https://github.com/WinAuthFan","followers_url":"https://api.github.com/users/WinAuthFan/followers","following_url":"https://api.github.com/users/WinAuthFan/following{/other_user}","gists_url":"https://api.github.com/users/WinAuthFan/gists{/gist_id}","starred_url":"https://api.github.com/users/WinAuthFan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WinAuthFan/subscriptions","organizations_url":"https://api.github.com/users/WinAuthFan/orgs","repos_url":"https://api.github.com/users/WinAuthFan/repos","events_url":"https://api.github.com/users/WinAuthFan/events{/privacy}","received_events_url":"https://api.github.com/users/WinAuthFan/received_events","type":"User","site_admin":false},"created_at":"2018-08-16T16:37:36Z","updated_at":"2018-08-16T16:37:36Z","author_association":"NONE","body":"We are really overthinking this. We should not try to find the \"best\" solution. Instead, we could let the user decide. #239 "}}
{"actor":{"display_login":"WinAuthFan"}}