# 정지된 사용자도 포럼 그룹 이메일을 계속 받는 중

**URL:** https://meta.discourse.org/t/suspended-user-still-receiving-forum-group-emails/141714
**Category:** Bug
**Created:** [2월 15, 2020, 11:58오후 UTC](https://meta.discourse.org/t/suspended-user-still-receiving-forum-group-emails/141714 "2020-02-15T23:58:26Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![Steve\_Pavlina](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steve_pavlina/32/170086_2.png) [@Steve\_Pavlina](https://meta.discourse.org/u/Steve_Pavlina)
#### Post date: [2월 15, 2020, 11:58오후 UTC](https://meta.discourse.org/t/suspended-user-still-receiving-forum-group-emails/141714/1 "2020-02-15T23:58:26Z")

</div>

내 포럼에서 계정 정지된 사용자가, 계정 정지 후에도 여전히 포럼 알림 이메일을 받고 있다고 보고했습니다. 특히 계정 정지 전에 구독했던 그룹에 대한 이메일입니다.

사실상 그가 맞는 것 같습니다. Discourse가 그의 계정이 며칠 전부터 정지되었음에도 불구하고 “마지막 이메일 수신” 시각이 3시간 전이라고 표시하고 있기 때문입니다.

계정이 정지된 사용자에게는, 그들이 가입했던 그룹에 대한 것이라도, 자동화된 포럼 이메일이 전혀 발송되지 않는 것이 정상적인 동작이 아니어야 합니까?

관리자가 수동으로 보내는 경우를 제외하고, 정지된 멤버가 포럼에서 계속 이메일을 받는 것은 원치 않습니다.

또한, 계정 정지된 멤버를 태그할 수 없다고 생각했는데, 우리 포럼의 한 멤버가 해당 정지된 계정을 태그할 수 있었던 것으로 보입니다.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2월 16, 2020, 3:08오전 UTC](https://meta.discourse.org/t/suspended-user-still-receiving-forum-group-emails/141714/2 "2020-02-16T03:08:33Z")

</div>

죄송하지만 어떤 이메일을 말씀하시는 건가요? 좀 더 구체적으로, 해당 이메일의 제목과 발췌문을 제공해 주실 수 있으신가요?

---

<div class="post-metadata">

### Author: ![Steve\_Pavlina](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steve_pavlina/32/170086_2.png) [@Steve\_Pavlina](https://meta.discourse.org/u/Steve_Pavlina)
#### Post date: [2월 16, 2020, 7:56오전 UTC](https://meta.discourse.org/t/suspended-user-still-receiving-forum-group-emails/141714/3 "2020-02-16T07:56:57Z")

</div>

해당 이메일은 그룹 멤버에게 전송된 개인 메시지(PM)입니다. 예를 들어, 여러 멤버가 속해 있는 @the-group-name이라는 그룹으로 누군가 PM을 보내고, 해당 멤버의 계정이 PM에 대한 이메일 알림을 받도록 설정되어 있는 경우를 말합니다. 정지된 멤버는 정지되기 전에 여러 그룹의 멤버였으며, 정지된 후에도 해당 그룹 중 하나에 대한 PM 회신 이메일을 계속 수신했습니다.

따라서 해당 이메일의 제목 형식은 다음과 같습니다: “[포럼 이름] [PM] 메시지 제목”

제 이해에 따르면, 그룹으로 전송된 PM에 회신하는 것은 기본적으로 “모두에게 회신” 기능과 유사하게 작동합니다. 사람들이 그룹 PM에 계속 회신하면서, 정지된 멤버는 해당 메시지들이 담긴 이메일을 계속 수신하게 되었습니다.

임시 조치로, 해당 멤버의 계정이 정지된 후 모든 그룹에서 수동으로 제거했으며, 이로 인해 더 이상 해당 멤버에게 이메일이 전송되지 않는 것으로 보입니다.

누군가가 정지되면, 정지 시점에 해당 그룹의 멤버였더라도 더 이상 그룹 PM 이메일을 수신하지 않아야 한다고 기대했습니다. 그래서 이를 버그로 보고했습니다.

저희 포럼에서 이메일 전송에 MailGun을 사용하며, MailGun 로그를 확인한 결과, 계정이 정지된 후 일주일 동안에도 해당 그룹 PM 이메일이 정지된 계정의 이메일 주소로 계속 전송된 것이 확인되었습니다.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2월 16, 2020, 8:28오전 UTC](https://meta.discourse.org/t/suspended-user-still-receiving-forum-group-emails/141714/4 "2020-02-16T08:28:50Z")

</div>

> [@Steve\_Pavlina](#):
>
> 누군가 정지되면, 해당 사용자가 정지 시점에 해당 그룹의 멤버였더라도 더 이상의 그룹 PM 이메일을 받지 않아야 한다고 생각했습니다. 그래서 이를 버그로 보고했습니다.

네, 그룹 PM에 대해 말씀하시는 거군요. 구체적으로 Discourse의 어떤 버전을 사용 중이신가요?

정지된 사용자를 태그해도 아무 영향이 없으며, 어떤 동작도 발생하지 않습니다.

---

<div class="post-metadata">

### Author: ![Steve\_Pavlina](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steve_pavlina/32/170086_2.png) [@Steve\_Pavlina](https://meta.discourse.org/u/Steve_Pavlina)
#### Post date: [2월 16, 2020, 3:50오후 UTC](https://meta.discourse.org/t/suspended-user-still-receiving-forum-group-emails/141714/5 "2020-02-16T15:50:40Z")

</div>

> [@codinghorror](#):
>
> 구체적으로 어떤 버전의 Discourse를 사용 중이신가요?

2.4.0.beta11  
latest-release +5  
38dd184a16

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2월 16, 2020, 6:00오후 UTC](https://meta.discourse.org/t/suspended-user-still-receiving-forum-group-emails/141714/6 "2020-02-16T18:00:13Z")

</div>

@tshenry, 이 문제를 재현할 수 있을까요?

---

<div class="post-metadata">

### Author: ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)
#### Post date: [2월 18, 2020, 6:38오후 UTC](https://meta.discourse.org/t/suspended-user-still-receiving-forum-group-emails/141714/8 "2020-02-18T18:38:12Z")

</div>

얼마 전에 @simon이 이 문제를 자세히 살펴본 기억이 납니다. 그가 이렇게 말했죠:

> 비활성화된 사용자는 그룹 메시지나 그룹 멘션에 대한 이메일 알림을 받지 않습니다. 정지된 사용자는 그룹 멘션에 대한 이메일 알림을 받지 않지만, 그룹으로 전송된 개인 메시지(PM)에 대해서는 이메일을 받습니다.

이것이 의도된 동작인지, 아니면 정지 기능 설계 시 누락된 부분인지는 확실하지 않습니다. 사용자를 그룹에서 제거하지 않고도 이메일이 전송되지 않도록 하려면 사용자를 비활성화하고 **동시에** 정지해야 하는 것 같습니다. 다만, 이는 관리자나 모더레이터가 바로 알아채기 어려울 수 있습니다.

---

<div class="post-metadata">

### Author: ![Steve\_Pavlina](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steve_pavlina/32/170086_2.png) [@Steve\_Pavlina](https://meta.discourse.org/u/Steve_Pavlina)
#### Post date: [2월 18, 2020, 7:10오후 UTC](https://meta.discourse.org/t/suspended-user-still-receiving-forum-group-emails/141714/9 "2020-02-18T19:10:32Z")

</div>

> [@tshenry](#):
>
> 다만, 이는 관리자나 운영자에게는 바로 명확하게 보이지 않을 수 있습니다.

동의합니다… 전혀 명확하지 않습니다.

저는 2017년부터 Discourse를 사용해 왔고, 수년 동안 활발한 커뮤니티를 관리해 왔는데, 최근 정지된 멤버가 여전히 이메일을 받고 있다는 사실에 놀랐습니다. 분명히 의도된 결과라기보다는 버그에 더 가까운 것으로 보입니다.

게다가, 정지된 멤버가 여전히 그들의 진행 중인 대화를 보고 있다는 사실을 인지하지 못한 채 그룹 PM(개인 메시지) 교환에 계속 참여하는 사람들에게 이것이 명확할까요? 멤버가 금지 조치(ban)를 받았다는 것을 알고 있다면, 왜 그 멤버가 여전히 그들의 개인 메시지를 보고 있다고 가정해야 합니까? 탈퇴한 멤버가 여전히 이메일을 통해 계속 참여하게 되는 상황에서 이것이 어떻게 '개인’일 수 있겠습니까?

정지된 멤버에게 모든 자동 이메일 전송을 중단하는 것이 더 지혜롭고(그리고 합리적인 기대와 더 부합하는) 것으로 보입니다.

그렇지 않은 채로 유지해야 하는 이유는 무엇입니까?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2월 18, 2020, 8:28오후 UTC](https://meta.discourse.org/t/suspended-user-still-receiving-forum-group-emails/141714/10 "2020-02-18T20:28:24Z")

</div>

> [@tshenry](#):
>
> 비활성화된 사용자는 그룹 메시지나 그룹 멘션에 대한 이메일 알림을 받지 않습니다. 정지된 사용자는 그룹 멘션에 대한 이메일 알림을 받지 않지만, 그룹으로 보내진 개인 메시지(PM)에 대한 이메일은 받습니다.

여기에는 **스태프 PM** (강조는 제가 한 것입니다)이 정지된 사용자에게도 전달되는 메커니즘이 있어, 스태프가 사용자에게 정지 사유를 설명할 수 있습니다.

나머지는 버그로 보입니다 @eviltrout .. 아마도 그룹에 스태프 멤버가 포함된 경우 @simon이 암시한 예외가 적용되는 것일까요? 확실하지는 않습니다.

하지만 스태프 멤버가 없는 그룹에서는 이러한 동작을 보이지 않아야 하며, 정지된 사용자에게 이메일을 보내서는 안 된다는 점은 분명합니다.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2월 18, 2020, 8:55오후 UTC](https://meta.discourse.org/t/suspended-user-still-receiving-forum-group-emails/141714/11 "2020-02-18T20:55:29Z")

</div>

> [@codinghorror](#):
>
> 만약 해당 그룹에 스태프 멤버가 포함되어 있다면, @Simon\_Cossar가 언급했던 예외적인 경우일까요? 확실하지 않습니다.

다시 테스트해 보았습니다. 정지된 사용자는 그룹 PM에서 스태프가 작성한 게시물에 대한 이메일을 받을 수 있습니다. 하지만 그룹 PM에서 스태프가 아닌 사용자가 작성한 게시물에 대해서는 이메일 알림을 받지 않습니다.

---

<div class="post-metadata">

### Author: ![Steve\_Pavlina](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steve_pavlina/32/170086_2.png) [@Steve\_Pavlina](https://meta.discourse.org/u/Steve_Pavlina)
#### Post date: [6월 11, 2020, 6:53오후 UTC](https://meta.discourse.org/t/suspended-user-still-receiving-forum-group-emails/141714/12 "2020-06-11T18:53:13Z")

</div>

우리의 (비공개) 포럼에서는 스태프도 다른 일반 회원들과 마찬가지로 캐주얼한 그룹 DM에 참여합니다. 따라서 이 맥락에서 스태프가 그룹에 보내는 DM은 특별할 것이 없습니다. 다만, 일반적인 기대와 달리 정지된 회원에게도 메시지가 전달된다는 점이 예외입니다.

이 문제를 보완하기 위해 우리는 정지된 회원들을 모든 그룹에서 제외하고 있습니다. 추가적인 단계이지만, 실수로 정지된 회원에게 DM을 보내서 그들이 계속 이메일을 받는 것보다는 낫습니다.

회원을 괴롭힘이나 개인적 공격으로 정지하는 상황을 생각해 보세요. 스태프가 비공개 그룹 토론에 참여하고 있다는 이유만으로 그들에게 이런 이메일이 계속 전달되길 원하지 않을 것입니다.

---

<div class="post-metadata">

### Author: ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)
#### Post date: [12월 2, 2022, 6:29오전 UTC](https://meta.discourse.org/t/suspended-user-still-receiving-forum-group-emails/141714/13 "2022-12-02T06:29:01Z")

</div>

최근에 이 문제를 발견했습니다. 수정되었나요?

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [12월 23, 2022, 6:26오전 UTC](https://meta.discourse.org/t/suspended-user-still-receiving-forum-group-emails/141714/14 "2022-12-23T06:26:07Z")

</div>

안녕하세요 @Lhc_fl 🙂

혹시 이 문제를 테스트해 보셨나요? 아직 문제가 남아 있는지 확인해 주셨으면 좋겠습니다.

---

<div class="post-metadata">

### Author: ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)
#### Post date: [12월 23, 2022, 8:11오전 UTC](https://meta.discourse.org/t/suspended-user-still-receiving-forum-group-emails/141714/15 "2022-12-23T08:11:32Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/4X/3/9/7/39790c9e6dce0018db61601c7d4d6be7f3726ba1.png)  
음, 보니까 정지된 사용자에게도 PM 이메일이 계속 발송되는 것 같습니다.

현재 2.9.0.beta14를 사용 중입니다  
([bef1966ca5](https://github.com/discourse/discourse/commits/bef1966ca5e30ed6511214ab21ddf6a4c7b4e84a))

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [12월 23, 2022, 10:30오전 UTC](https://meta.discourse.org/t/suspended-user-still-receiving-forum-group-emails/141714/16 "2022-12-23T10:30:00Z")

</div>

작은 버그이지만, 분명 우리가 조기에 해결해야 할 문제처럼 느껴집니다.

수정 방법은 다음과 같습니다: PM이 그룹으로 전송되면, 발신자의 “스태프” 상태와 관계없이 정지된 사용자를 무시합니다. 쉬운 수정인지 확인해 보겠습니다. 그렇지 않다면 아마도 다음 달 말까지 기다려야 할 것입니다.

---

<div class="post-metadata">

### Author: ![loic](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/loic/32/105621_2.png) [@loic](https://meta.discourse.org/u/loic)
#### Post date: [3월 8, 2023, 2:06오후 UTC](https://meta.discourse.org/t/suspended-user-still-receiving-forum-group-emails/141714/20 "2023-03-08T14:06:19Z")

</div>

방금 설명하신 내용과 정확히 일치하는 PR을 열었습니다 🙂

> <https://github.com/discourse/discourse/pull/20583>
>
> Currently, when a suspended user belongs to a group PM (private message with mor…e than two people in it) and a staff member sends a message to this group PM, then the suspended user will receive an email. This happens because a suspended user can only receive emails from staff members. But in this case, this can be seen as a bug, as the expected behavior would be instead to not send any email to the suspended user. A staff member can participate in active discussions like any other member, and so their messages in this context shouldn’t be treated differently than the ones from regular users.
> 
> This PR addresses this issue by checking if a suspended user receives a message from a group PM or not. If that’s the case, then an email won’t be sent no matter whether the post originated from a staff member or not.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [3월 9, 2023, 1:40오전 UTC](https://meta.discourse.org/t/suspended-user-still-receiving-forum-group-emails/141714/22 "2023-03-09T01:40:39Z")

</div>


