Red Hat Bugzilla – Bug 800891
Patches are mangled when sent: an extra space is added on all lines beginning with a space
Last modified: 2012-03-08 07:43:51 EST
Compose and send the following text email to yourself:
Go to 'sent' folder and open it. It looks normal. Press Ctrl-U "see message source" key. I see the following:
That is, TWO spaces on the second line, not one. And three on the third.
The same can be seen in you save a message to disk.
This breaks patches which are sent via cut-n-paste.
An older bug 618894 seems to be somewhat related to this.
Huh, you're right. But it's displayed correctly...
Hm, if the line begins with space, extra space is added.
Upstream bug - https://bugzilla.mozilla.org/show_bug.cgi?id=141983
(In reply to comment #1)
> Huh, you're right. But it's displayed correctly...
The point is, I sent patches by copy-pasting them into email.
They looked ok (I switched off word wrappping).
But people on the other end got patch failures trying to apply them.
I tried the same: saved my own emails from 'sent' folder as files
and tried to apply them, and to my horror they indeed failed to apply.
I dug deeper into the problem, understood what causes it, and created this bug with detailed explanation what exactly goes wrong.