Commit d6fe5988 d6fe5988a6c5235b6f77195ca1bab689fd77899c by Sam Roberts

mailbox created the folder, it should set it's folder's debug object when

it's is set, otherwise there is now way to get debug messages from a
mailboxes folder (I was getting all the pop protocol traces but not
the imap ones)
1 parent e0878e4e
......@@ -454,8 +454,16 @@ mailbox_get_property (mailbox_t mbox, property_t *pproperty)
int
mailbox_set_debug (mailbox_t mbox, mu_debug_t debug)
{
int status = 0;
if (mbox == NULL)
return EINVAL;
if (mbox->folder)
{
status = folder_set_debug (mbox->folder, debug);
if (status)
return status;
}
if (mbox->debug)
mu_debug_destroy (&(mbox->debug), mbox);
mbox->debug = debug;
......