Closed
Bug 172210
Opened 23 years ago
Closed 22 years ago
Implement a scan mode in mime to make filters job easy
Categories
(MailNews Core :: MIME, defect)
MailNews Core
MIME
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).
| Assignee | ||
Updated•23 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 1•23 years ago
|
||
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 2•23 years ago
|
||
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
| Assignee | ||
Comment 3•23 years ago
|
||
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 4•23 years ago
|
||
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+
| Assignee | ||
Comment 5•23 years ago
|
||
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 6•23 years ago
|
||
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+
| Assignee | ||
Comment 7•23 years ago
|
||
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!
Comment 8•23 years ago
|
||
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
| Assignee | ||
Comment 9•23 years ago
|
||
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.
| Assignee | ||
Comment 10•23 years ago
|
||
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
| Assignee | ||
Comment 11•22 years ago
|
||
Looks like we are done with that bug, close it
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Updated•21 years ago
|
Product: MailNews → Core
Updated•17 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•