Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-17-2009, 11:49 PM
Senior Member
 
Posts: 65
Default [SOLVED] How to get some detail from contact

I want to get phone number from contact
when I know email account how I get it.
I want to use command line like this

#zmmailbox -a [admin@domain.com] -p [password] -m [user@yourdomain.com] s -t contact "in:Contact AND from:name"

I don't know way I used in and from command than not found anything.
But If I just used from:name ,it 's work.
Anyway the out put not show phone number.

Please tell me I can get this by command line,If I can't how I do for get phone number.
Thank you for reply.
Reply With Quote
  #2 (permalink)  
Old 03-18-2009, 02:35 AM
Senior Member
 
Posts: 65
Default

I got the solution.

If I want to find number of user@domain.yourdomain.com
- Use this command for get contact ID.

#zmmailbox -a admin@domain.yourdomain.com.com -p password -m user@domain.yourdomain.com s -t contact 'in:"Contacts"' | grep sws@domain

Note: you need use '" "' if you have space in search.

you got out put like this

3. 2fa6c7f0-2047-4e9d-807f-c35f0322c67e:423 cont sws@domain.yourdomain คุณศิวัฒน์ ศิวะบวร 01/01/70 07:00


This is contact ID --> 2fa6c7f0-2047-4e9d-807f-c35f0322c67e:423
you need to cut only contact ID and send this to next command

- use this command for get phone number

#zmmailbox -a admin@domain.yourdomain.com.com -p password -m user@domain.yourdomain.com getContacts 2fa6c7f0-2047-4e9d-807f-c35f0322c67e:423

out put is all detail in this contact.
you need grep command for get only line you want

Example :
#zmmailbox -a admin@domain.yourdomain.com.com -p password -m user@domain.yourdomain.com getContacts 2fa6c7f0-2047-4e9d-807f-c35f0322c67e:423 | grep assistantPhone

out put is :
assistantPhone: 08-1803-2410
Reply With Quote
  #3 (permalink)  
Old 03-18-2009, 02:37 AM
Moderator
 
Posts: 7,928
Default

Excellent Thank you for posting your solution.
__________________
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.