aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md10
-rw-r--r--gnupg/gpg-agent.conf3
-rwxr-xr-xinstall.sh2
-rw-r--r--mbsyncrc119
4 files changed, 126 insertions, 8 deletions
diff --git a/README.md b/README.md
index 6c3554c..0c007af 100644
--- a/README.md
+++ b/README.md
@@ -10,6 +10,8 @@ And that's about it. Use this at your own risk ;)
## GNU Emacs
+**NOTE**: these instructions are outdated, I'll update them whenever I can.
+
For the configuration of Emacs I'm trying out using symlinks instead of copying
files into the right places. For this reason, for now I'm not providing an
automatical way to install everything (this is left to be done in the near
@@ -43,14 +45,6 @@ $ sudo zypper in spell
Also, in GNU Emacs the markdown mode requires a markdown-to-HTML converter. There
are multiple options, but for me `calibre` seems to work just fine.
-## mu
-
-I'm using `mu` and `mbsync` to handle my email. TODO: explain how to setup
-authorization and how to install everything
-
-- **TODO**: separate README for GNU Emacs, mbsync, mu, etc.
-- **TODO**: script to automate setup
-
## Weechat certificates
For connecting to OFTC I'm using my own SSL certificates. OFTC has good
diff --git a/gnupg/gpg-agent.conf b/gnupg/gpg-agent.conf
new file mode 100644
index 0000000..5272bca
--- /dev/null
+++ b/gnupg/gpg-agent.conf
@@ -0,0 +1,3 @@
+pinentry-program /usr/bin/pinentry-qt4
+max-cache-ttl 720000
+default-cache-ttl 720000
diff --git a/install.sh b/install.sh
index 068f869..e913112 100755
--- a/install.sh
+++ b/install.sh
@@ -27,6 +27,8 @@ cp tmux.conf $HOME/.tmux.conf
cp rake_completion $HOME/.rake_completion
cp rvmrc $HOME/.rvmrc
cp gnupg/gpg.conf $HOME/.gnupg/gpg.conf
+cp gnupg/gpg-agent.conf $HOME/.gnupg/gpg-agent.conf
+cp mbsyncrc $HOME/.mbsyncrc
chmod +x $HOME/.rake_completion
# Some random scripts
diff --git a/mbsyncrc b/mbsyncrc
new file mode 100644
index 0000000..c4a51e3
--- /dev/null
+++ b/mbsyncrc
@@ -0,0 +1,119 @@
+# My credentials are encrypted with my GPG keys symmetrically. The login is done
+# through SSL and the certificate file is located where openSUSE puts it. This
+# configuration requires mbsync 1.3 (or current git master). I'm doing this
+# because:
+# 1. I need to increase the timeout for imap.novell.com
+# 2. I need the improvements for subdirectories handling
+
+##
+# GMail
+
+IMAPAccount gmail
+Host imap.gmail.com
+User mikisabate@gmail.com
+PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.mbsyncpassgmail.gpg"
+SSLType IMAPS
+AuthMechs Login
+CertificateFile /etc/ssl/ca-bundle.pem
+
+# Use the account specified above as the remote storage.
+IMAPStore gmail-remote
+Account gmail
+
+# Let's use ~/.mail as the prefix for the local storage.
+MaildirStore gmail-local
+Path ~/.mail/gmail/
+Inbox ~/.mail/gmail/inbox
+SubFolders Verbatim
+
+# We could have one only channel, and filter them through the Patterns
+# directive. I prefer having multiple channels and then group them.
+
+Channel gmail-inbox
+Master :gmail-remote:
+Slave :gmail-local:
+Patterns "INBOX"
+Create Both
+Expunge Both
+Sync All
+SyncState *
+
+Channel gmail-all
+Master :gmail-remote:"[Gmail]/All Mail"
+Slave :gmail-local:"All"
+Create Both
+Expunge Both
+Sync All
+SyncState *
+
+Channel gmail-sent
+Master :gmail-remote:"[Gmail]/Sent Mail"
+Slave :gmail-local:"Sent"
+Create Both
+Expunge Both
+Sync All
+SyncState *
+
+# And finally group everything here.
+
+Group gmail
+Channel gmail-inbox
+Channel gmail-all
+Channel gmail-sent
+
+##
+# suse.de
+
+IMAPAccount susede
+Host imap.suse.de
+User msabate
+PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.mbsyncpasssusede.gpg"
+SSLType IMAPS
+AuthMechs Login
+CertificateFile /etc/ssl/ca-bundle.pem
+
+IMAPStore susede-remote
+Account susede
+
+MaildirStore susede-local
+Path ~/.mail/susede/
+Inbox ~/.mail/susede/inbox
+SubFolders Verbatim
+
+Channel susede
+Master :susede-remote:
+Slave :susede-local:
+Patterns *
+Create Slave
+Sync All
+Expunge Both
+SyncState *
+
+##
+# suse.com
+
+IMAPAccount susecom
+Host imap.novell.com
+User msabate
+PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.mbsyncpasssusecom.gpg"
+SSLType STARTTLS
+AuthMechs Login
+CertificateFile /etc/ssl/ca-bundle.pem
+Timeout 60
+
+IMAPStore susecom-remote
+Account susecom
+
+MaildirStore susecom-local
+Path ~/.mail/susecom/
+Inbox ~/.mail/susecom/inbox
+SubFolders Verbatim
+
+Channel susecom
+Master :susecom-remote:
+Slave :susecom-local:
+Patterns * !Calendar
+Create Slave
+Sync All
+Expunge Both
+SyncState *