Google Groups Link Plugin

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

:link: GitHub: GitHub - literatecomputing/discourse-google-group-link
:arrow_right: Install: Follow the plugin installation guide.

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 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

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

Then

t=Topic.last;
t.google_group_link_ensure_consistency

TODO

  • Consider adding link somewhere else?