manage local scripts

This commit is contained in:
Bruno Carlin 2018-09-28 11:38:05 +02:00
parent 51802a8430
commit dc2cf152ee
5 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1 @@
/usr/share/doc/msmtp/msmtpqueue/msmtp-enqueue.sh

View file

@ -0,0 +1 @@
/usr/share/doc/msmtp/msmtpqueue/msmtp-listqueue.sh

View file

@ -0,0 +1 @@
/usr/share/doc/msmtp/msmtpqueue/msmtp-runqueue.sh

8
bin/.local/bin/syncemail Executable file
View file

@ -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

7
bin/.local/bin/syncnotebook Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
cd ~/Notebook
git pull
git add .
git commit -m "$(date)"
git push