musala/README.md

100 lines
2.5 KiB
Markdown
Raw Normal View History

2019-09-04 15:03:46 +00:00
# Musala Mail
2018-08-22 10:29:23 +00:00
2019-09-04 15:03:46 +00:00
Every morning, get the content of your favorite kanban board by email
2018-08-22 10:29:23 +00:00
2019-09-04 15:03:46 +00:00
Compatibility:
* :heavy_check_mark: __Trello__
* :white_check_mark: Libreboard :x: (work in progress)
2018-08-22 10:29:23 +00:00
2018-08-22 18:02:00 +00:00
## Installation
2018-08-22 10:29:23 +00:00
2018-08-27 13:48:08 +00:00
### With go
2018-08-22 18:15:11 +00:00
Make sure you have Go installed, then type:
2018-08-22 18:02:00 +00:00
2019-09-04 15:03:46 +00:00
go install github.com/glenux/musala-mail/...
2018-08-22 18:02:00 +00:00
2019-09-04 15:03:46 +00:00
It will install Musala Mail binary in `$GOPATH/bin`
2018-08-22 18:15:11 +00:00
2018-08-27 13:48:08 +00:00
### With docker
Make sure you have Docker installed, then type:
2019-09-04 15:03:46 +00:00
docker build -t musala-mail -f docker/Dockerfile .
2018-08-22 18:15:11 +00:00
## Usage
2019-09-04 05:35:49 +00:00
## Creating a developper account
2019-09-04 15:03:46 +00:00
1. Create a Trello account on <https://trello.com>
2. Check your mailbox and confirm your email
2019-09-04 05:35:49 +00:00
3. Enable developper account on <https://trello.com/app-key>
4. Get an developer API KEY
## Getting a Trello TOKEN
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 15:03:46 +00:00
<https://trello.com/1/authorize?expiration=never&scope=read,write,account&response_type=token&name=Musala%20Mail&key=YOUR-API-KEY>
2018-08-28 07:54:19 +00:00
## Normal use
2018-08-22 18:15:11 +00: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:
2019-09-04 15:03:46 +00:00
$GOPATH/bin/musala-mail
2018-08-22 18:15:11 +00:00
2018-08-28 07:54:19 +00:00
### With docker
docker run \
-e EMAIL_FROM=
-e EMAIL_TO=
-e EMAIL_SUBJECT=
-e EMAIL_FROM=
-e EMAIL_TO=
-e EMAIL_SUBJECT=
2019-09-04 15:03:46 +00:00
-v /var/lib/musala-mail/musala-mail.cron:/app/musala-mail.cron \
-it musala-mail:latest
2018-08-22 18:02:00 +00:00
## Contributing
2019-09-04 15:03:46 +00:00
1. Fork it ( http://github.com/glenux/musala-mail/fork )
2018-08-22 18:02:00 +00: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
2019-09-04 15:03:46 +00:00
Author & Maintainer: [Glenn Y. ROLLAND](https://github.com/glenux)
2018-08-22 18:02:00 +00:00
Contributors: none yet ;)
2019-09-04 15:03:46 +00:00
Got questions? Need help? Tweet at [@glenux](https://twitter.com/glenux)
2018-08-22 18:02:00 +00:00
## License
2019-09-04 15:03:46 +00:00
Musala Mail is Copyright © 2018-2019 Glenn ROLLAND. It is free software, and may be redistributed under the terms specified in the LICENSE file.