README ¶
Mattermost Wrangler Plugin
A Mattermost plugin for managing messages.
About
The wrangler plugin was created to provide advanced message management options. Currently, it supports moving messages, and any thread they may belong to, across channels and teams. The primary use-case for this is to expose a conversation to a more-appropriate channel for even greater participation.
In the future, the wrangler plugin will be developed to support additional tasks such as moving messages to new threads. Additionally, web UI integration will be supported for easier use and non-message tasks could even be implemented.
Install
- Go the releases page and download the latest release.
- On your Mattermost, go to System Console -> Plugin Management and upload it.
- Configure plugin settings as desired.
- In order for the plugin to properly recreate messages, ensure the following system console settings are set to true:
- Start using the plugin!
Commands
Type /wrangler
for a list of all Wrangler commands.
Wrangler Plugin - Slash Command Help
/wrangler move thread [MESSAGE_ID] [CHANNEL_ID]
Move a given message, along with the thread it belongs to, to a given channel
- This can be on any channel in any team that you have joined
- Obtain the message ID by running '/wrangler list messages' or via the 'Permalink' message dropdown option (it's the last part of the URL)
- Obtain the channel ID by running '/wrangler list channels' or via the channel 'View Info' option
/wrangler list channels [flags]
List the IDs of all channels you have joined
Flags:
--channel-filter string A filter value that channel names must contain to be shown on the list
--team-filter string A filter value that team names must contain to be shown on the list
/wrangler list messages [flags]
List the IDs of recent messages in this channel
Flags:
--count int Number of messages to return. Must be between 1 and 100 (default 20)
--trim-length int The max character count of messages listed before they are trimmed. Must be between 10 and 500 (default 50)
/wrangler info
Shows plugin information
/wrangler move thread
A powerful command that can "move" a message along with its parent thread to a new channel.
Note that the command works by creating new messages in the target channel, but preserves most of the original message metadata. Ordering is kept intact, but the messages contain new timestamps so that channel message history is not altered.
A thread that was started in channel1
is moved to channel2
.
The thread after being "moved" to channel2
.
/wrangler list channels
Lists channel IDs that you belong to across all teams.
/wrangler list channels
Lists recent message IDs from the current channel.
/wrangler info
Shows version and commit information for the currently-running plugin build.
Configuration Options
The following plugin configuration is available:
- Allowed Email Domain: an optional setting to limit plugin usage to specific users
- Max Thread Count Move Size: an optional setting to limit the size of threads that can be moved
- Enable Moving Threads From Private Channels: Control whether Wrangler is permitted to move message threads from private channels or not
- Enable Moving Threads From Direct Message Channels: Control whether Wrangler is permitted to move message threads from direct message channels or not
- Enable Moving Threads From Group Message Channels: Control whether Wrangler is permitted to move message threads from group message channels or not