Displaying 1 result from an estimated 1 matches for "append_ui".
Did you mean:
append_uis
2012 Feb 23
1
Creating and interacting with array inside plugin
...uint32_t ids;
char *uis_file;
};
struct emexis_mailbox {
union mailbox_module_context module_ctx;
ARRAY_DEFINE(expunge_uids, struct emexis_ids_x_uis);
};
ok, inside my expunged rewrite function i create the array like quota
does, and append it to my array.
struct emexis_ids_x_uis append_uis;
append_uis.ids = _mail->uid;
append_uis.uis_file = bodyFile;
array_append(&ebox->expunge_uids, &append_uis, 1);
But when i do a foreach in this Array, my ids is OK, but my uis_file
has tha same value every time (the value is the lasted value
inserted).
Append to UID array (156)...