diff --git a/.gitignore b/.gitignore
index db915fc..f264ca2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,4 @@
-/trello2mail
+/musala-mail
/vendor
/tmp
.env
diff --git a/Makefile b/Makefile
index ff82f57..d5e7845 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
GOFILES=$(wildcard *.go)
-NAME=trello2mail
+NAME=musala-mail
all: build
diff --git a/cmd/trello2mail/config.go b/cmd/musala-mail/config.go
similarity index 99%
rename from cmd/trello2mail/config.go
rename to cmd/musala-mail/config.go
index 9ddea19..121f884 100644
--- a/cmd/trello2mail/config.go
+++ b/cmd/musala-mail/config.go
@@ -11,7 +11,7 @@ import (
)
const (
- programBinary string = "trello2mail"
+ programBinary string = "musala-mail"
)
var (
diff --git a/cmd/trello2mail/main.go b/cmd/musala-mail/main.go
similarity index 100%
rename from cmd/trello2mail/main.go
rename to cmd/musala-mail/main.go
diff --git a/cmd/trello2mail/trello.go b/cmd/musala-mail/trello.go
similarity index 100%
rename from cmd/trello2mail/trello.go
rename to cmd/musala-mail/trello.go
diff --git a/contrib-trello b/contrib-trello
new file mode 120000
index 0000000..ad21027
--- /dev/null
+++ b/contrib-trello
@@ -0,0 +1 @@
+/home/warbrain/src/Contrib/contrib-trello
\ No newline at end of file
diff --git a/doc/presentation.md b/doc/presentation.md
index 033d19d..c7a0676 100644
--- a/doc/presentation.md
+++ b/doc/presentation.md
@@ -1,5 +1,5 @@
-# Projet Trello2Mail
+# Projet Musala Mail
### Rappel par email des taches à faire
@@ -81,7 +81,7 @@ Le projet s'est déroulé selon les étapes suivantes, afin de minimiser le risq
### Langage de programmation
-Trello2mail est développé en Go ( https://golang.org )
+Musala Mail est développé en Go ( https://golang.org )
Ce langage permet :
@@ -94,13 +94,13 @@ Ce langage permet :
### Framework
-Trello2mail utilise le framework blablablala
+Musala Mail utilise le framework blablablala
-----
### API Trello
-Trello2mail utilise la bibliotheque blabla pour se connecter à l'api trello.
+Musala Mail utilise la bibliotheque blabla pour se connecter à l'api trello.
L'autre bibliotheque était trop pourrie (apres avoir fait des essais pendant 2 jours).
diff --git a/docker-compose.example.yml b/docker-compose.example.yml
index 378b339..83aa408 100644
--- a/docker-compose.example.yml
+++ b/docker-compose.example.yml
@@ -1,6 +1,6 @@
version: '3'
services:
- trello2mail:
+ app:
build:
context: .
dockerfile: docker/Dockerfile
diff --git a/docker/Dockerfile b/docker/Dockerfile
index ad380d7..0f2a037 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -6,7 +6,7 @@ FROM golang:1.12 AS build
RUN git clone \
--single-branch \
--branch develop \
- https://github.com/glenux/trello2mail \
+ https://github.com/glenux/musala-mail \
/app \
&& git clone \
https://github.com/glenux/contrib-trello \
@@ -29,9 +29,9 @@ RUN apk update \
&& rm -rf /var/cache/apk/*
RUN mkdir /app
-COPY --from=build /app/trello2mail /app/
-COPY docker/trello2mail.cron /app/
+COPY --from=build /app/musala-mail /app/
+COPY docker/musala-mail.cron /app/
COPY templates/ /app/templates
-CMD ["/bin/sh", "-c", "/usr/bin/crontab /app/trello2mail.cron && /usr/sbin/crond -f"]
+CMD ["/bin/sh", "-c", "/usr/bin/crontab /app/musala-mail.cron && /usr/sbin/crond -f"]
diff --git a/docker/trello2mail.cron b/docker/trello2mail.cron
index 2f1833e..8f0a9b2 100644
--- a/docker/trello2mail.cron
+++ b/docker/trello2mail.cron
@@ -1,8 +1,8 @@
# ALL boards for given user
-30 10 * * * cd /app && TRELLO_URL="" TRELLO_TOKEN="" EMAIL_TO="" /app/trello2mail
+30 10 * * * cd /app && TRELLO_URL="" TRELLO_TOKEN="" EMAIL_TO="" /app/musala-mail
# Send this board to other user
-30 10 * * * cd /app TRELLO_URL="" TRELLO_TOKEN="" EMAIL_TO="" /app/trello2mail
+30 10 * * * cd /app TRELLO_URL="" TRELLO_TOKEN="" EMAIL_TO="" /app/musala-mail
# Send this board to mailing list
-30 10 * * * cd /app TRELLO_URL="" TRELLO_TOKEN="" EMAIL_TO="" /app/trello2mail
+30 10 * * * cd /app TRELLO_URL="" TRELLO_TOKEN="" EMAIL_TO="" /app/musala-mail
diff --git a/docker/trello2mail.future.cron b/docker/trello2mail.future.cron
deleted file mode 100644
index 81823da..0000000
--- a/docker/trello2mail.future.cron
+++ /dev/null
@@ -1,9 +0,0 @@
-# Private tasks
-0 8 * * * /app/trello2main --trello-board xxxxxxxx
-
-# Project 1
-1 8 * * * /app/trello2main --trello-board yyyyyyyy
-
-# Project 2
-2 8 * * * /app/trello2main --trello-board zzzzzzzz
-
diff --git a/go.mod b/go.mod
index f2ff0f9..2c1610e 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module github.com/glenux/trello2mail
+module github.com/glenux/musala-mail
require (
cloud.google.com/go v0.44.3 // indirect
diff --git a/templates/html2.tmpl b/templates/html2.tmpl
new file mode 100644
index 0000000..a3f1c13
--- /dev/null
+++ b/templates/html2.tmpl
@@ -0,0 +1,323 @@
+
+
+
+
+
+
+
+
+ Musala Mail
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Put your preheader text here
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Your daily task list for
La classe américaine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Rendez vous avec les journalistes
+
+
+ Georges A. , pour le jeudi 27 avril 2019
+
+
+ Blablabla, super projet, lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. >> voir plus
+
+
+
+
+
+
+ Rendez vous avec les journalistes
+
+
+ Georges A. , pour le jeudi 27 avril 2019
+
+
+ Blablabla, super projet, lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. >> voir plus
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Rendez vous avec les journalistes
+
+
+ Georges A. , pour le jeudi 27 avril 2019
+
+
+ Blablabla, super projet, lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. >> voir plus
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+