diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-06-03 21:42:37 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-06-03 21:42:37 +0000 |
commit | 712f85e8e845f2f72705acd519599aa7ad7fdff3 (patch) | |
tree | 23ef516d4ca597403bf1e998a4886d53536359e1 /send.c | |
parent | a3ae1e22bda59413d02957ade9c9b5ea7ec621eb (diff) |
Experimental: Use OPTWEED for _all_ header weeding throughout mutt.
Diffstat (limited to 'send.c')
-rw-r--r-- | send.c | 19 |
1 files changed, 11 insertions, 8 deletions
@@ -338,7 +338,7 @@ static int include_forward (CONTEXT *ctx, HEADER *cur, FILE *out) if (option (OPTFORWDECODE)) { cmflags |= M_CM_DECODE | M_CM_CHARCONV; - if (option (OPTFORWWEEDHEADER)) + if (option (OPTWEED)) { chflags |= CH_WEED | CH_REORDER; cmflags |= M_CM_WEED; @@ -355,9 +355,8 @@ static int include_forward (CONTEXT *ctx, HEADER *cur, FILE *out) static int include_reply (CONTEXT *ctx, HEADER *cur, FILE *out) { char buffer[STRING]; - int flags = M_CM_PREFIX | M_CM_DECODE | M_CM_CHARCONV; - - + int cmflags = M_CM_PREFIX | M_CM_DECODE | M_CM_CHARCONV; + int chflags = CH_DECODE; #ifdef _PGPPATH if (cur->pgp) @@ -370,8 +369,6 @@ static int include_reply (CONTEXT *ctx, HEADER *cur, FILE *out) } #endif /* _PGPPATH */ - - if (Attribution) { mutt_make_string (buffer, sizeof (buffer), Attribution, ctx, cur); @@ -379,9 +376,15 @@ static int include_reply (CONTEXT *ctx, HEADER *cur, FILE *out) fputc ('\n', out); } if (!option (OPTHEADER)) - flags |= M_CM_NOHEADER; + cmflags |= M_CM_NOHEADER; + if (option (OPTWEED)) + { + chflags |= CH_WEED; + cmflags |= M_CM_WEED; + } + mutt_parse_mime_message (ctx, cur); - mutt_copy_message (out, ctx, cur, flags, CH_DECODE); + mutt_copy_message (out, ctx, cur, cmflags, chflags); if (PostIndentString) { mutt_make_string (buffer, sizeof (buffer), PostIndentString, ctx, cur); |