# Yahoo Groups Importation Errors

**URL:** https://meta.discourse.org/t/yahoo-groups-importation-errors/136277
**Category:** Migration
**Created:** [17 december 2019 om 03:13 UTC](https://meta.discourse.org/t/yahoo-groups-importation-errors/136277 "2019-12-17T03:13:52Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![Soretna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/soretna/32/164155_2.png) [@Soretna](https://meta.discourse.org/u/Soretna)
#### Post date: [19 december 2019 om 18:04 UTC](https://meta.discourse.org/t/yahoo-groups-importation-errors/136277/6 "2019-12-19T18:04:28Z")

</div>

So I went ahead and allowed this to proceed (I’ll look at the errors later), but now I have a very big peculiarity. I had attempted to import these into a folder called “old-yahoo-group” by 1st creating this CATEGORY within the system and then I pushed all of the mbox folders into a folder here:

```plaintext
/var/discourse/shared/standalone/import/data/old-yahoo-group

```

I thought I had understood the instructions such that these messages, upon importation, would show up in the appropriate category, however they’re all hidden in the system.

I can do a search and find old messages just fine, however they do not appear in any aggregate location.

How can se manipulate this last import to go into a defined category such that all ~35k messages show up in a convenient section that indicates these are old messages?

Upon looking further, I appear to have found what happened:

> [@Migrate a mailing list to Discourse (mbox, Listserv, Google Groups, etc)](https://meta.discourse.org/t/importing-mailing-lists-mbox-listserv-google-groups-emails/79773/133):
>
> @gerhard - I was able to migrate an mbox archive of 22,000 messages using this script on a Digital Ocean droplet with only 1GB RAM. No problems. Thank you for the write-up of instructions. Everything worked great. The only mistake I made on my first attempt was trying to name the /var/discourse/shared/standalone/import/data/X subfolder using a new category I created before running the script. That caused the import to place these messages into the Uncategorized category. On second attempt, I del…

Now I need to figure out how to recover from this…

So this worked perfectly (where `old-yahoo-group` had already been created and NO other uncategorized posts existed (and it was actually disabled in the Settings)):

```plaintext
/var/discourse/launcher enter app
rails c
un=Category.find_by_slug('uncategorized')
newcat=Category.find_by_slug('old-yahoo-group')
Topic.where(category_id: un.id).update_all(category_id: newcat.id)

```

---

_[View the full topic](https://meta.discourse.org/t/yahoo-groups-importation-errors/136277)._
