2020-05-18 00:45:20 +02:00
|
|
|
# <img src="doc/logo-title-paths.svg" width="50%" style="display: block; margin: 0 auto;" alt="Musala" />
|
|
|
|
|
2021-01-03 13:37:02 +01:00
|
|
|

|
|
|
|
<!-- [](https://rubygems.org/gems/musala) -->
|
|
|
|
[](https://github.com/glenux/musala/blob/master/LICENSE.txt)
|
2020-01-25 18:53:26 +01:00
|
|
|
[](https://patreon.com/glenux)
|
2018-08-22 12:29:23 +02:00
|
|
|
|
2020-01-25 18:53:26 +01:00
|
|
|
Every morning, get the content of your favorite kanban board by email, WhatsApp or SMS.
|
2020-01-25 18:53:26 +01:00
|
|
|
|
2020-05-17 23:48:24 +02:00
|
|
|
Note: _musala_ means _work, occupation_ [in Lingala](https://dic.lingala.be/fr/mosala)
|
2020-05-17 23:47:43 +02:00
|
|
|
|
|
|
|
## Roadmap
|
|
|
|
|
2020-01-25 18:53:26 +01:00
|
|
|
Task sources:
|
2019-09-04 17:03:46 +02:00
|
|
|
|
|
|
|
* :heavy_check_mark: __Trello__
|
2020-06-02 16:58:56 +02:00
|
|
|
* :x: Nextcloud Deck (not yet) - [API Reference](https://github.com/nextcloud/deck/blob/master/docs/API.md)
|
|
|
|
* :x: Wekan (not yet) - [API Reference](https://github.com/wekan/wekan/wiki/REST-API)
|
2019-09-04 17:13:34 +02:00
|
|
|
* :x: Libreboard (not yet)
|
|
|
|
* :x: Github Projects (not yet)
|
2018-08-22 12:29:23 +02:00
|
|
|
|
2020-06-02 17:07:20 +02:00
|
|
|
Source selection
|
|
|
|
|
|
|
|
* :heavy_check_mark: __All of them__
|
|
|
|
* :heavy_check_mark: __Favorited boards__
|
|
|
|
* :x: Only selected ones
|
|
|
|
|
2020-01-25 18:53:26 +01:00
|
|
|
Delivery via:
|
|
|
|
|
|
|
|
* :heavy_check_mark: __E-mail__
|
2020-06-02 17:04:00 +02:00
|
|
|
* :x: Telegram
|
2020-06-02 17:04:33 +02:00
|
|
|
* :x: Slack
|
2020-01-25 18:53:26 +01:00
|
|
|
* :x: SMS
|
2020-06-02 17:05:12 +02:00
|
|
|
* :x: Whatsapp
|
|
|
|
* :x: IRC
|
2020-01-25 18:53:26 +01:00
|
|
|
|
2020-06-02 17:09:22 +02:00
|
|
|
User interface for account configuration
|
2020-06-02 17:08:49 +02:00
|
|
|
|
2020-06-02 17:09:22 +02:00
|
|
|
* :heavy_check_mark: Command line + environment variables
|
2020-06-02 17:08:49 +02:00
|
|
|
* :x: Web app
|
|
|
|
|
2018-08-22 20:02:00 +02:00
|
|
|
## Installation
|
2018-08-22 12:29:23 +02:00
|
|
|
|
2018-08-27 15:48:08 +02:00
|
|
|
### With go
|
|
|
|
|
2018-08-22 20:15:11 +02:00
|
|
|
Make sure you have Go installed, then type:
|
2018-08-22 20:02:00 +02:00
|
|
|
|
2021-01-03 13:37:02 +01:00
|
|
|
$ go install github.com/glenux/musala/...
|
2018-08-22 20:02:00 +02:00
|
|
|
|
2019-09-04 17:03:46 +02:00
|
|
|
It will install Musala Mail binary in `$GOPATH/bin`
|
2018-08-22 20:15:11 +02:00
|
|
|
|
2020-01-25 23:50:35 +01:00
|
|
|
|
2018-08-27 15:48:08 +02:00
|
|
|
### With docker
|
|
|
|
|
|
|
|
Make sure you have Docker installed, then type:
|
|
|
|
|
2021-01-03 13:37:02 +01:00
|
|
|
$ docker build -t musala -f docker/Dockerfile .
|
2018-08-22 20:15:11 +02:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2019-09-04 17:12:00 +02:00
|
|
|
### Creating a developper account
|
2019-09-04 07:35:49 +02:00
|
|
|
|
2019-09-04 17:03:46 +02:00
|
|
|
1. Create a Trello account on <https://trello.com>
|
|
|
|
2. Check your mailbox and confirm your email
|
2019-09-04 07:35:49 +02:00
|
|
|
3. Enable developper account on <https://trello.com/app-key>
|
|
|
|
4. Get an developer API KEY
|
|
|
|
|
2020-01-25 23:50:35 +01:00
|
|
|
|
2019-09-04 17:12:00 +02:00
|
|
|
### Getting a Trello TOKEN
|
2018-11-23 13:31:41 +01:00
|
|
|
|
|
|
|
Open the following URL in your web browser and authenticate yourself. That will
|
|
|
|
give you the TRELLO_TOKEN that will be needed in the next step.
|
|
|
|
|
2019-09-04 17:03:46 +02:00
|
|
|
<https://trello.com/1/authorize?expiration=never&scope=read,write,account&response_type=token&name=Musala%20Mail&key=YOUR-API-KEY>
|
2018-11-23 13:31:41 +01:00
|
|
|
|
2020-01-25 23:50:35 +01:00
|
|
|
|
2019-09-04 17:12:00 +02:00
|
|
|
### Using the binary
|
2018-08-28 09:54:19 +02:00
|
|
|
|
2018-08-22 20:15:11 +02:00
|
|
|
Prepare your environment with the following variables
|
|
|
|
|
|
|
|
```
|
|
|
|
EMAIL_FROM: no-reply@example.com
|
|
|
|
EMAIL_TO: me@example.com
|
|
|
|
EMAIL_SUBJECT: "Daily mail for YYYYYY"
|
|
|
|
TRELLO_URL: https://trello.com/b/xxxxx/yyyy
|
|
|
|
TRELLO_TOKEN: xxxxxxxxxxxxxx
|
|
|
|
SMTP_HOSTNAME: smtp.example.com
|
|
|
|
SMTP_USERNAME: foobar@example.com
|
|
|
|
SMTP_PASSWORD: securefoobar
|
|
|
|
SMTP_PORT: 587
|
|
|
|
# SMTP_AUTH_TYPE accepts either "none", "plain" or "login"
|
|
|
|
SMTP_AUTH_TYPE: plain
|
|
|
|
# SMTP_SECURITY_TYPE accepts either "none", "tls" or "starttls"
|
|
|
|
SMTP_SECURITY_TYPE: tls
|
|
|
|
```
|
|
|
|
|
|
|
|
Then run the program:
|
|
|
|
|
2021-01-03 13:37:02 +01:00
|
|
|
$ $GOPATH/bin/musala
|
2018-08-22 20:15:11 +02:00
|
|
|
|
2019-09-04 17:12:00 +02:00
|
|
|
### Using with docker
|
2018-08-28 09:54:19 +02:00
|
|
|
|
2021-01-03 13:37:02 +01:00
|
|
|
$ docker build -f docker/Dockerfile -t musala .
|
2019-09-04 17:12:00 +02:00
|
|
|
$ docker run \
|
2018-08-28 09:54:19 +02:00
|
|
|
-e EMAIL_FROM=
|
|
|
|
-e EMAIL_TO=
|
|
|
|
-e EMAIL_SUBJECT=
|
|
|
|
-e EMAIL_FROM=
|
|
|
|
-e EMAIL_TO=
|
|
|
|
-e EMAIL_SUBJECT=
|
2021-01-03 13:37:02 +01:00
|
|
|
-v /var/lib/musala/musala.cron:/app/musala.cron \
|
|
|
|
-it musala:latest
|
2018-08-22 20:02:00 +02:00
|
|
|
|
|
|
|
## Contributing
|
|
|
|
|
2021-01-03 13:37:02 +01:00
|
|
|
1. Fork it ( http://github.com/glenux/musala/fork )
|
2018-08-22 20:02:00 +02:00
|
|
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
|
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
|
|
4. Push to the branch (`git push origin my-new-feature`)
|
|
|
|
5. Create new Pull Request
|
|
|
|
|
|
|
|
|
|
|
|
## Credits
|
|
|
|
|
2020-05-17 23:52:09 +02:00
|
|
|
* [Glenn Y. ROLLAND](https://github.com/glenux) - author & maintainer:
|
|
|
|
* You? Fork the project and become a contributor!
|
2018-08-22 20:02:00 +02:00
|
|
|
|
2019-09-04 17:03:46 +02:00
|
|
|
Got questions? Need help? Tweet at [@glenux](https://twitter.com/glenux)
|
2018-08-22 20:02:00 +02:00
|
|
|
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
2021-01-03 13:44:20 +01:00
|
|
|
Musala is Copyright © 2018-2021 Glenn ROLLAND. It is free software, and may be redistributed under the terms specified in the LICENSE.txt file.
|
2019-09-04 17:03:46 +02:00
|
|
|
|