diff --git a/bin/.local/bin/msmtp-enqueue.sh b/bin/.local/bin/msmtp-enqueue.sh new file mode 120000 index 0000000..ba7ad1f --- /dev/null +++ b/bin/.local/bin/msmtp-enqueue.sh @@ -0,0 +1 @@ +/usr/share/doc/msmtp/msmtpqueue/msmtp-enqueue.sh \ No newline at end of file diff --git a/bin/.local/bin/msmtp-listqueue.sh b/bin/.local/bin/msmtp-listqueue.sh new file mode 120000 index 0000000..8bc91d4 --- /dev/null +++ b/bin/.local/bin/msmtp-listqueue.sh @@ -0,0 +1 @@ +/usr/share/doc/msmtp/msmtpqueue/msmtp-listqueue.sh \ No newline at end of file diff --git a/bin/.local/bin/msmtp-runqueue.sh b/bin/.local/bin/msmtp-runqueue.sh new file mode 120000 index 0000000..197e7b2 --- /dev/null +++ b/bin/.local/bin/msmtp-runqueue.sh @@ -0,0 +1 @@ +/usr/share/doc/msmtp/msmtpqueue/msmtp-runqueue.sh \ No newline at end of file diff --git a/bin/.local/bin/syncemail b/bin/.local/bin/syncemail new file mode 100755 index 0000000..0b940a4 --- /dev/null +++ b/bin/.local/bin/syncemail @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +for a in waarp; do + echo "Début de la synchronisation" + mbsync -a gmail-$a && echo "Synchronisation effectuée" || echo "Erreur de syncheronisation" >&2 + echo mailboxes $(mbsync -l gmail-$a | sed -e 's|\(.*\)|"+\1"|') > ~/.config/mutt/$a.mailboxes +done + diff --git a/bin/.local/bin/syncnotebook b/bin/.local/bin/syncnotebook new file mode 100755 index 0000000..5aafd96 --- /dev/null +++ b/bin/.local/bin/syncnotebook @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +cd ~/Notebook +git pull +git add . +git commit -m "$(date)" +git push