Add .offlineimap.py
Add .offlineimaprc
This commit is contained in:
parent
45fc6ebb7e
commit
8a01af2045
2 changed files with 29 additions and 0 deletions
8
dot_offlineimap.py
Normal file
8
dot_offlineimap.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#! /usr/bin/env python
|
||||
from subprocess import check_output
|
||||
|
||||
|
||||
def get_pass(account):
|
||||
return check_output("pass mail/" + account + "/password", shell=True).splitlines()[
|
||||
0
|
||||
]
|
||||
21
dot_offlineimaprc
Normal file
21
dot_offlineimaprc
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
[general]
|
||||
accounts = CowleyTech
|
||||
pythonfile = ~/.offlineimap.py
|
||||
|
||||
[Account CowleyTech]
|
||||
localrepository = CowleyTechLocal
|
||||
remoterepository = CowleyTechRemote
|
||||
postsynchook = ~/.local/bin/notmuch-hook.sh
|
||||
|
||||
[Repository CowleyTechRemote]
|
||||
type = IMAP
|
||||
remotehost = mail.chriscowley.me.uk
|
||||
remoteuser = chris
|
||||
remotepasseval = get_pass("imap")
|
||||
ssl = yes
|
||||
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
|
||||
|
||||
[Repository CowleyTechLocal]
|
||||
type = Maildir
|
||||
localfolders = ~/Maildir
|
||||
restoreatime = no
|
||||
Loading…
Add table
Add a link
Reference in a new issue