[Kolab-devel] Modiying IMAP Messages

Jan Schneider jan at horde.org
Fri Aug 22 14:06:44 CEST 2003


Zitat von Stuart Bingë <list at codefusion.co.za>:

> 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.

There doesn't exist such a method. You always have to use imap_append() and
imap_delete() to modify messages (notes).

Take a look at imp/lib/Message.php IMP_Message::stripPart() how we e.g.
handle stripping of mime parts from messages on the server.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft




More information about the devel mailing list