From fed33f9b8fd4eedc93df8a0446d51fbd30f6c31f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 18 Aug 2016 17:18:47 +0200 Subject: Add email to install script and add offlineimap --- config/offlineimap/config | 30 ++++++++++++++++++++++++++++++ install | 15 +++++++++++++++ 2 files changed, 45 insertions(+) create mode 100755 config/offlineimap/config diff --git a/config/offlineimap/config b/config/offlineimap/config new file mode 100755 index 0000000..704985a --- /dev/null +++ b/config/offlineimap/config @@ -0,0 +1,30 @@ +# vim: set ft=config: +[general] +accounts = email +maxsyncaccounts = 4 + +[Repository email-remote] +type = IMAP +remotehost = imap.seznam.cz +remoteuser = cynerd@email.cz +ssl = yes +sslcacertfile = /etc/ssl/certs/ca-certificates.crt + +[Repository email-local] +type = Maildir +localfolders = ~/.mail/email + +[Account email] +localrepository = email-local +remoterepository = email-remote +status_backend = sqlite +autorefresh = 5 +quick = 5 + +[mbnames] +enabled = yes +filename = ~/.mutt/mailboxes +header = "mailboxes " +peritem = "+%(foldername)s" +sep = " " +footer = "\n" diff --git a/install b/install index becc24c..a2fa367 100755 --- a/install +++ b/install @@ -26,6 +26,21 @@ if [[ $REPLY =~ ^[Yy]?$ ]]; then echo "Please don't forget to setup YouCompleteMe" fi +read -p "Install email synchronization? (Y/n) " +if [[ $REPLY =~ ^[Yy]?$ ]]; then + inst local/bin/annoyme ~/.local/bin/ + inst local/sbin/annoyme-request ~/.local/sbin/ + inst local/sbin/syncemail ~/.local/sbin/ + inst config/offlineimap/ ~/.config/offlineimap + inst config/systemd/user/syncemail.service ~/.config/systemd/user +fi + +read -p "Install mutt configuration? (Y/n) " +if [[ $REPLY =~ ^[Yy]?$ ]]; then + inst mutt/ ~/.mutt + inst urlview ~/.urlview +fi + read -p "Install i3 configuration and related tools? (Y/n) " if [[ $REPLY =~ ^[Yy]?$ ]]; then inst xinitrc ~/.xinitrc -- cgit v1.2.3