Hi guys! I have a question. I want to code manually some functionality that seems to be not presented in Zimbra. I have 2 users connected to 1 account. They see some message together. One of them must change the subject of this message and add string "<name of user 2>" at the begining of it to force User2 to process this message (read, understand, perform some actions and so on). Now I think, how can I do it. Suppose that I code some zimlet that lets the User1 to set up new subject for this message (integrated zimlet with menu items, dialogs, bla-bla - actually I don't know how to code it, but I will learn ). Now zimlet can send command from client to server side like "Change subject from <old subject> to <new subject> for message with ID = <message Id>" - through Ajax interface calling JSP page or somehow else... Okay. I'll do it. My server side module (for instance, JSP page) receives now this message. It knows message Id and new subject to set for this message. And there is my problem. I can't understand, how can I do it. I suppose that physically messages are stored as files in filesystem in some folder as text in MIME format, like Mozilla Thunderbird does for instance. If they are, I could find a file for particular MessageId, read it to memory using custom Java class, replace "Subject" field with new one from request and flush it down to the disk. Then 2 users synchronize their mailboxes with server and see that subject for this message have changed with value that have been set by User1. Is it good way to get functionality what I want? Or maybe there is more flexible way to do it? Maybe some standard API commands that JSP page can use? Some unterface to interacting with message store to change headers? Please, set me on the right way! Thank you very much!
P.S. If you provide some code examples related to my ideas, it would be great!