summaryrefslogtreecommitdiff
path: root/pith
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 /pith
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 'pith')
-rw-r--r--pith/mailcmd.c6
-rw-r--r--pith/pine.hlp7
2 files changed, 13 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;
diff --git a/pith/pine.hlp b/pith/pine.hlp
index a1d8ea1f..104ffa73 100644
--- a/pith/pine.hlp
+++ b/pith/pine.hlp
@@ -196,6 +196,10 @@ these contributed by Helmut Grohne. See
password file encryption key. This allows users to use their password file
without entering a master password.
+<LI> Add the &quot;g&quot; 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.
</UL>
<P>
@@ -36847,6 +36851,9 @@ attachment, or ^C to cancel.
========== h_select_by_num ==========
Enter a list of message numbers (or number ranges), or ^C to cancel. "end"
is the last message. "." is the current message. Example: 1-.,7-9,11,19,35-end
+========== h_select_by_gm_content ==========
+Enter your search key in the same way that you would enter a search
+key in the web interface for Gmail.
========== h_select_by_thrdnum ==========
Enter a list of message numbers (or number ranges), or ^C to cancel. "end"
is the last message. "." is the current message. Example: 1-.,7-9,11,19,35-end