summaryrefslogtreecommitdiff
path: root/mh/mh_list.c
diff options
context:
space:
mode:
Diffstat (limited to 'mh/mh_list.c')
-rw-r--r--mh/mh_list.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/mh/mh_list.c b/mh/mh_list.c
index eecdc2eb3..962a08b21 100644
--- a/mh/mh_list.c
+++ b/mh/mh_list.c
@@ -408,7 +408,8 @@ static mhl_variable_t vartab[] = {
{ B_NEWLINE, "newline", dt_flag },
{ B_ADDRFIELD, "addrfield", dt_flag },
{ B_DATEFIELD, "datefield", dt_flag },
-
+ { B_DECODE, "decode", dt_flag },
+
/* String variables */
{ S_OVERFLOWTEXT, "overflowtext", dt_string },
{ S_COMPONENT, "component", dt_string },
@@ -620,6 +621,12 @@ print_header_value (struct eval_env *env, char *val)
val = p;
}
+ if (env->bvar[B_DECODE])
+ {
+ if (mh_decode_2047 (val, &p) == 0)
+ val = p;
+ }
+
if (env->bvar[B_UPPERCASE])
{
for (p = val; *p; p++)

Return to:

Send suggestions and report system problems to the System administrator.