Does not revert space-stuffing when saving format=flowed messages

Reporting from https://bugs.debian.org/802613

This was tested with 1.14.4-2 and it is still happening (not sure if it's the expected behavior, if so I believe it's not documented).


the format=flowed Content-Type extension allows "space stuffing", i.e. inserting an additional space at the beginning of a line (RFC 3676, 4.4). The mutt MUA displays such messages correctly, however preserves the additional spaces when saving the message body. This is surprising since, for example, messages in the quoted-printable transfer encoding are properly decoded in the same process.

How to repeat:

Open the attached mbox files using "mutt -R -f ", hit "" to view the message body. It's presented as

|1 | 2 | 3

Now hit "v" (view-attachments), then "s" (save-entry) to save to a file. Inspect the created file.

For the file from msg-qp (quoted-printable) it's again

|1 | 2 | 3

For the file from msg-ff (format=flowed) however it's

|1 | 2 | 3

as in the raw content.

Given my experience with the view-attachments option, the handling of format=flowed is inconsistent and therefore the buggy one.

msg-qp.txt msg-ff.txt