summaryrefslogtreecommitdiff
path: root/sys/src/cmd/upas/fs
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2019-10-10 11:52:22 -0700
committerOri Bernstein <ori@eigenstate.org>2019-10-10 11:52:22 -0700
commit7367b8d2e75301fb33830404b66ded43bbd56356 (patch)
tree64a1116b8ac52e8b4ce200a40893ed2a83142de4 /sys/src/cmd/upas/fs
parente3a43c4f2b3751da67d24e40a77d8bcac3957520 (diff)
Fetch IMAP flags from server. This makes us sync read/answered/... flags with unix.
Diffstat (limited to 'sys/src/cmd/upas/fs')
-rw-r--r--sys/src/cmd/upas/fs/imap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/cmd/upas/fs/imap.c b/sys/src/cmd/upas/fs/imap.c
index 2008ac77f..a7deb8a02 100644
--- a/sys/src/cmd/upas/fs/imap.c
+++ b/sys/src/cmd/upas/fs/imap.c
@@ -221,7 +221,7 @@ static struct{
char *flag;
int e;
} ftab[] = {
- "Answered", Fanswered,
+ "\\Answered", Fanswered,
"\\Deleted", Fdeleted,
"\\Draft", Fdraft,
"\\Flagged", Fflagged,
@@ -850,8 +850,8 @@ imap4fetch(Mailbox *mb, Message *m, uvlong o, ulong l)
imap = mb->aux;
if(imap->flags & Fgmail)
l = gmaildiscount(m, o, l);
- idprint(imap, "uid fetch %lud (body.peek[]<%llud.%lud>)\n", (ulong)m->imapuid, o, l);
- imap4cmd(imap, "uid fetch %lud (body.peek[]<%llud.%lud>)", (ulong)m->imapuid, o, l);
+ idprint(imap, "uid fetch %lud (flags body.peek[]<%llud.%lud>)\n", (ulong)m->imapuid, o, l);
+ imap4cmd(imap, "uid fetch %lud (flags body.peek[]<%llud.%lud>)", (ulong)m->imapuid, o, l);
if(!isokay(imap4resp0(imap, mb, m))){
eprint("imap: imap fetch failed\n");
return -1;