any pointers...I have written this to work with squirrelmail and thunderbird a long time ago, and now undertaking doing the same with zimbra. Basically, company wants to archive specific emails to mysql database. Zimlet will request a list of items from db and then id of item will be chosen and posted back with details of email. I am assuming I will be using Ajxrpc...but just looking for pointers from those more experienced before actually doing it, espcially maybe the interface in javascript for the item selection from the zimlet.

Here is the info from the RESTful archive service on db side

Code:
/*
php web service for filing emails to mysql

two modes
	get_props
	file_mail

Arguments are passed via PUT and parsed into $incoming

mode get_props
        user (required:this is the full username like user@domain.com)
	pass (required:the users password, passed via HTTPS PUT request so should be OK)
	mode (required:must be get_props)
	
	returns an xml array 'properties' with elements 'property' with elements 'address' and 'id' like:
	
	<properties>
	<property>
	<idproperty>2194</idproperty>
	<address>0 Benton Rd</address>
	</property>
	<property>
	.....
	</properties>

	
	
mode file_mail
	user (required:this is the full username like user@domain.com)
	pass (required:the users password, passed via HTTPS PUT request so should be OK))
	mode (required:must be file_mail)
	mailbox(required:this is the mailbox folder in the imap namespace, usually INBOX, but can be anything as long as it is valid)
	passed_id(required:this is the imap message uid for the mailbox, must be usable by imap_msgno()
	idproperty(required:this is the id number of the property to save with the email, selected from the list from the get_props mode)
   this mode returns OK on success or ERROR if not


TODO 
add more descriptive return codes in xml format for mode file_mail   

*/
if anyone wants to take on this zimlet sub-$500, I am game...I plan to have users drag message to zimlet and/or click button, present item list to file it to in zimbra interface, click ok and PUT email details to service. That's it