diff options
author | Eduardo Chappa <chappa@washington.edu> | 2018-12-16 13:42:37 -0700 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2018-12-16 13:42:37 -0700 |
commit | ea4d5cd8e41c3241d8bebe4f7bbb2b7603e05283 (patch) | |
tree | 79b212bcf956fd6c54e1f4f0cbee9cdbe1d1d2f5 /alpine/send.c | |
parent | c7e14ba2c2ac2a858539dcb4f077d8fb03988c06 (diff) | |
download | alpine-ea4d5cd8e41c3241d8bebe4f7bbb2b7603e05283.tar.xz |
* Bug: When a message is multipart, and the first part is flowed text,
then forwarding the message will set the first part to be flowed, and
sent that way even when the option Do Not Send Flowed Text is
enabled.
To avoid this issue, we remove any flowed text parameters from the
body of the message, so we create a "remove_parameter" function, and
then we set the flowed parameter only when the user requested.
Reported by Holger Trapp.
Diffstat (limited to 'alpine/send.c')
-rw-r--r-- | alpine/send.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/alpine/send.c b/alpine/send.c index 4768a7e5..6eb33136 100644 --- a/alpine/send.c +++ b/alpine/send.c @@ -6196,6 +6196,10 @@ void create_message_body_text(struct mail_bodystruct *b, int flow_it) { set_mime_type_by_grope(b); + if(b != NULL){ + remove_parameter(&b->parameter, "format"); /* we will set it up below */ + remove_parameter(&b->parameter, "delsp"); /* we never set this up */ + } if(F_OFF(F_QUELL_FLOWED_TEXT, ps_global) && F_OFF(F_STRIP_WS_BEFORE_SEND, ps_global) && flow_it) |