Results 1 to 4 of 4

Thread: Importing VCF and ICS without shell access

  1. #1
    Join Date
    Sep 2007
    Location
    Brasília, Brazil
    Posts
    20
    Rep Power
    8

    Default Importing VCF and ICS without shell access

    Hi,

    I want to import an ICS and a VCF file, but my Zimbra installation is hosted and so I don't have access to a shell. Can I import ICS and VCF via the REST interface, or any other means?

    (Yes, I know I can convert the VCF to CSV and import.)

  2. #2
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    Do you have access to a shell?

    As long as you have access to curl (doesn't matter where) you can upload ical, and vcf files to your server using the rest interface.
    Code:
    curl -u username:password --data-binary @/home/mycal.ics http://mail.domain.com/zimbra/home/u...lendar?fmt=ics
    Not sure about VCF, never tried it. You might be able to do:
    Code:
    curl -u username:password --data-binary @/home/contact.vcf http://mail.domain.com/zimbra/home/u...ntacts?fmt=vcf

  3. #3
    Join Date
    Sep 2007
    Location
    Brasília, Brazil
    Posts
    20
    Rep Power
    8

    Default

    Thanks A LOT, jholder!
    Both ICS and VCF import worked beautifully

    Quote Originally Posted by jholder View Post
    Do you have access to a shell?

    As long as you have access to curl (doesn't matter where) you can upload ical, and vcf files to your server using the rest interface.
    Code:
    curl -u username:password --data-binary @/home/mycal.ics http://mail.domain.com/zimbra/home/u...lendar?fmt=ics
    Not sure about VCF, never tried it. You might be able to do:
    Code:
    curl -u username:password --data-binary @/home/contact.vcf http://mail.domain.com/zimbra/home/u...ntacts?fmt=vcf

  4. #4
    Join Date
    Feb 2008
    Location
    Easton PA
    Posts
    63
    Rep Power
    7

    Default How would you view logs from this to debug?

    Would someone tell me how to see logs from the REST service, not just http logs.

    I'm trying to use REST to import an ICS file from my Google Calendar as per:

    User Migration - Zimbra :: Wiki

    From the wiki I gather I can do this:

    curl -v -u fultonj:$passwd --data-binary @/home/fultonj/work/zimbra/data/fultonj.ics http://zimbra.lafayette.edu/service/...lendar?fmt=ics

    which returns normally and I can even see a Set-Cookie. I can also see that my request went through by looking at my logs with:

    tail -f /opt/zimbra/tomcat/logs/access_log.2008-02-01

    which produces:

    139.147.160.232 - - [01/Feb/2008:18:29:19 -0500] "POST /service/home/fultonj/Calendar?fmt=ics HTTP/1.1" 200 - "-" "curl/7.16.4 (x86_64-pc-linux-gnu) libcurl/7.16.4 OpenSSL/0.9.8e zlib/1.2.3.3 libidn/1.0"

    However, my calendar is not getting updated. I imagine that Tomcat is
    getting the binary data that I'm posting since it's taking what seems
    like the appropriate amount of time for a 500k ICS file. However it's
    not getting processed and I'd like to know where it's failing.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •