Command line usage¶
This package provides a command line to run the server.
To run the server, use the m2mbd command.
$ m2mbd localhost 8225 http://mattermost/hooks/abcdefg
Parameters¶
Required parameters¶
hostname- local hostname or ip address interface on which the server runs
port- the port on which the server listens
webhook_url- the Slack/Mattermost compatible webhook url to which send the messages
Optional parameters¶
-h,--help- show help and exit
--sieve_rules_filesthe path to the file containing sieve rules to filter incoming messages defaults to sending all mails to default channel
Note
ending lines must be
<CRLF>--default_channel- default channel to send messages to defaults to webhook defined channel
--username[1]- displayed username on messages defaults to the username who created the webhook
--icon_url[1]- url used to displayed icon on messages defaults to Slack/Mattermost default webhook icon
--no_html2text- if the mail is formatted as html, don’t try to convert it to markdown formatted text
--no_ignore_tables- if the mail is formatted as html and html2text is not disabled, do not ignore html tables when formatting html to Markdown text
-d,--debug- increase debugging info can be provided up to three times
| [1] | (1, 2) Username and icon overwrite must be allowed by Slack/Mattermost configuration |