Introducing expose-emails-in
, a Discourse plugin to “expose category emails-in in useful ways”, which should really be called the “New Topic via Email” button plugin, because it does this to your category pages:
Clicking the plus opens the composer as usual, whereas clicking the envelope opens your email client populated with the email-in address of that category.
The plugin also changes behaviour for a logged out user, showing:
Here, clicking out the greyed out plus opens a modal prompting the user to log in, and clicking the envelope either opens your email client or the same modal, depending on whether the category is set to allow emails-in from strangers:
The text of the modal changes slightly when opened from the plus button if the category does allow emails-in from strangers, if you really want to get into the nitty gritty of the various possible states of buttons and modals, knock yourself out.
You can see it in use on Mozilla’s Discourse instance, and find the repo here:
https://github.com/mozilla/discourse-expose-emails-in
Please leave your questions, feature requests, comments and bug reports ↓