答案1
我最终选择了pass
——
我.vdirsyncer/config
用来password.fetch = ["command","pass","Nextcloud/user"]
找回密码。
在.offlineimaprc
[general]
accounts = Example
pythonfile = ~/.offlineimap/pass.py
[Repository ExRemote]
type = IMAP
remotehost = ...
cert_fingerprint = ...
remoteuser = [email protected]
remotepasseval = get_pass("user")
ssl = yes
然后.offlineimap/pass.py
包括这个:
#! /usr/bin/env python2
from subprocess import check_output
def get_pass(account):
return check_output("pass Example/" + account, shell=True).splitlines()[0]
我仍在微调我的.muttrc
设置。