Add password to offlineimap

This commit is contained in:
Nicolas Duhamel 2018-04-28 18:27:33 +02:00
parent d9b215bdd0
commit f6a81ccc4e
2 changed files with 8 additions and 0 deletions

View File

@ -1,4 +1,5 @@
[general] [general]
pythonfile = $XDG_CONFIG_HOME/offlineimap/getpass.py
accounts = jombi accounts = jombi
metadata = $XDG_DATA_HOME/offlineimap metadata = $XDG_DATA_HOME/offlineimap
@ -19,3 +20,4 @@ remoteport = 993
remotehost = mail.jombi.fr remotehost = mail.jombi.fr
remoteuser = nicolas@jombi.fr remoteuser = nicolas@jombi.fr
folderfilter = lambda folder: folder not in ['dovecot.sieve'] folderfilter = lambda folder: folder not in ['dovecot.sieve']
remotepasseval = get_pass("nicolas@jombi.fr")

View File

@ -0,0 +1,6 @@
#! /usr/bin/env python2
from subprocess import check_output
def get_pass(account):
return check_output("pass mail/" + account, shell=True).splitlines()[0]