Skip to content
Snippets Groups Projects
Commit c3af5216 authored by lucha's avatar lucha
Browse files

offlineimap config

parent 0b1abe6a
No related branches found
No related tags found
No related merge requests found
#! /usr/bin/env python
# save as $HOME/.offlineimap.py
from subprocess import check_output
def get_pass(account):
return check_output("gpg --no-tty --quiet --for-your-eyes-only -d ~/.password-store/" + account + ".gpg", shell=True).rstrip()
# example configuration for offlineimap
# save as $HOME/.offlineimaprc
# remember to set permission to 700 with
# chmod 700 $HOME/.offlineimaprc
[general]
accounts = Autistici
# you can call external commands via a python script
# mostly useful for obtaining a password from an encrypted file
pythonfile = ~/.offlineimap.py
[Account Autistici]
localrepository = autistici-local
remoterepository = autistici-remote
status_backend = sqlite
[Repository autistici-local]
type = Maildir
localfolders = ~/Mail/Autistici
[Repository autistici-remote]
type = IMAP
remotehost = mail.autistici.org
remoteuser = username@domain.org
remotepass = PASSWORD
# alternatevely, you can use an external command via
remotepasseval = get_pass("autistici.org")
ssl = yes
# location of SSL/TLS CA certificate
sslcacertfile = /etc/ssl/certs/ca-certificates.crt # Most Linux distributions. Might be different on your system.
# If you use mutt, you might want to enable the following
#[mbnames]
#enabled = yes
#filename = ~/.mutt/mailboxes
#header = "mailboxes "
#peritem = "+%(accountname)s/%(foldername)s"
#sep = " "
#footer = "\n"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment