# Disable\_emails: false on restore stopped working

**URL:** https://meta.discourse.org/t/disable-emails-false-on-restore-stopped-working/143093
**Category:** Bug
**Created:** [March 2, 2020, 4:24pm UTC](https://meta.discourse.org/t/disable-emails-false-on-restore-stopped-working/143093 "2020-03-02T16:24:38Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [March 2, 2020, 4:24pm UTC](https://meta.discourse.org/t/disable-emails-false-on-restore-stopped-working/143093/1 "2020-03-02T16:24:38Z")

</div>

The previously working `:disable_emails` option in the `BackupRestore.restore!` function seems not to be passed to `BackupRestore::Restorer::initialize` any more:

> <https://github.com/discourse/discourse/blob/main/lib/backup_restore.rb#L19-L27>

while [discourse/lib/backup\_restore/restorer.rb at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/lib/backup_restore/restorer.rb#L12:)

```
def initialize(user_id:, filename:, factory:, disable_emails: true)

```

So now this option parameter is silently dropped, making it impossible to restore without disabling emails.

Maybe forgotten while refactoring, maybe removed on purpose?

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [March 2, 2020, 4:44pm UTC](https://meta.discourse.org/t/disable-emails-false-on-restore-stopped-working/143093/2 "2020-03-02T16:44:52Z")

</div>

Thanks for reporting.

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

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [March 2, 2020, 4:45pm UTC](https://meta.discourse.org/t/disable-emails-false-on-restore-stopped-working/143093/3 "2020-03-02T16:45:05Z")

</div>


