summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libproto/dotmail/dotmail.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libproto/dotmail/dotmail.c b/libproto/dotmail/dotmail.c
index 48ca756..fa083bb 100644
--- a/libproto/dotmail/dotmail.c
+++ b/libproto/dotmail/dotmail.c
@@ -331,2 +331,5 @@ dotmail_rescan_unlocked (mu_mailbox_t mailbox, mu_off_t offset)
+ if (!(mailbox->flags & MU_STREAM_READ))
+ return 0;
+
rc = mu_streamref_create (&stream, mailbox->stream);
@@ -592,2 +595,5 @@ dotmail_rescan (mu_mailbox_t mailbox, mu_off_t offset)
+ if (!(mailbox->flags & MU_STREAM_READ))
+ return 0;
+
mu_monitor_wrlock (mailbox->monitor);

Return to:

Send suggestions and report system problems to the System administrator.