summaryrefslogtreecommitdiff
path: root/pith/conf.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2020-06-07 21:14:19 -0600
committerEduardo Chappa <chappa@washington.edu>2020-06-07 21:14:19 -0600
commitd1300c95499f3b422c2299432eb4acc93cf4618a (patch)
treef516d0630fbb085ac689c2010e07cbbe6c281ca5 /pith/conf.c
parent6c702a26f10f04bf225aa914b2eae5b89e3d0b4a (diff)
downloadalpine-d1300c95499f3b422c2299432eb4acc93cf4618a.tar.xz
* Experimental: Alpine can pass an HTML message to an external web browser, by using
the "External" command in the ATTACHMENT INDEX screen. * Experimental: New configuration variable "External Command Loads Inline Images Only" that controls if Alpine will pass to an external browser a link to all the images in the HTML message, or will only pass a link to inline images included in the message. For your privacy and security this feature is enabled by default.
Diffstat (limited to 'pith/conf.c')
-rw-r--r--pith/conf.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/pith/conf.c b/pith/conf.c
index a3f50b39..1835c404 100644
--- a/pith/conf.c
+++ b/pith/conf.c
@@ -105,6 +105,8 @@ CONF_TXT_T cf_text_smtp_server[] = "List of SMTP servers for sending mail. If b
CONF_TXT_T cf_text_nntp_server[] = "NNTP server for posting news. Also sets news-collections for news reading.";
+CONF_TXT_T cf_html_directory[] = "Directory used by Alpine to save copies of html messages before they are\n#opened by an external web browser. The default directory is .alpine-html\n# in unix systems and alpine-html in a windows system.";
+
#ifdef SMIME
CONF_TXT_T cf_text_publiccertdir[] = "Public certificates are kept in files in this directory. The files should\n# contain certificates in PEM format. The name of each file should look\n# like <emailaddress>.crt. The default directory is .alpine-smime/public.";
@@ -907,6 +909,8 @@ static struct variable variables[] = {
NULL, cf_text_window_position},
{"cursor-style", 0, 1, 0, 1, 1, 0, 0, 0, 0, 1, 0, NULL},
#endif /* _WINDOWS */
+{"html-messages-directory", 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0,
+ NULL, cf_html_directory},
#ifdef SMIME
{"smime-public-cert-directory", 0, 1, 0, 1, 1, 0, 0, 0, 0, 1, 0,
"S/MIME - Public Cert Directory", cf_text_publiccertdir},
@@ -1743,6 +1747,7 @@ init_vars(struct pine *ps, void (*cmds_f) (struct pine *, char **))
#ifdef DF_VAR_SPELLER
GLO_SPELLER = cpystr(DF_VAR_SPELLER);
#endif
+ GLO_HTML_DIRECTORY = cpystr(DF_HTML_DIRECTORY);
#ifdef SMIME
if(ps->smimedir){
snprintf(tmp_20k_buf, SIZEOF_20KBUF, "%s/public", ps->smimedir);
@@ -2094,6 +2099,7 @@ init_vars(struct pine *ps, void (*cmds_f) (struct pine *, char **))
fs_give((void **)&ps_global->vars[V_OPER_DIR].main_user_val.p);
}
+ set_current_val(&vars[V_HTML_DIRECTORY], TRUE, TRUE);
set_current_val(&vars[V_PERSONAL_PRINT_CATEGORY], TRUE, TRUE);
ps->printer_category = -1;
if(VAR_PERSONAL_PRINT_CATEGORY != NULL)
@@ -3026,6 +3032,8 @@ feature_list(int index)
F_VIEW_SEL_URL_HOST, h_config_enable_view_web_host, PREF_VIEW, 1},
{"enable-msg-view-forced-arrows", "Enable Message View Forced Arrows",
F_FORCE_ARROWS, h_config_enable_view_arrows, PREF_VIEW, 0},
+ {"external-command-loads-inline-images-only", NULL,
+ F_EXTERNAL_INLINE_IMAGES, h_external_loads_inline_images_only, PREF_VIEW, 1},
/* set to TRUE for windows */
{"pass-c1-control-characters-as-is", NULL,
F_PASS_C1_CONTROL_CHARS, h_config_pass_c1_control, PREF_VIEW, 0},