Hello,

this patch adds a new paragraph describing some configuration
tweaks required for some e-mail clients to send good patches.

I only know about Mozilla Mail and KMail, but I hope other
developers will follow up with similar tips for other popular
clients.

Passes as valid XHTML 1.0 Transitional with the W3C validator.


Index: contribute.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/contribute.html,v
retrieving revision 1.57
diff -u -p -r1.57 contribute.html
--- contribute.html	12 Jan 2004 22:03:21 -0000	1.57
+++ contribute.html	25 Jun 2004 19:24:04 -0000
@@ -24,6 +24,7 @@ contributions must meet:</p>
 <li><a href="#docchanges">Documentation Changes</a></li>
 <li><a href="#webchanges">Web Site Changes</a></li>
 <li><a href="#patches">Submitting Patches</a></li>
+<li><a href="#mailclients">Tweaking E-Mail Clients</a></li>
 </ul>
 
 <hr />
@@ -108,7 +109,7 @@ If you already did a complete C,C++,Java
 directory before, you can use the following:</p>
 <blockquote><pre>
 make clean-target-libstdc++-v3                    # clean libstdc++ and ...
-test -d */libjava && make -C */libjava clean-nat  # ... parts of libjava
+test -d */libjava &amp;&amp; make -C */libjava clean-nat  # ... parts of libjava
 make all-target-libstdc++-v3 all-target-libjava   # rebuild compiler and libraries
 make -k check-c++                                 # run C++/libstdc++ testsuite
 </pre></blockquote>
@@ -241,17 +242,10 @@ changes easier but do not change GCC's b
 the changes that actually make use of the new code and change GCC's
 behavior.)</p>
 
-<p>We prefer patches posted as plain text or as MIME parts of type
-<code>text/x-patch</code> or <code>text/plain</code>, disposition
-<code>inline</code>, encoded as <code>7bit</code> or
-<code>8bit</code>.
-It is strongly discouraged to post patches as MIME parts of type
-<code>application/</code><i>whatever</i>, disposition
-<code>attachment</code> or encoded as <code>base64</code> or
-<code>quoted-printable</code>.  Avoid MIME large-message splitting
-(<code>message/partial</code>) at all costs.</p>
+<p>Before sending the patch, make sure your e-mail client is
+<a href="#mailclients">correctly configured</a>.
 
-<p> If the patch is too big or too mechanical, posting it gzipped or
+<p>If the patch is too big or too mechanical, posting it gzipped or
 bzip2ed and uuencoded or encoded as a <code>base64</code> MIME part is
 acceptable, as long as the ChangeLog is still posted as plain text.
 </p>
@@ -277,5 +271,57 @@ no-one else will need to apply it to the
 totally new files may be omitted (especially if large) since they can be
 accessed directly from the repository.</p>
 
+
+<h2><a name="mailclients">Tweaking E-Mail Clients</a></h2>
+
+<p>We prefer patches posted as plain text or as MIME parts of type
+<code>text/x-patch</code> or <code>text/plain</code>, disposition
+<code>inline</code>, encoded as <code>7bit</code> or
+<code>8bit</code>.
+It is strongly discouraged to post patches as MIME parts of type
+<code>application/</code><i>whatever</i>, disposition
+<code>attachment</code> or encoded as <code>base64</code> or
+<code>quoted-printable</code>.  Avoid MIME large-message splitting
+(<code>message/partial</code>) at all costs.</p>
+
+<p>The default configuration of many e-mail clients is inappropriate for
+patch submissions.  These are the correct settings to use with some
+popular clients:</p>
+
+<dl>
+
+<dt>Mozilla Mail</dt>
+<dd>
+<p>In &quot;<code>Edit / Mail &amp; Newsgroups Account Settings / YOUR-ACCOUNT /
+Composition &amp; Addressing</code>&quot;, uncheck &quot;<code>Compose messages
+in HTML format</code>&quot;.</p>
+
+<p>In &quot;<code>Edit / Preferences / Mail &amp; Newsgroups /
+Composition</code>&quot;, write &quot;<code>0</code>&quot; in the
+&quot;<code>Wrap text messages at N characters</code>&quot; edit box.</p>
+
+<p>Disable RFC 2646 flowed-format by setting the following options in
+&quot;<code>about:config</code>&quot; or in the &quot;<code>prefs.js</code>&quot;
+configuration file:</p>
+<blockquote><pre>
+  mailnews.display.disable_format_flowed_support = true
+  mailnews.send_plaintext_flowed = false
+</pre></blockquote>
+
+</dd>
+
+<dt>KMail</dt>
+<dd>
+<p>In &quot;<code>Settings/Configure KMail/Composer/General</code>&quot;,
+uncheck the &quot;<code>Word wrap at column N</code>&quot; option.</p>
+
+<p>Be aware that KMail incorrectly strips form-feed characters
+(<code>^L</code>) in sent mail.  Even when word-wrap is disabled, KMail wraps
+long lines when forwarding messages as inline, thus corrupting patches.
+There are no known work-arounds for both these problems.</p>
+</dd>
+
+</dl>
+
 </body>
 </html>
