aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2016-08-18 17:18:47 +0200
committerKarel Kočí <karel.koci@nic.cz>2016-08-18 17:18:47 +0200
commitfed33f9b8fd4eedc93df8a0446d51fbd30f6c31f (patch)
tree5a2d8161ac7a868d10eff659371b911777596d87
parentec907b0df80ee3df937be8bc42fe7b3ac0646852 (diff)
downloadmyconfigs-fed33f9b8fd4eedc93df8a0446d51fbd30f6c31f.tar.gz
myconfigs-fed33f9b8fd4eedc93df8a0446d51fbd30f6c31f.tar.bz2
myconfigs-fed33f9b8fd4eedc93df8a0446d51fbd30f6c31f.zip
Add email to install script and add offlineimap
-rwxr-xr-xconfig/offlineimap/config30
-rwxr-xr-xinstall15
2 files changed, 45 insertions, 0 deletions
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