diff options
author | Eduardo Chappa <chappa@washington.edu> | 2018-05-21 20:52:20 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2018-05-21 20:52:20 -0600 |
commit | 854ecc5e92a29f14983fc3c9c2edeb4980949568 (patch) | |
tree | f0c000b178c16689374441fc4da2a0371b9773c1 /pith/mailcmd.c | |
parent | 20e0e95b93f7f1eada65ac6b8e7729534537618c (diff) | |
download | alpine-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 'pith/mailcmd.c')
-rw-r--r-- | pith/mailcmd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pith/mailcmd.c b/pith/mailcmd.c index 609578fc..c5544f20 100644 --- a/pith/mailcmd.c +++ b/pith/mailcmd.c @@ -2342,6 +2342,12 @@ agg_text_select(MAILSTREAM *stream, MSGNO_S *msgmap, char type, char *namehdr, if(!mepgm) switch(type){ + case 'g' : /* X-GM-EXT-1 */ + pgm->x_gm_ext1 = mail_newstringlist(); + pgm->x_gm_ext1->text.data = (unsigned char *) cpystr(namehdr); + pgm->x_gm_ext1->text.size = strlen(namehdr); + break; + case 'h' : /* Any header */ pgm->header = mail_newsearchheader (namehdr, sstring); break; |