todoman icon indicating copy to clipboard operation
todoman copied to clipboard

impossible to use calendars with same name from different dav accounts

Open sss123next opened this issue 4 years ago • 14 comments

with config like this

[main]
default_priority = 0
path = ~/.dav/calendar/*/*

i see this error

todo
More than one list has the same identity: default.

directory structure like this:

tree -d ~/.dav/calendar
/home/sss/.dav/calendar
├── shared
│   └── default
├── sss
│   └── default
└── sss_phone
    └── default

sss123next avatar Apr 14 '21 21:04 sss123next

Hmm... interesting. I take it that renaming one is unfeasable? I guess we could have per-calendar aliases. 🤔

WhyNotHugo avatar Apr 14 '21 21:04 WhyNotHugo

i have tried to mimic directory structure via simlinks, but it failed with same error, probably something like readlink used internally

sss123next avatar Apr 14 '21 21:04 sss123next

i guess khal approach will be good enough.

sss123next avatar Apr 14 '21 21:04 sss123next

The displayname is used: http://vdirsyncer.pimutils.org/en/stable/vdir.html#metadata

khal uses the same value

WhyNotHugo avatar Apr 14 '21 22:04 WhyNotHugo

i am using this config:

[calendars]

[[sss]]
#type = discover
path = ~/.dav/calendar/sss/default/
color = "light red"

[[phone]]
#type = discover
path = ~/.dav/calendar/sss_phone/default/
color = "dark red"

[[shared]]
#type = discover
path = ~/.dav/calendar/shared/default/
color = "light gray"

with khal and it works.

sss123next avatar Apr 14 '21 23:04 sss123next

it's also will be nice to have ability to move/copy items between accounts, but i guess this is topic for another ticket

sss123next avatar Apr 14 '21 23:04 sss123next

it's also will be nice to have ability to move/copy items between accounts, but i guess this is topic for another ticket

See todo move --help and todo copy --help.

WhyNotHugo avatar May 10 '21 08:05 WhyNotHugo

i see this error

todo More than one list has the same identity: default.

Do you still get this error after running `metasync?

WhyNotHugo avatar May 10 '21 08:05 WhyNotHugo

it's also will be nice to have ability to move/copy items between accounts, but i guess this is topic for another ticket

See todo move --help and todo copy --help.

i can't test bacause of More than one list has the same identity: default.

sss123next avatar May 10 '21 09:05 sss123next

i see this error todo More than one list has the same identity: default.

Do you still get this error after running `metasync?

what is `metasync ?

sss123next avatar May 10 '21 09:05 sss123next

vdirsyncer metasync tells vdirsyncer to fetch calendar name and colour metadata. Just in case, have you run this?

WhyNotHugo avatar May 10 '21 12:05 WhyNotHugo

same problem, but it is 3 different accounts with same name default so this will not help.

sss123next avatar May 10 '21 13:05 sss123next

Create a file called displayname inside the directories, and put an alias for each list there.

See https://todoman.readthedocs.io/en/stable/configure.html#color-and-displayname

Lemme know if that doesn't work.

WhyNotHugo avatar Jul 08 '21 19:07 WhyNotHugo

yes, this worked, thx for help. i guess it should be mentioned in error description.

sss123next avatar Jul 09 '21 14:07 sss123next