Add vdirsyncer

This commit is contained in:
Nicolas Duhamel 2018-04-29 13:39:18 +02:00
parent 745af1d4d6
commit dc564c21ed
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,36 @@
[general]
status_path = "~/.local/share/vdirsyncer/status/"
[pair contacts]
a = "card_local"
b = "card_nextcloud"
collections = ["from a", "from b"]
[storage card_local]
type = "filesystem"
path = "~/.local/contacts/"
fileext = ".vcf"
[storage card_nextcloud]
type = "carddav"
url = "https://cloud.jombi.fr"
username = "nicolas"
password.fetch = ["command", "~/.config/vdirsyncer/getpass.py", "nicolas"]
[pair calendars]
a = "cal_local"
b = "cal_nextcloud"
collections = ["from a", "from b"]
[storage cal_local]
type = "filesystem"
path = "~/.local/calendars/"
fileext = ".ics"
[storage cal_nextcloud]
type = "caldav"
url = "https://cloud.jombi.fr"
username = "nicolas"
password.fetch = ["command", "~/.config/vdirsyncer/getpass.py", "nicolas"]

View File

@ -0,0 +1,10 @@
#! /usr/bin/env python2
import sys
from subprocess import check_output
def get_pass(account):
return check_output("pass nextcloud/" + account, shell=True).splitlines()[0]
if __name__ == '__main__':
print get_pass(sys.argv[1])