[dovecot-cvs] dovecot/src/lib-index/mbox mbox-index.c,1.81,1.82
mbox-rewrite.c,1.62,1.63
cras at procontrol.fi
cras at procontrol.fi
Mon Sep 29 18:15:08 EEST 2003
Update of /home/cvs/dovecot/src/lib-index/mbox
In directory danu:/tmp/cvs-serv1327/lib-index/mbox
Modified Files:
mbox-index.c mbox-rewrite.c
Log Message:
\Draft and \Deleted flags used opposite flag chars in X-Status header. We
were incompatible with other mbox accessing software.
Index: mbox-index.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mbox/mbox-index.c,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -d -r1.81 -r1.82
--- mbox-index.c 21 Sep 2003 16:21:37 -0000 1.81
+++ mbox-index.c 29 Sep 2003 14:15:06 -0000 1.82
@@ -154,13 +154,13 @@
case 'F':
flags |= MAIL_FLAGGED;
break;
- case 'D':
+ case 'T':
flags |= MAIL_DRAFT;
break;
case 'R':
flags |= MAIL_SEEN;
break;
- case 'T':
+ case 'D':
flags |= MAIL_DELETED;
break;
}
Index: mbox-rewrite.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mbox/mbox-rewrite.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- mbox-rewrite.c 21 Sep 2003 16:21:37 -0000 1.62
+++ mbox-rewrite.c 29 Sep 2003 14:15:06 -0000 1.63
@@ -218,9 +218,9 @@
str = t_strconcat("X-Status: ",
(ctx->msg_flags & MAIL_ANSWERED) ? "A" : "",
- (ctx->msg_flags & MAIL_DRAFT) ? "D" : "",
+ (ctx->msg_flags & MAIL_DELETED) ? "D" : "",
(ctx->msg_flags & MAIL_FLAGGED) ? "F" : "",
- (ctx->msg_flags & MAIL_DELETED) ? "T" : "",
+ (ctx->msg_flags & MAIL_DRAFT) ? "T" : "",
x_status, NULL);
if (o_stream_send_str(ctx->output, str) < 0)
More information about the dovecot-cvs
mailing list