summaryrefslogtreecommitdiff
path: root/imap/src/c-client/imap4r1.h
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2018-05-21 20:52:20 -0600
committerEduardo Chappa <chappa@washington.edu>2018-05-21 20:52:20 -0600
commit854ecc5e92a29f14983fc3c9c2edeb4980949568 (patch)
treef0c000b178c16689374441fc4da2a0371b9773c1 /imap/src/c-client/imap4r1.h
parent20e0e95b93f7f1eada65ac6b8e7729534537618c (diff)
downloadalpine-854ecc5e92a29f14983fc3c9c2edeb4980949568.tar.xz
* Add the "g" option to the select command that works in IMAP
servers that implement the X-GM-EXT-1 capability (such as the one offered by Gmail.) This allows users to do selection in Alpine as if they were doing a search in the web interface for Gmail.
Diffstat (limited to 'imap/src/c-client/imap4r1.h')
-rw-r--r--imap/src/c-client/imap4r1.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/imap/src/c-client/imap4r1.h b/imap/src/c-client/imap4r1.h
index 8ee8a186..520b6562 100644
--- a/imap/src/c-client/imap4r1.h
+++ b/imap/src/c-client/imap4r1.h
@@ -87,6 +87,7 @@ typedef struct imap_cap {
unsigned int esearch : 1; /* server has ESEARCH (RFC 4731) */
unsigned int within : 1; /* server has WITHIN (RFC 5032) */
unsigned int extlevel; /* extension data level supported by server */
+ unsigned int x_gm_ext1:1; /* special extension for gmail server */
/* supported authenticators */
unsigned int auth : MAXAUTHENTICATORS;
THREADER *threader; /* list of threaders */
@@ -129,6 +130,11 @@ typedef struct imap_cap {
#define LEVELACL(stream) imap_cap (stream)->acl
+/* Has X-GM-EXT-1 extension */
+
+#define XGMEXT1(stream) imap_cap(stream)->x_gm_ext1
+
+
/* Has QUOTA extension */
#define LEVELQUOTA(stream) imap_cap (stream)->quota