[Kolab-devel] Modiying IMAP Messages

Stuart Bingë list at codefusion.co.za
Fri Aug 22 13:36:58 CEST 2003


Hi all,

We're currently busy with the web frontend - we've managed to get address list 
and memo functionality in (and should release them soon for testing). My 
question is - is there some way to modify existing IMAP messages? The reason 
for this is the way I've currently done memos, which is not the most optimal 
way to do things - let me explain...

The SQL driver that comes as the default with Horde Mnemo, that I based the 
kolab IMAP driver code on, requests a seperate list for each of modified, 
added and deleted memos. It then modifies the database, deleting the memos 
that were deleted, modifying those that changed, etc. The way I do it 
currently, however, is to delete all the messages in the Notes folder and 
then iterate through the memo list, adding those not flagged for deletion. 
What I ideally want to do is to modify the existing messages in the Notes 
folder that correspond to modified memos, add any new memos to the folder, 
and delete the removed memos - i.e. the way the SQL driver does it, as this 
should be far more efficient and more stable than my current method.

So, anyone have any ideas? Ideally I would want something like an 
imap_modify() function to go along with the imap_append() and imap_delete() 
ones that currently exist.

Regards,

-- 
Stuart Bingë
Code Fusion cc.
Tel: +27 11 391 1412
Email: s.binge at codefusion.co.za




More information about the devel mailing list