# Curl报告用户已创建，但实际上并未生效

**URL:** <https://meta.discourse.org/t/curl-reports-user-created-but-it-didnt-really-work/259119>\
**Category:** Support\
**Created:** [2023年三月23日 07:04 UTC](https://meta.discourse.org/t/curl-reports-user-created-but-it-didnt-really-work/259119 "2023-03-23T07:04:22Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![MikeNolan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikenolan/32/297597_2.png) [@MikeNolan](https://meta.discourse.org/u/MikeNolan)\
**Post date:** [2023年三月23日 17:41 UTC](https://meta.discourse.org/t/curl-reports-user-created-but-it-didnt-really-work/259119/3 "2023-03-23T17:41:05Z")

</div>

问题已解决，我必须确保标头正确格式化，使用冒号而不是等号。

我尝试查看 mbox 导入脚本，但正如这篇帖子中所述，它似乎缺少很多东西：

> [@Migrate a mailing list to Discourse (mbox, Listserv, Google Groups, etc)](https://meta.discourse.org/t/migrate-a-mailing-list-to-discourse-mbox-listserv-google-groups-etc/79773/232):
>
> That’s a valid point, Jay. I’m not finding the import\_mbox.sh file and when I try executing the mbox.rb script directly, I get a bunch of Ruby errors: root@lists-import:/var/www/discourse/script/import\_scripts# ruby mbox.rb mbox fatal: detected dubious ownership in repository at ‘/var/www/discourse’ To add an exception for this directory, call: git config --global --add safe.directory /var/www/discourse /var/www/discourse/vendor/bundle/ruby/3.2.0/gems/zeitwerk-2.6.7/lib/zeitwerk/loader…

无论如何，我想尝试创建用户 ID（mailman 不使用它们），因为我正在导入 20 年的存档，而许多用户已不再存在或使用了不同的电子邮件地址。我现在数据库中有大约 700 个来自旧系统的用户，添加 100,000 篇帖子可能会带来其他问题。

我删除了 staged=true 字段，它似乎不起作用。

我花了一个晚上编写了一些 PHP 工具来解析所有这些 Mailman pipermail 存档并构建了一组用户 ID，这还不错。

---

_[View the full topic](https://meta.discourse.org/t/curl-reports-user-created-but-it-didnt-really-work/259119)._
