Closed Bug 35118 Opened 25 years ago Closed 25 years ago

Sig delimiter malformed for format=flowed

Categories

(Core :: DOM: Serializers, defect, P3)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: BenB, Assigned: bratell)

References

(Blocks 1 open bug)

Details

(Whiteboard: Fix attached (waiting for review and checkin))

Attachments

(3 files)

Reproduce: 1. Send a flowed mail with a signature with Mozilla 2. View it in View source Actual result: The sig delimiter is "--" Expected result: The sig delimiter is "-- " Additional Comments: This is a violation of both RFC2646 4.3 and son-of-1036.
Is the sig separator logically marked in any way? Otherwise it will be some work checking newlines and such.
Assignee: bratell → mozilla
Daniel, it wasn't your bug. In pre's you don't strip trailing spaces (is that correct?); and my sig is plain text and thus in a pre. The bug here was, that "-- " was never inserted in the first place, but "--". Per Daniel's request (which is a good idea in general, I think), I'm wrapping sigs (both plain text and HTML) in a <div class=signature>. I'll attach a patch.
Well, if the sig is HTML, we have the described problem, even if "-- " was inserted (now bug 35158): The delimiter is not in a pre and the flowed code strips the last space.
Assignee: mozilla → bratell
Blocks: gnksa
Depends on: 35158
recreate old state
Status: NEW → ASSIGNED
I've fixed this, at least when the advanced composition windows is used to make a format=flowed mail. I will attach the patch along with a new test. Akkana, could cou review and check it in? It's a quite trivial fix. Just checking if the current line to output is "-- " while stripping ending white space and in that case stop stripping. Only when we're outputting format=flowed though. That was the best solution I could think of right now, but if you think that we should do this for all formatted output, just tell me and it's easy to fix. The test I added is a simple format=flowed mail with a sig delimiter and lines that should be space stuffed. I will attach the simplemail.html and simplemail.out. The normal problems with end-of-line conversions apply. I will try to add them with a application/octet-stream mime type and see what that does.
Setting milestone to M16.
Whiteboard: Fix attached (waiting for review and checkin)
Target Milestone: --- → M16
A side effect is that "-- " and "-- " and "-- " and "-- " and (I think you get my point :-) ) so on, also are output as "-- ".
Looks fine -- I've checked it in, along with Makefile additions to export the new test files. Go ahead and mark this fixed.
Fixed
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
*** Bug 40264 has been marked as a duplicate of this bug. ***
verified in 6/12 build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: