# URLs being dropped from Thunderbird-generated replies

**URL:** <https://meta.discourse.org/t/urls-being-dropped-from-thunderbird-generated-replies/163751>\
**Category:** Support\
**Created:** [September 11, 2020, 4:39pm UTC](https://meta.discourse.org/t/urls-being-dropped-from-thunderbird-generated-replies/163751 "2020-09-11T16:39:32Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![bsoares](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bsoares/32/231482_2.png) [@bsoares](https://meta.discourse.org/u/bsoares)\
**Post date:** [May 27, 2021, 12:29am UTC](https://meta.discourse.org/t/urls-being-dropped-from-thunderbird-generated-replies/163751/13 "2021-05-27T00:29:26Z")

</div>

Hi @BradCray ,  
I’ve experienced this same problem too when using `import_mbox.sh` on mailman mbox archives.

I tracked the problem down to `extract_from_mozilla(doc)` in `lib/email/receiver.rb` and made a simple fix which I’ve put in a PR [https://github.com/discourse/discourse/pull/13176](https://github.com/discourse/discourse/pull/13176) .

The `extract_from_mozilla` method was making any tag with a `class` attribute starting with `"moz-"` hidden. My adjustment excludes from these hidden tags any of them with a class attribute starting with `^moz-txt-link\b` which I think covers Thunderbird’s links (based on the large mbox I was working with).

I haven’t had time to write tests so the PR might not get accepted but feel free to use it (although be aware it’ll probably be wiped out by any upgrade unless the PR is accepted).

I’ve only tested on imported mboxes but I think it should work on newly received email.  
Unfortunately I don’t think it will apply during a rebake (it didn’t for me) so might be pretty hard to apply retrospectively.

---

_[View the full topic](https://meta.discourse.org/t/urls-being-dropped-from-thunderbird-generated-replies/163751)._
