Commit cf831892 cf831892e4500bba6cb34019f5ba295fcdefc8f5 by Sergey Poznyakoff

(mu_mailbox_get_debug): Propagate the debug state to the underlying folder.

1 parent ace857c5
...@@ -511,6 +511,8 @@ mu_mailbox_get_debug (mu_mailbox_t mbox, mu_debug_t *pdebug) ...@@ -511,6 +511,8 @@ mu_mailbox_get_debug (mu_mailbox_t mbox, mu_debug_t *pdebug)
511 int status = mu_debug_create (&(mbox->debug), mbox); 511 int status = mu_debug_create (&(mbox->debug), mbox);
512 if (status != 0) 512 if (status != 0)
513 return status; 513 return status;
514 if(!mu_folder_has_debug (mbox->folder))
515 mu_folder_set_debug (mbox->folder, mbox->debug);
514 } 516 }
515 *pdebug = mbox->debug; 517 *pdebug = mbox->debug;
516 return 0; 518 return 0;
......