mozilla

Revision 115472 of nsIMimeConverter

  • Revision slug: nsIMimeConverter
  • Revision title: nsIMimeConverter
  • Revision id: 115472
  • Created:
  • Creator: Jcranmer
  • Is current revision? No
  • Comment 62 words added, 22 words removed

Revision Content

The nsIMimeConverter service allows you to convert headers into and out of MIME format.

{{ tbInterfaceStatus("nsIMimeConverter", "mailnews/mime/public/nsIMimeConverter.idl", "unfrozen", "Mozilla 1.9", "yes") }}

Inherits from: {{ Interface("nsISupports") }}

Implemented by: @mozilla.org/messenger/mimeconverter;1.

Method overview

 

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);

Revision Source

<p>The <code>nsIMimeConverter</code> service allows you to convert headers into and out of MIME format.</p>
<p>{{ tbInterfaceStatus("nsIMimeConverter", "mailnews/mime/public/nsIMimeConverter.idl", "unfrozen", "Mozilla 1.9", "yes") }}</p>
<p>Inherits from: {{ Interface("nsISupports") }}</p>
<p>Implemented by: <code>@mozilla.org/messenger/mimeconverter;1<span style="font-family: Verdana,Tahoma,sans-serif;">.</span></code></p>
<h2 name="Method_overview">Method overview</h2>
<p> </p>
<table class="standard-table"> <tbody> <tr> <td><code>string <a href="#getProperty.28.29">encodeMIMEPartIIStr</a>(in string header, in boolean structured, in string mailCharset, in long fieldnamelen, in long encodedwordsize);</code></td> </tr> <tr> <td><code>string <a href="#getProperty.28.29">encodeMIMEPartIIStr_UTF8</a>(in AUTF8String header, in boolean structured, in string mailCharset, in long fieldnamelen, in long encodedwordsize);</code></td> </tr> <tr> <td><code>string <a href="#setStringProperty.28.29">decodeMimeHeaderToCharPtr</a>(in string header, in string default_charset, in boolean override_charset, in boolean eatContinuations);</code></td> </tr> <tr> <td><code>AString <a href="#getStringProperty.28.29">decodeMimeHeader</a>(</code><code>in string header, in string default_charset, in boolean override_charset, in boolean eatContinuations);</code></td> </tr> <tr> <td><code>MimeEncoderData *<a href="#getUint32Property.28.29">B64EncoderInit</a>(in MimeConverterOutputCallback output_fn, in void *closure);</code></td> </tr> <tr> <td><code>MimeEncoderData *<a href="#setUint32Property.28.29">QPEncoderInit</a></code><code>(in MimeConverterOutputCallback output_fn, in void *closure);</code></td> </tr> <tr> <td><code>void <a href="#markRead.28.29">EncoderDestroy</a>(in MimeEncoderData *data, in boolean abort_p);</code></td> </tr> <tr> <td><code>long <a href="#markFlagged.28.29">EncoderWrite</a>(in MimeEncoderData *data, in string buffer, in long size);</code></td> </tr> </tbody>
</table>
Revert to this revision