Python plugin: Make it possible to get folder tree from a Mailbox
[claws.git] / src / plugins / python / mailboxtype.c
index ffb42f0a92f563039f5669ff4e8eb40e508cb886..3cc6c2648ad79faa261d364acb77f128904ddee4 100644 (file)
@@ -133,3 +133,13 @@ PyObject* clawsmail_mailbox_new(Folder *folder)
   ff->folder = folder;
   return (PyObject*)ff;
 }
+
+Folder* clawsmail_mailbox_get_folder(PyObject *self)
+{
+  return ((clawsmail_MailboxObject*)self)->folder;
+}
+
+PyTypeObject* clawsmail_mailbox_get_type_object()
+{
+  return &clawsmail_MailboxType;
+}