summaryrefslogtreecommitdiff
path: root/imap/src
diff options
context:
space:
mode:
Diffstat (limited to 'imap/src')
-rw-r--r--imap/src/osdep/unix/unix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/imap/src/osdep/unix/unix.c b/imap/src/osdep/unix/unix.c
index 8fec0ee6..955090d9 100644
--- a/imap/src/osdep/unix/unix.c
+++ b/imap/src/osdep/unix/unix.c
@@ -917,8 +917,8 @@ long unix_copy (MAILSTREAM *stream,char *sequence,char *mailbox,long options)
return NIL;
}
- /* try to open rewrite for UIDPLUS */
- if ((tstream = mail_open_work (&unixdriver,NIL,mailbox,
+ /* try to open readwrite for UIDPLUS */
+ if (cu && (tstream = mail_open_work (&unixdriver,NIL,mailbox,
OP_SILENT|OP_NOKOD)) && tstream->rdonly)
tstream = mail_close (tstream);
if (cu && !tstream) { /* wanted a COPYUID? */
@@ -1113,7 +1113,7 @@ long unix_append (MAILSTREAM *stream,char *mailbox,append_t af,void *data)
MM_CRITICAL (stream); /* go critical */
/* try to open readwrite for UIDPLUS */
- if ((tstream = mail_open_work (&unixdriver,NIL,mailbox,
+ if (au && (tstream = mail_open_work (&unixdriver,NIL,mailbox,
OP_SILENT|OP_NOKOD)) && tstream->rdonly)
tstream = mail_close (tstream);
if (au && !tstream) { /* wanted an APPENDUID? */