diff --git a/README.md b/README.md index b3209a5..2574715 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Musala Push +# Musala @@ -7,6 +7,10 @@ Every morning, get the content of your favorite kanban board by email, WhatsApp or SMS. +Note: _musala_ means _work, occupation_ [in Lingala](https://dic.lingala.be/fr/mosala) + +## Roadmap + Task sources: * :heavy_check_mark: __Trello__ @@ -22,6 +26,13 @@ Delivery via: * :x: SMS +Delivery via: + +* :heavy_check_mark: __E-mail__ +* :x: Whatsapp +* :x: SMS + + ## Installation ### With go @@ -105,9 +116,8 @@ Then run the program: ## Credits -Author & Maintainer: [Glenn Y. ROLLAND](https://github.com/glenux) - -Contributors: none yet ;) +* [Glenn Y. ROLLAND](https://github.com/glenux) - author & maintainer: +* You? Fork the project and become a contributor! Got questions? Need help? Tweet at [@glenux](https://twitter.com/glenux) diff --git a/cmd/musala-push/config.go b/cmd/musala-push/config.go index bdb1d10..e6e8aef 100644 --- a/cmd/musala-push/config.go +++ b/cmd/musala-push/config.go @@ -19,6 +19,7 @@ var ( ALLOWED_SECURITY_TYPES = []string{"none", "tls", "starttls"} ) +// Config type Config struct { EmailFrom string `mapstructure:"email-from"` EmailTo []string `mapstructure:"email-to"` diff --git a/cmd/musala-push/main.go b/cmd/musala-push/main.go index 772bdae..cb78ad7 100644 --- a/cmd/musala-push/main.go +++ b/cmd/musala-push/main.go @@ -42,7 +42,7 @@ func main() { fmt.Printf("d: exporting content of %s\n", trelloBoard.Name) trelloMarkdown := trelloBoard.ExportToMarkdown() - trelloHtml := trelloBoard.ExportToHtml() + trelloHTML := trelloBoard.ExportToHtml() config.EmailSubject = fmt.Sprintf("Daily mail for %s", trelloBoard.Name) // Create email enveloppe @@ -54,7 +54,7 @@ func main() { email.SetHeader("From", config.EmailFrom) email.SetHeader("Subject", config.EmailSubject) email.SetBody("text/plain", trelloMarkdown) - email.AddAlternative("text/html", trelloHtml) + email.AddAlternative("text/html", trelloHTML) // Connect and send email var transport *mail.Dialer