# Google Groups Link Plugin

**URL:** https://meta.discourse.org/t/google-groups-link-plugin/212090
**Category:** Plugin
**Created:** [December 14, 2021, 7:38pm UTC](https://meta.discourse.org/t/google-groups-link-plugin/212090 "2021-12-14T19:38:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [December 14, 2021, 7:38pm UTC](https://meta.discourse.org/t/google-groups-link-plugin/212090/1 "2021-12-14T19:38:30Z")

</div>

**Summary** : Add link to Google Group Message for read-only mailing list of a Google Group

🔗 **GitHub** : [GitHub - literatecomputing/discourse-google-group-link · GitHub](https://github.com/literatecomputing/discourse-google-group-link)  
➡ **Install** : Follow the [plugin installation guide](https://meta.discourse.org/t/install-a-plugin/19157).

### Features

This plugin will search `raw_email` of the first post of new topics in categories with `mailinglist_mirror` set for a Google Group link and add it to a `TopicCustomField` that is added to the `topic_view` serializer. It adds a link to the `topic-category` plugin outlet like

```
 See original message on <a href=google-group-url>Google Groups</a>

```

User preference for opening remote links in a new window is respected.

### Configuration

No configuration is necessary. It is on by default and will watch only categories that have [mailinglist\_mirror](https://meta.discourse.org/t/creating-a-read-only-mailing-list-mirror/77990) enabled.

That text can be customized at `https://your.forum/admin/customize/site_texts?q=google_groups_link`

To process already existing topics, enter rails with

```plaintext
cd /var/discourse
./launcher enter app 
rails c

```

Then

```plaintext
t=Topic.last;
t.google_group_link_ensure_consistency

```

### TODO

- Consider adding link somewhere else?
