Add password to offlineimap
This commit is contained in:
parent
d9b215bdd0
commit
f6a81ccc4e
@ -1,4 +1,5 @@
|
||||
[general]
|
||||
pythonfile = $XDG_CONFIG_HOME/offlineimap/getpass.py
|
||||
accounts = jombi
|
||||
metadata = $XDG_DATA_HOME/offlineimap
|
||||
|
||||
@ -19,3 +20,4 @@ remoteport = 993
|
||||
remotehost = mail.jombi.fr
|
||||
remoteuser = nicolas@jombi.fr
|
||||
folderfilter = lambda folder: folder not in ['dovecot.sieve']
|
||||
remotepasseval = get_pass("nicolas@jombi.fr")
|
||||
|
6
user/offlineimap/.config/offlineimap/getpass.py
Normal file
6
user/offlineimap/.config/offlineimap/getpass.py
Normal 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]
|
Loading…
x
Reference in New Issue
Block a user