Merge branch 'main' into 'user-whitelisting'
# Conflicts: # bot/bot.go
This commit is contained in:
39
README.md
39
README.md
@@ -25,15 +25,14 @@ An Email to Matrix bridge
|
||||
|
||||
env vars
|
||||
|
||||
### mandatory
|
||||
|
||||
* **POSTMOOGLE_HOMESERVER** - homeserver url, eg: `https://matrix.example.com`
|
||||
* **POSTMOOGLE_LOGIN** - user login/localpart, eg: `moogle`
|
||||
* **POSTMOOGLE_PASSWORD** - user password
|
||||
* **POSTMOOGLE_DOMAIN** - SMTP domain to listen for new emails
|
||||
* **POSTMOOGLE_PORT** - SMTP port to listen for new emails
|
||||
|
||||
### optional
|
||||
<details>
|
||||
<summary>other optional config parameters</summary>
|
||||
|
||||
* **POSTMOOGLE_NOOWNER** - allow change room settings by any room partisipant
|
||||
* **POSTMOOGLE_FEDERATION** - allow usage of Postmoogle by users from others homeservers
|
||||
@@ -48,6 +47,40 @@ env vars
|
||||
|
||||
You can find default values in [config/defaults.go](config/defaults.go)
|
||||
|
||||
</details>
|
||||
|
||||
## Usage
|
||||
|
||||
### How to start
|
||||
|
||||
1. Invite the bot into a room you want to use as mailbox
|
||||
2. Read the bot's introduction
|
||||
3. Set mailbox using `!pm mailbox NAME` where `NAME` is part of email (e.g. `NAME@example.com`)
|
||||
4. Done. Mailbox owner and other options will be set automatically when you configure mailbox.
|
||||
If you want to change them - check available options in the help message (`!pm help`)
|
||||
|
||||
<details>
|
||||
<summary>Full list of available commands</summary>
|
||||
|
||||
* **!pm help** - Show help message
|
||||
* **!pm stop** - Disable bridge for the room and clear all configuration
|
||||
|
||||
---
|
||||
|
||||
* **!pm mailbox** - Get or set mailbox of the room
|
||||
* **!pm owner** - Get or set owner of the room
|
||||
|
||||
---
|
||||
|
||||
* **!pm nosender** - Get or set `nosender` of the room (`true` - hide email sender; `false` - show email sender)
|
||||
* **!pm nosubject** - Get or set `nosubject` of the room (`true` - hide email subject; `false` - show email subject)
|
||||
* **!pm nohtml** - Get or set `nohtml` of the room (`true` - ignore HTML in email; `false` - parse HTML in emails)
|
||||
* **!pm nothreads** - Get or set `nothreads` of the room (`true` - ignore email threads; `false` - convert email threads into matrix threads)
|
||||
* **!pm nofiles** - Get or set `nofiles` of the room (`true` - ignore email attachments; `false` - upload email attachments)
|
||||
|
||||
</details>
|
||||
|
||||
|
||||
## Where to get
|
||||
|
||||
[docker registry](https://gitlab.com/etke.cc/postmoogle/container_registry), [etke.cc](https://etke.cc)
|
||||
|
||||
Reference in New Issue
Block a user