发布于 2018-01-03 18:29:36
最后我和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 = user@example.com
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设置。
https://unix.stackexchange.com/questions/413728
复制相似问题