Fetch IMAP flags from server. This makes us sync read/answered/... flags with unix.
This commit is contained in:
parent
e3a43c4f2b
commit
7367b8d2e7
1 changed files with 3 additions and 3 deletions
|
@ -221,7 +221,7 @@ static struct{
|
||||||
char *flag;
|
char *flag;
|
||||||
int e;
|
int e;
|
||||||
} ftab[] = {
|
} ftab[] = {
|
||||||
"Answered", Fanswered,
|
"\\Answered", Fanswered,
|
||||||
"\\Deleted", Fdeleted,
|
"\\Deleted", Fdeleted,
|
||||||
"\\Draft", Fdraft,
|
"\\Draft", Fdraft,
|
||||||
"\\Flagged", Fflagged,
|
"\\Flagged", Fflagged,
|
||||||
|
@ -850,8 +850,8 @@ imap4fetch(Mailbox *mb, Message *m, uvlong o, ulong l)
|
||||||
imap = mb->aux;
|
imap = mb->aux;
|
||||||
if(imap->flags & Fgmail)
|
if(imap->flags & Fgmail)
|
||||||
l = gmaildiscount(m, o, l);
|
l = gmaildiscount(m, o, l);
|
||||||
idprint(imap, "uid fetch %lud (body.peek[]<%llud.%lud>)\n", (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 (body.peek[]<%llud.%lud>)", (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))){
|
if(!isokay(imap4resp0(imap, mb, m))){
|
||||||
eprint("imap: imap fetch failed\n");
|
eprint("imap: imap fetch failed\n");
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in a new issue