diff options
author | Eduardo Chappa <chappa@washington.edu> | 2020-06-07 21:14:19 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2020-06-07 21:14:19 -0600 |
commit | d1300c95499f3b422c2299432eb4acc93cf4618a (patch) | |
tree | f516d0630fbb085ac689c2010e07cbbe6c281ca5 /pith/detach.c | |
parent | 6c702a26f10f04bf225aa914b2eae5b89e3d0b4a (diff) | |
download | alpine-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/detach.c')
-rw-r--r-- | pith/detach.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pith/detach.c b/pith/detach.c index 9774e1c9..4a2318e7 100644 --- a/pith/detach.c +++ b/pith/detach.c @@ -202,7 +202,7 @@ detach(MAILSTREAM *stream, /* c-client stream to use */ } /* convert all text to UTF-8 */ - if(is_text & !(flags & DT_BINARY)){ + if(is_text & !(flags & (DT_BINARY | DT_EXTERNAL))){ charset = parameter_val(body->parameter, "charset"); /* @@ -277,6 +277,11 @@ detach(MAILSTREAM *stream, /* c-client stream to use */ || body->type == TYPEMULTIPART) gf_link_filter(gf_nvtnl_local, NULL); + if(flags & DT_EXTERNAL){ + char i = flags & DT_ALLIMAGES ? 'i' : '\0'; + gf_link_filter(gf_html_cid2file, (void *) &i); + } + /* * If we're detaching a text segment and a user-defined filter may * need to be invoked later (see below), decode the segment into |