# Cleaning up e-mail logs

**URL:** https://meta.discourse.org/t/cleaning-up-e-mail-logs/39132
**Category:** Support
**Created:** [06.Февраль.2016 01:51:51 UTC](https://meta.discourse.org/t/cleaning-up-e-mail-logs/39132 "2016-02-06T01:51:51Z")
**Posts on this page:** 14
**Page:** 2

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [03.Август.2018 09:21:02 UTC](https://meta.discourse.org/t/cleaning-up-e-mail-logs/39132/22 "2018-08-03T09:21:02Z")

</div>

The old columns on `email_logs` table have been dropped.

[https://github.com/discourse/discourse/commit/87537b679c74da58e9439c322f009f7bbd09966a](https://github.com/discourse/discourse/commit/87537b679c74da58e9439c322f009f7bbd09966a)

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [06.Август.2018 10:01:33 UTC](https://meta.discourse.org/t/cleaning-up-e-mail-logs/39132/23 "2018-08-06T10:01:33Z")

</div>

This topic was automatically closed after 3 days. New replies are no longer allowed.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [08.Август.2018 08:26:01 UTC](https://meta.discourse.org/t/cleaning-up-e-mail-logs/39132/24 "2018-08-08T08:26:01Z")

</div>



---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [08.Август.2018 08:28:02 UTC](https://meta.discourse.org/t/cleaning-up-e-mail-logs/39132/25 "2018-08-08T08:28:02Z")

</div>

Another fix that would improve things in the future for sites with mailing list mode enabled.

[https://github.com/discourse/discourse/commit/ba6f11c521b66870a6cd2c39785aa0dbcdabcecf](https://github.com/discourse/discourse/commit/ba6f11c521b66870a6cd2c39785aa0dbcdabcecf)

---

<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: [18.Август.2018 20:39:55 UTC](https://meta.discourse.org/t/cleaning-up-e-mail-logs/39132/26 "2018-08-18T20:39:55Z")

</div>

Can this be considered complete now @tgxworld?

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [20.Август.2018 02:35:16 UTC](https://meta.discourse.org/t/cleaning-up-e-mail-logs/39132/27 "2018-08-20T02:35:16Z")

</div>

Not quite I still have to work on cleaning up the `PostReplyKey` table which used to be a column on the `EmailLog` table. Pretty straight forward to clean up the records but I just need to read through the code path to make sure that we send the right email when a user tries to reply to a post with a deleted post\_reply\_key. I have this on my list this week.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [23.Август.2018 02:43:20 UTC](https://meta.discourse.org/t/cleaning-up-e-mail-logs/39132/28 "2018-08-23T02:43:20Z")

</div>

> [@tgxworld](#):
>
> I still have to work on cleaning up the `PostReplyKey` table

This is done in

[https://github.com/discourse/discourse/commit/36a7028f19b2b511862eb753b3ec72fccaffd2d7](https://github.com/discourse/discourse/commit/36a7028f19b2b511862eb753b3ec72fccaffd2d7)

---

<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: [23.Август.2018 02:59:42 UTC](https://meta.discourse.org/t/cleaning-up-e-mail-logs/39132/31 "2018-08-23T02:59:42Z")

</div>

Can you paste a screenshot here of what email you get when you reply to something and there is no Post Reply Key found, it may make sense to refine copy and UI there.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [23.Август.2018 03:10:12 UTC](https://meta.discourse.org/t/cleaning-up-e-mail-logs/39132/32 "2018-08-23T03:10:12Z")

</div>

This is how the email looks like

 ![Screenshot%20from%202018-08-23%2011-09-13](https://global.discourse-cdn.com/meta/original/3X/f/5/f56f0df6459f7723d2f7aa46fba6976bbe7f8278.png)

---

<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: [23.Август.2018 03:17:53 UTC](https://meta.discourse.org/t/cleaning-up-e-mail-logs/39132/33 "2018-08-23T03:17:53Z")

</div>

Do we need that “security reasons” phrase there … I think without those words its actually a bit better.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [23.Август.2018 03:26:03 UTC](https://meta.discourse.org/t/cleaning-up-e-mail-logs/39132/34 "2018-08-23T03:26:03Z")

</div>

Hmm got to check with @zogstrip regarding this. Based on what I know, there isn’t any security reason to restrict it but this is mainly done so that we keep disk space usage sane on large forums.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [23.Август.2018 06:39:24 UTC](https://meta.discourse.org/t/cleaning-up-e-mail-logs/39132/35 "2018-08-23T06:39:24Z")

</div>

🔥 that sentence.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [23.Август.2018 06:44:25 UTC](https://meta.discourse.org/t/cleaning-up-e-mail-logs/39132/36 "2018-08-23T06:44:25Z")

</div>

Done 🙂 [Copy changes for old destination email template.. · discourse/discourse@f28a53d · GitHub](https://github.com/discourse/discourse/commit/f28a53db48ad7ab0af63ad2614134839b687527f)

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [27.Август.2018 10:00:15 UTC](https://meta.discourse.org/t/cleaning-up-e-mail-logs/39132/37 "2018-08-27T10:00:15Z")

</div>

This topic was automatically closed after 4 days. New replies are no longer allowed.

[Предыдущая страница](https://meta.discourse.org/t/cleaning-up-e-mail-logs/39132.md?page=1)
