personal contacts on the server - where?

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

RickC
Posts: 194
Joined: Tue Nov 16, 2004 12:55 pm
Location: Massachusetts USA
Contact:

personal contacts on the server - where?

Postby RickC » Tue Aug 23, 2011 2:30 pm

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

William
Posts: 314
Joined: Fri Jun 02, 2006 8:28 am
Location: British Isles

Re: personal contacts on the server - where?

Postby William » Wed Aug 31, 2011 9:47 am

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

RickC
Posts: 194
Joined: Tue Nov 16, 2004 12:55 pm
Location: Massachusetts USA
Contact:

Re: personal contacts on the server - where?

Postby RickC » Thu Sep 01, 2011 2:21 pm

Thanks, experimenting with that now....

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Re: personal contacts on the server - where?

Postby Valerion » Fri Sep 02, 2011 4:52 am

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.

RickC
Posts: 194
Joined: Tue Nov 16, 2004 12:55 pm
Location: Massachusetts USA
Contact:

Re: personal contacts on the server - where?

Postby RickC » Fri Sep 02, 2011 9:48 am

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.

William
Posts: 314
Joined: Fri Jun 02, 2006 8:28 am
Location: British Isles

Re: personal contacts on the server - where?

Postby William » Fri Sep 02, 2011 10:43 am

incredibly, the URL should look like this:
http://server.domain.com/api/richard.chamberlain@domain.com/temp/mailbox/Contacts/?output=vcard

RickC
Posts: 194
Joined: Tue Nov 16, 2004 12:55 pm
Location: Massachusetts USA
Contact:

Re: personal contacts on the server - where?

Postby RickC » Fri Sep 02, 2011 1:09 pm

same error - "ERROR 404: Not Found". is it because of a bug in version 11.4.4?

William
Posts: 314
Joined: Fri Jun 02, 2006 8:28 am
Location: British Isles

Re: personal contacts on the server - where?

Postby William » Mon Sep 05, 2011 4:50 am

I think it unlikely (not using 11.4.4 here).

mikethebike
Posts: 566
Joined: Mon Nov 28, 2005 4:16 pm
Location: England

Re: personal contacts on the server - where?

Postby mikethebike » Mon Sep 05, 2011 4:27 pm

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

RickC
Posts: 194
Joined: Tue Nov 16, 2004 12:55 pm
Location: Massachusetts USA
Contact:

Re: personal contacts on the server - where?

Postby RickC » Wed Sep 07, 2011 10:35 am

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

RickC
Posts: 194
Joined: Tue Nov 16, 2004 12:55 pm
Location: Massachusetts USA
Contact:

Re: personal contacts on the server - where?

Postby RickC » Wed Sep 07, 2011 11:39 am

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?

William
Posts: 314
Joined: Fri Jun 02, 2006 8:28 am
Location: British Isles

Re: personal contacts on the server - where?

Postby William » Fri Sep 09, 2011 5:41 am

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.

RickC
Posts: 194
Joined: Tue Nov 16, 2004 12:55 pm
Location: Massachusetts USA
Contact:

Re: personal contacts on the server - where?

Postby RickC » Fri Sep 09, 2011 6:52 am

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?

William
Posts: 314
Joined: Fri Jun 02, 2006 8:28 am
Location: British Isles

Re: personal contacts on the server - where?

Postby William » Fri Sep 09, 2011 8:03 am

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

RickC
Posts: 194
Joined: Tue Nov 16, 2004 12:55 pm
Location: Massachusetts USA
Contact:

Re: personal contacts on the server - where?

Postby RickC » Fri Sep 09, 2011 10:06 am

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.


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 15 guests