Closed Bug 172210 Opened 22 years ago Closed 20 years ago

Implement a scan mode in mime to make filters job easy

Categories

(MailNews Core :: MIME, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bugzilla, Assigned: bugzilla)

Details

Attachments

(2 obsolete files)

We need a new mode in mime to output the data without any HTML/XUL formating. We
cannot use the raw mode of mime as we need the data to be decoded and we want
only data that can be displayed to the user (except images).
Status: NEW → ASSIGNED
This patch let run the stream data through the mime converter. Currently mime
does not output a fully clean data but this is much better that having the raw
data.
Comment on attachment 101451 [details] [diff] [review]
Proposed fix, v1 for nsBayesianFIlter.cpp

I went ahead and incorporated the patch.
Attachment #101451 - Attachment is obsolete: true
Attached patch Proposed fix, v2(mime part) (obsolete) — Splinter Review
This patch add a new emitter to allow output headers as plain text. It also add
a new internal mode in mime to allow output plain text without convertion to
HTML. And finaly, multipart/alternative is interpreted as multipart/mixed when
requesting an output for filtering.
Comment on attachment 101568 [details] [diff] [review]
Proposed fix, v2(mime part)

just one minor thing: the define for kIStreamConverterServiceCID does not seem
to be used in the patch so perhaps it can be removed?
Attachment #101568 - Flags: review+
good catch, it was already defined in the middle of the code, that was just a
merge issue. I'll remove it before check it in.
Comment on attachment 101568 [details] [diff] [review]
Proposed fix, v2(mime part)

BTW, you should clean up the .xml file patch, only the new source file changes
are relevant.

sr=beard
Attachment #101568 - Flags: superreview+
the original xml file has been created with an older version of CW. The new CW
does not export all those Windows Build info. the new XML file will be much
cleaner like that!
1)

+nsMimePlainEmitter::nsMimePlainEmitter()
+{
+}

are we missing a NS_INIT_REFCOUNT() or anything?  or do we get that from the
base class?

2)

does this (or should this?) emitter affect when we do a plain text reply to a
html message?

the rest seems ok.  if beard has tried it and it works for him, r/sr=sspitzer

1) correct, the base emitter class will take care of the initialization of the
refcount.

2) This emitter is only used when the parameter header=filter is present in the
URL mime is processing. Nothing to to with regular email processing.
Comment on attachment 101568 [details] [diff] [review]
Proposed fix, v2(mime part)

I checked in that patch. I keep the bug open in case we need to do more
thing...
Attachment #101568 - Attachment is obsolete: true
QA Contact: gayatri → stephend
Looks like we are done with that bug, close it
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: