5.2. Some notes about style

There are a few conventions that about coding style that have been adopted over the years of development. The rational for these "rules" is explained for each one.

5.2.1. Inline attachments with Outlook Express

Outlook Express is notorious for mangleing attachements. Giving the patch a .txt extention and attaching will solve the problem for most mailers including Outlook. Also, there is a way to enable Outlook Express send .diff attachmnets.

You need following two things to make it work.

  1. Make sure that .diff files have \r\n line ends, because if OE detects that there is no \r\n line endings it switches to quoted-printable format attachments.

  2. Using regedit add key "Content Type" with value "text/plain" to the .diff extension under HKEY_CLASSES_ROOT (same as for .txt extension). This tells OE to use Content-Type: text/plain instead of application/octet-stream.

Item #1 is important. After you hit "Send" button, go to "Outbox" and using "Properties" verify the message source to make sure that the mail has correct format. You might want to send several test emails to yourself too.