Camel.Folder.transfer_messages_to_sync: transferred_uids always empty
Hi there,
We are trying to move some mail messages using Camel.Folder.transfer_messages_to_sync
in elementary 6 (based on Ubuntu 20.04 LTS). Unfortunately, the supposed transferred_uids
are always empty and we get the following error output in the Terminal:
** (io.elementary.mail:7345): CRITICAL **: 15:30:15.166: vala_g_ptr_array_get_length: assertion 'self != NULL' failed
** (io.elementary.mail:7345): WARNING **: 15:30:15.166: MoveHandler.vala:102: 0
The code in question looks like this (the full file is available here):
GenericArray<string> transferred_uids;
if (folder.transfer_messages_to_sync (uids, dest_folder, true, out transferred_uids, null)) {
// TODO: Figure out why uids aren't being returned here
warning (transferred_uids.length.to_string ());
We also tried GenericArray<string> transferred_uids = new GenericArray<string> ();
with the same result. Is this a bug - or do we miss something?