Page 1 of 2
personal contacts on the server - where?
Posted: Tue Aug 23, 2011 2:30 pm
by RickC
Hi,
I'm looking for the folder/directory that consists of the personal contacts.
# ll
total 16232
-rw-rw---- 1 scalix scalix 14554825 Aug 23 14:23 0000001
-rw-rw---- 1 scalix scalix 28721 Aug 23 14:05 0000002
-rw-rw---- 1 scalix scalix 1684524 Aug 23 14:05 0000003
-rw-rw---- 1 scalix scalix 73984 Aug 23 14:23 0000004
-rw-rw---- 1 scalix scalix 3072 Aug 19 2009 0000005
-rw-rw---- 1 scalix scalix 196 Aug 23 14:14 000002g
-rw-rw---- 1 scalix scalix 0 Aug 19 2009 000002g.lck
-rw-rw---- 1 scalix scalix 4736 Aug 23 14:17 000002m
-rw-rw---- 1 scalix scalix 54 May 25 10:27 000002n
-rw-rw---- 1 scalix scalix 0 May 25 10:27 000002n.lck
-rw-rw---- 1 scalix scalix 1386 Aug 23 14:24 000002o
-rw-rw---- 1 scalix scalix 145179 Aug 23 14:23 000002q
-rw-rw---- 1 scalix scalix 1235 Mar 16 14:36 000003d
-rw-rw---- 1 scalix scalix 1367 Aug 19 2009 000003d.bak
-rw-rw---- 1 scalix scalix 6 Dec 1 2009 000003g.a0c
-rw-rw---- 1 scalix scalix 53 Aug 31 2009 000003v.1
-rw-rw---- 1 scalix scalix 0 Aug 19 2009 000003v.1.lck
-rw-rw---- 1 scalix scalix 0 Aug 19 2009 00000fk
-rw-rw---- 1 scalix scalix 28773 Aug 23 14:23 00000v8
drwxrwxr-x 2 scalix scalix 4096 Aug 23 14:23 00000v8.ofs
-rw-rw---- 1 scalix scalix 92 May 17 2010 000020h
drwxrwx--- 2 60535 scalix 4096 Aug 2 10:07 imap-cache
this is my mailbox on the server, but I cannot figure out which has the contacts in it. Anyone have an idea?
Thanks.
Rick - using 11.4.4
Re: personal contacts on the server - where?
Posted: Wed Aug 31, 2011 9:47 am
by William
you could do a grep on those folders for a known portion of one of your contacts?
or export the contacts: (bash)
Code: Select all
for i in $(/opt/scalix/bin/omshowu -m all -i | sed '/@/d; /x/d');
do
wget -q http://yourserver.com/api/"$i"@yourserver/mailbox/Contacts/?output=vcard --http-user=mboxadmin:adminusername:"$i" --http-password=adminpassword -O - >> contacts_vcard.txt
done
Re: personal contacts on the server - where?
Posted: Thu Sep 01, 2011 2:21 pm
by RickC
Thanks, experimenting with that now....
Re: personal contacts on the server - where?
Posted: Fri Sep 02, 2011 4:52 am
by Valerion
I believe the API (as above) and LDAP are the only ways to get it, other than a client connection.
Using omcontain on my mailbox, my Contacts folder points to ~/data/00000o0/00irq25, or outside the user's own folders. Generally only the top-level folders are kept here anyway.
Re: personal contacts on the server - where?
Posted: Fri Sep 02, 2011 9:48 am
by RickC
shouldn't this work?
# wget -v http://server.domain.com/api/richard.chamberlain@domain.com --password=temp/mailbox/Contacts/?output=vcard >>rdc_vcard.txt
--09:41:27-- http://server.domain.com/api/richard.chamberlain@domain.com
=> `richard.chamberlain@domain.com'
Resolving server.domain.com... ##.##.##.## (IP)
Connecting to server.domain.com|##.##.##.##|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
09:41:27 ERROR 404: Not Found.
Re: personal contacts on the server - where?
Posted: Fri Sep 02, 2011 10:43 am
by William
incredibly, the URL should look like this:
http://server.domain.com/api/richard.chamberlain@domain.com/temp/mailbox/Contacts/?output=vcard
Re: personal contacts on the server - where?
Posted: Fri Sep 02, 2011 1:09 pm
by RickC
same error - "ERROR 404: Not Found". is it because of a bug in version 11.4.4?
Re: personal contacts on the server - where?
Posted: Mon Sep 05, 2011 4:50 am
by William
I think it unlikely (not using 11.4.4 here).
Re: personal contacts on the server - where?
Posted: Mon Sep 05, 2011 4:27 pm
by mikethebike
I thought they were held in one of the MAPI folders, and would be stored as basic items in the message store.
Have a look in omcontain, and see if you can see the contacts in the "contacts" folder.
Mick
Re: personal contacts on the server - where?
Posted: Wed Sep 07, 2011 10:35 am
by RickC
Hi Mick,
Yes I see the contacts in omcontain, but it doesn't help me know where in the http string they should be?
http://server.domain.com/api/richard.chamberlain@domain.com/temp/mailbox/Contacts/?output=vcard
Re: personal contacts on the server - where?
Posted: Wed Sep 07, 2011 11:39 am
by RickC
I'm no longer getting the '404' error, just ' No such file or directory' Which makes me wonder if our contacts are stored in a different location?
Re: personal contacts on the server - where?
Posted: Fri Sep 09, 2011 5:41 am
by William
If your domain was url.com and you mail server at mail.url.com then this url when visited in a browser:
http://mail.url.com/api/sdf@url.com/mailbox/Contacts/?output=vcard
would give a login prompt and once validated will produce a file to download of all the contacts for user sdf.
Apologies if I was not clearer initially - as I can see that i merely put yourserver and not yourserver.com at one point in the example, which got further compounded later on.
Re: personal contacts on the server - where?
Posted: Fri Sep 09, 2011 6:52 am
by RickC
Thanks,
We got the command correct. The specific error we are getting now is "java.lang.RuntimeException: Attempting to render unsupported objects of type class com.scalix.api.entity.Message"
I'm guessing 11.4.4 has a bug that disallows the vcard output. Does anyone know which versions for sure work with this?
Re: personal contacts on the server - where?
Posted: Fri Sep 09, 2011 8:03 am
by William
the postulated assertion from you of '11.4.4 bug' is not taken by me, to have any credibility.
But in any case, I checked that possibility out, and there does not seem to be anything in Scalix Bugzilla (for any of the versions) regarding vcard export bugs (using a few obvious search terms).
https://bugzilla.scalix.com
Re: personal contacts on the server - where?
Posted: Fri Sep 09, 2011 10:06 am
by RickC
I also checked bugzilla earlier this week and did not see anything specific.
I'm at a loss as to why I cannot get this to work.