Hi Wolfgang,

* Wolfgang Sourdeau <[email protected]>:
> Le 11-03-30 15:12, Patrick Ben Koetter a écrit :
> >I need to import 50 adressbook in LDIF format and I thought I'd use curl to 
> >do
> >a POST to the adressbook URL. But it seems (my naive interpretation) I get 
> >the
> >URL wrong:
> 
> The DAV addressbooks do not support LDIF importation. You need to
> use the web interface for this or to create a script that will
> translate the LDIF entries to vcards...

I found a script that converts LDIF to vCard and created a vcard file, but my
curl call fails:

curl -X POST -u [email protected] -v -d @adressbook.vcf 
https://mail.example.com/SOGo/dav/[email protected]/Contacts/personal/

sogo.log reports:

127.0.0.1 - - [30/Mar/2011:21:33:06 GMT] "POST 
/SOGo/dav/[email protected]/Contacts/personal/ HTTP/1.1" 500 36/347 0.023 - - 0

Wrong ressource?

TIA,

p@rick

-- 
state of mind
Digitale Kommunikation

http://www.state-of-mind.de

Franziskanerstraße 15      Telefon +49 89 3090 4664
81669 München              Telefax +49 89 3090 4666

Amtsgericht München        Partnerschaftsregister PR 563

-- 
[email protected]
https://inverse.ca/sogo/lists

Reply via email to