1 # An example configuration for vdirsyncer.
 
   3 # Move it to ~/.vdirsyncer/config or ~/.config/vdirsyncer/config and edit it.
 
   4 # Run `vdirsyncer --help` for CLI usage.
 
   6 # Optional parameters are commented out.
 
   7 # This file doesn't document all available parameters, see
 
   8 # http://vdirsyncer.pimutils.org/ for the rest of them.
 
  11 # A folder where vdirsyncer can store some metadata about each pair.
 
  12 status_path = "~/.local/share/vdirsyncer/"
 
  16 # A `[pair <name>]` block defines two storages `a` and `b` that should be
 
  17 # synchronized. The definition of these storages follows in `[storage <name>]`
 
  18 # blocks. This is similar to accounts in OfflineIMAP.
 
  22 # [ name, remote-dir, local-dir]
 
  23 collections = [["mailfence", "contacts", "mailfence"]]
 
  25 # Synchronize the "display name" property into a local file (~/.contacts/displayname).
 
  26 metadata = ["displayname"]
 
  28 # To resolve a conflict the following values are possible:
 
  29 #   `null` - abort when collisions occur (default)
 
  30 #   `"a wins"` - assume a's items to be more up-to-date
 
  31 #   `"b wins"` - assume b's items to be more up-to-date
 
  32 #conflict_resolution = null
 
  34 [storage contacts_remote]
 
  36 url = "https://mailfence.com/dav/samirbenmendil/private/contacts"
 
  37 username = "samirbenmendil"
 
  38 password.fetch = ["command", "pass", "mailfence.com/xdav"]
 
  40 [storage contacts_local]
 
  42 path = "~/.local/share/contacts/"
 
  49 collections = ["from a", "from b"]
 
  51 # Calendars also have a color property
 
  52 metadata = ["displayname", "color"]
 
  54 [storage calendar_remote]
 
  56 url = "https://mailfence.com/dav/samirbenmendil/private/events"
 
  57 username = "samirbenmendil"
 
  58 password.fetch = ["command", "pass", "mailfence.com/xdav"]
 
  60 [storage calendar_local]
 
  62 path = "~/.local/share/calendars/"