The nsIMimeConverter
service allows you to convert headers into and out of MIME format.
Inherits from: nsISupports
Implemented by: @mozilla.org/messenger/mimeconverter;1.
string encodeMIMEPartIIStr(in string header, in boolean structured, in string mailCharset, in long fieldnamelen, in long encodedwordsize); |
string encodeMIMEPartIIStr_UTF8(in AUTF8String header, in boolean structured, in string mailCharset, in long fieldnamelen, in long encodedwordsize); |
string decodeMimeHeaderToCharPtr(in string header, in string default_charset, in boolean override_charset, in boolean eatContinuations); |
AString decodeMimeHeader( in string header, in string default_charset, in boolean override_charset, in boolean eatContinuations); |
MimeEncoderData *B64EncoderInit(in MimeConverterOutputCallback output_fn, in void *closure); |
MimeEncoderData *QPEncoderInit (in MimeConverterOutputCallback output_fn, in void *closure); |
void EncoderDestroy(in MimeEncoderData *data, in boolean abort_p); |
long EncoderWrite(in MimeEncoderData *data, in string buffer, in long size); |
An variant of encodeMimePartIIStr_UTF8()
which treats the header as written in the given charset. This should only be used by native code, as xpconnect translation causes it to not work properly.
string encodeMimePartIIStr(in string header, in boolean structured, in string mailCharset, in long fieldnamelen, in long encodedWordSize);
propertyName
The value of the property.
Encodes a string into a MIME-encoded form according to RFC 2047.
string encodeMimePartIIStr_UTF8(in AUTF8String header, in boolean structured, in string mailCharset, in long fieldnamelen, in long encodedWordSize);
header
structured
mailCharset
fieldnamelen
encodedWordSize
void setStringProperty(in string propertyName, in string propertyValue);
propertyName
propertyValue
string getStringProperty(in string propertyName);
propertyName
The value of the property.
Get an integer property. Usually you would use this to store you own properties.
unsigned long getUint32Property(in string propertyName);
propertyName
indexed
notAPhishMessage
The value of the property.
void setUint32Property(in string propertyName, in unsigned long propertyVal);
propertyName
propertyVal
Marks this header as read. Thunderbird provides a utility function which performs this for the currently selected message: MarkCurrentMessageAsRead().
void markRead(in boolean read);
read
true
, mark as read. If false
mark as undread.void markFlagged(in boolean flagged);
flagged
true
, mark as flagged. If false
remove flag.