如何通过 DBus 将联系人移动到 pidgin/purple/finch 中的另一个组?

How to move contacts to another group in pidgin/purple/finch via DBus?

DBus (e.g. with python) ? I didn't find anything in the API 1|2

期间,我没有找到将多个联系人好友移动到 pidgin/finch/libpurple 中的另一个组的方法

有点混乱,但您想使用 purple_blist_add_contact()。不幸的是,我无法在 Python 部分为您提供帮助,但在 C 中您会:

// First get the contact of the buddy
PurpleContact *contact = purple_buddy_get_contact(buddy);
// Find the group. Potentially, create the group if it doesn't exist
PurpleGroup *new_group = purple_blist_find_group("New group name");

purple_blist_add_contact(contact, new_group, NULL);

联系人只能属于一个组,因此可以有效地将其从一个组移动到另一个组。希望 C 代码足以知道要进行哪些 Python/dbus 调用。