diff options
Diffstat (limited to 'imap')
-rw-r--r-- | imap/src/c-client/imap4r1.c | 8 | ||||
-rw-r--r-- | imap/src/c-client/mail.h | 21 |
2 files changed, 27 insertions, 2 deletions
diff --git a/imap/src/c-client/imap4r1.c b/imap/src/c-client/imap4r1.c index de16950d..139137d9 100644 --- a/imap/src/c-client/imap4r1.c +++ b/imap/src/c-client/imap4r1.c @@ -4126,7 +4126,13 @@ void imap_parse_unsolicited (MAILSTREAM *stream,IMAPPARSEDREPLY *reply) else if (!compare_cstring (t,"\\Marked")) i |= LATT_MARKED; else if (!compare_cstring (t,"\\Unmarked")) i |= LATT_UNMARKED; else if (!compare_cstring (t,"\\HasChildren")) i |= LATT_HASCHILDREN; - else if (!compare_cstring (t,"\\HasNoChildren")) i |= LATT_HASNOCHILDREN; + else if (!compare_cstring (t,"\\All")) i |= LATT_ALL; + else if (!compare_cstring (t,"\\Archive")) i |= LATT_ARCHIVE; + else if (!compare_cstring (t,"\\Drafts")) i |= LATT_DRAFTS; + else if (!compare_cstring (t,"\\Flagged")) i |= LATT_FLAGGED; + else if (!compare_cstring (t,"\\Junk")) i |= LATT_JUNK; + else if (!compare_cstring (t,"\\Sent")) i |= LATT_SENT; + else if (!compare_cstring (t,"\\Trash")) i |= LATT_TRASH; /* ignore extension flags */ } while ((t = strtok_r (NIL," ",&r)) != NULL); diff --git a/imap/src/c-client/mail.h b/imap/src/c-client/mail.h index 309cf994..f8d44033 100644 --- a/imap/src/c-client/mail.h +++ b/imap/src/c-client/mail.h @@ -1,3 +1,9 @@ +/* + * Copyright 2016 Eduardo Chappa + * + * Last Edited: February 6, 2015 Eduardo Chappa <chappa@gmx.com> + * + */ /* ======================================================================== * Copyright 2008-2011 Mark Crispin * ======================================================================== @@ -585,7 +591,20 @@ #define LATT_HASCHILDREN (long) 0x20 /* has no selectable inferiors */ #define LATT_HASNOCHILDREN (long) 0x40 - + /* folder contains all messages */ +#define LATT_ALL (long) 0x80 + /* folder contains archived messages */ +#define LATT_ARCHIVE (long) 0x100 + /* folder contains drafts */ +#define LATT_DRAFTS (long) 0x200 + /* folder contains Flagged messages */ +#define LATT_FLAGGED (long) 0x400 + /* folder contains junk messages */ +#define LATT_JUNK (long) 0x800 + /* folder contains Sent mail */ +#define LATT_SENT (long) 0x1000 + /* folder contains deleted messages */ +#define LATT_TRASH (long) 0x2000 /* Sort functions */ |