mozilla

Compare Revisions

nsIMimeConverter

Change Revisions

Revision 115473:

Revision 115473 by Jcranmer on

Revision 115474:

Revision 115474 by Jcranmer on

Title:
nsIMimeConverter
nsIMimeConverter
Slug:
nsIMimeConverter
nsIMimeConverter
Content:

Revision 115473
Revision 115474
n19    <h2 name="Method_overview">n19    <h2 id="Method_overview" name="Method_overview">
n72    <h2 name="Methods">n72    <h2 id="Methods" name="Methods">
n75    <h3 name="getProperty.28.29">n75    <h3 id="getProperty.28.29" name="getProperty.28.29">
nn78    <p>
79      An variant of {{ manch("encodeMimePartIIStr_UTF8") }} which
 > treats the header as written in the given charset. This should o
 >nly be used by native code, as xpconnect translation causes it to
 > not work properly.
80    </p>
n79 AString getProperty(in string propertyName);n82string encodeMimePartIIStr(in string  header,
83                           in boolean structured,
84                           in string  mailCharset,
85                           in long    fieldnamelen,
86                           in long    encodedWordSize);
n81    <h6 name="Parameters">n88    <h6 id="Parameters" name="Parameters">
n92    <h6 name="Return_Value">n99    <h6 id="Return_Value" name="Return_Value">
n98    <h3 name="setProperty.28.29">n105    <h3 id="setProperty.28.29" name="setProperty.28.29">
n102      Sets a property on the header. For the currently selected mn109      Encodes a string into a MIME-encoded form according to RFC 
>essage, Thunderbird provides a utility function: <code><a class=">2047.
>external" href="http://mxr.mozilla.org/mozilla/source/mail/base/c 
>ontent/mailWindowOverlay.js#2617">setMsgHdrPropertyAndReload(aPro 
>perty, aValue);</a></code> which duplicates this functionality wi 
>thout requiring you to grab the current header. 
103    </p>
104    <pre class="eval">
105 void setProperty(in string propertyName,
106                  in AString propertyStr);
107</pre>
108    <h6 name="Parameters_2">
109      Parameters
110    </h6>110    </p>
111    <dl>111    <pre class="eval">
112string encodeMimePartIIStr_UTF8(in AUTF8String header,
113                                in boolean     structured,
114                                in string      mailCharset,
115                                in long        fieldnamelen,
116                                in long        encodedWordSize);
117</pre>
118    <h6 id="Parameters_2" name="Parameters_2">
119      Parameters
120    </h6>
112      <dt>121    <dl>
113        <code>propertyName</code>
114      </dt>122      <dt>
115      <dd>123        <code>header</code>
116        The name of the property to set.
117      </dd>
118      <dt>124      </dt>
119        <code>propertyStr</code>
120      </dt>
121      <dd>
122        The value of the property.
123      </dd>125      <dd>
126        The string to encode into the MIME-encoded form.
124    </dl>127      </dd>
125    <h3 name="setStringProperty.28.29">128      <dt>
129        <code>structured</code>
130      </dt>
131      <dd>
132        Whether or not this string may contain &lt;&gt; blocks wh
 >ich should not be encoded (e.g., the From and To headers).
133      </dd>
134      <dt>
135        <code>mailCharset</code>
136      </dt>
137      <dd>
138        The charset to encode into.
139      </dd>
140      <dt>
141        <code>header</code>
142      </dt>
143      <dd>
144        The string to encode into the MIME-encoded form
145      </dd>
146      <dt>
147        <code>header</code>
148      </dt>
149      <dd>
150        The string to encode into the MIME-encoded form
151      </dd>
152    </dl>
153    <h3 id="setStringProperty.28.29" name="setStringProperty.28.2
 >9">
n132    <h6 name="Parameters_3">n160    <h6 id="Parameters_3" name="Parameters_3">
n149    <h3 name="getStringProperty.28.29">n177    <h3 id="getStringProperty.28.29" name="getStringProperty.28.2
 >9">
n155    <h6 name="Parameters_4">n183    <h6 id="Parameters_4" name="Parameters_4">
n166    <h6 name="Return_Value_2">n194    <h6 id="Return_Value_2" name="Return_Value_2">
n172    <h3 name="getUint32Property.28.29">n200    <h3 id="getUint32Property.28.29" name="getUint32Property.28.2
 >9">
n181    <h6 name="Parameters_5">n209    <h6 id="Parameters_5" name="Parameters_5">
n209    <h6 name="Return_Value_3">n237    <h6 id="Return_Value_3" name="Return_Value_3">
n215    <h3 name="setUint32Property.28.29">n243    <h3 id="setUint32Property.28.29" name="setUint32Property.28.2
 >9">
n222    <h6 name="Parameters_6">n250    <h6 id="Parameters_6" name="Parameters_6">
n239    <h3 name="markRead.28.29">n267    <h3 id="markRead.28.29" name="markRead.28.29">
n248    <h6 name="Parameters_7">n276    <h6 id="Parameters_7" name="Parameters_7">
n259    <h3 name="markFlagged.28.29">n287    <h3 id="markFlagged.28.29" name="markFlagged.28.29">
t265    <h6 name="Parameters_8">t293    <h6 id="Parameters_8" name="Parameters_8">

Back to History