diff options
author | Eduardo Chappa <chappa@washington.edu> | 2020-01-15 12:42:06 -0700 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2020-01-15 12:42:06 -0700 |
commit | 9822842646bc2b940d4b98a260ee4e3ac26fce57 (patch) | |
tree | 9d468eb7a6d6b3a41c6c8cd7d542009cb498bc5b /pith/conf.c | |
parent | 36fcd566e99d76543c28ce985fc71e8a7cfb6c83 (diff) | |
download | alpine-9822842646bc2b940d4b98a260ee4e3ac26fce57.tar.xz |
* Add configuration screen for XOAUTH, so users can configure their own
client-id and client-secret information.
Diffstat (limited to 'pith/conf.c')
-rw-r--r-- | pith/conf.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pith/conf.c b/pith/conf.c index c802d011..3ce1c8a2 100644 --- a/pith/conf.c +++ b/pith/conf.c @@ -271,6 +271,8 @@ CONF_TXT_T cf_text_personal_print_cat[] = "Which category default print command CONF_TXT_T cf_text_standard_printer[] = "The system wide standard printers"; +CONF_TXT_T cf_text_xoauth2_info[] = "Your client-id and client-secret information to authenticate using XOAUTH2"; + CONF_TXT_T cf_text_last_time_prune_quest[] = "Set by Alpine; controls beginning-of-month sent-mail pruning."; CONF_TXT_T cf_text_last_version_used[] = "Set by Alpine; controls display of \"new version\" message."; @@ -758,6 +760,8 @@ static struct variable variables[] = { NULL, cf_text_personal_print_command}, {"personal-print-category", 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, NULL, cf_text_personal_print_cat}, +{"xoauth2-info", 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, + "XOAUTH2 Info", cf_text_xoauth2_info}, {"patterns", 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, NULL, cf_text_old_patterns}, {"patterns-roles", 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, @@ -2538,6 +2542,8 @@ init_vars(struct pine *ps, void (*cmds_f) (struct pine *, char **)) set_variable(V_SAVE_BY_SENDER, "yes", 1, 1, Main); obs_save_by_sender = !strucmp(VAR_SAVE_BY_SENDER, "yes"); + set_current_val(&vars[V_XOAUTH2_INFO], TRUE, TRUE); + set_current_pattern_vals(ps); set_current_val(&vars[V_INDEX_FORMAT], TRUE, TRUE); |