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
@@ -330,4 +330,7 @@ dotmail_rescan_unlocked (mu_mailbox_t mailbox, mu_off_t offset)
int force_init_uids = 0;
+ if (!(mailbox->flags & MU_STREAM_READ))
+ return 0;
+
rc = mu_streamref_create (&stream, mailbox->stream);
if (rc)
@@ -591,4 +594,7 @@ dotmail_rescan (mu_mailbox_t mailbox, mu_off_t offset)
return EINVAL;
+ if (!(mailbox->flags & MU_STREAM_READ))
+ return 0;
+
mu_monitor_wrlock (mailbox->monitor);
#ifdef WITH_PTHREAD

Return to:

Send suggestions and report system problems to the System administrator.