(mu_mailbox_get_debug): Propagate the debug state to the underlying folder.
Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -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; | ... | ... |
-
Please register or sign in to post a comment