email-clients.txt 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. Email clients info for Linux
  2. ======================================================================
  3. General Preferences
  4. ----------------------------------------------------------------------
  5. Patches for the Linux kernel are submitted via email, preferably as
  6. inline text in the body of the email. Some maintainers accept
  7. attachments, but then the attachments should have content-type
  8. "text/plain". However, attachments are generally frowned upon because
  9. it makes quoting portions of the patch more difficult in the patch
  10. review process.
  11. Email clients that are used for Linux kernel patches should send the
  12. patch text untouched. For example, they should not modify or delete tabs
  13. or spaces, even at the beginning or end of lines.
  14. Don't send patches with "format=flowed". This can cause unexpected
  15. and unwanted line breaks.
  16. Don't let your email client do automatic word wrapping for you.
  17. This can also corrupt your patch.
  18. Email clients should not modify the character set encoding of the text.
  19. Emailed patches should be in ASCII or UTF-8 encoding only.
  20. If you configure your email client to send emails with UTF-8 encoding,
  21. you avoid some possible charset problems.
  22. Email clients should generate and maintain References: or In-Reply-To:
  23. headers so that mail threading is not broken.
  24. Copy-and-paste (or cut-and-paste) usually does not work for patches
  25. because tabs are converted to spaces. Using xclipboard, xclip, and/or
  26. xcutsel may work, but it's best to test this for yourself or just avoid
  27. copy-and-paste.
  28. Don't use PGP/GPG signatures in mail that contains patches.
  29. This breaks many scripts that read and apply the patches.
  30. (This should be fixable.)
  31. It's a good idea to send a patch to yourself, save the received message,
  32. and successfully apply it with 'patch' before sending patches to Linux
  33. mailing lists.
  34. Some email client (MUA) hints
  35. ----------------------------------------------------------------------
  36. Here are some specific MUA configuration hints for editing and sending
  37. patches for the Linux kernel. These are not meant to be complete
  38. software package configuration summaries.
  39. Legend:
  40. TUI = text-based user interface
  41. GUI = graphical user interface
  42. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  43. Alpine (TUI)
  44. Config options:
  45. In the "Sending Preferences" section:
  46. - "Do Not Send Flowed Text" must be enabled
  47. - "Strip Whitespace Before Sending" must be disabled
  48. When composing the message, the cursor should be placed where the patch
  49. should appear, and then pressing CTRL-R let you specify the patch file
  50. to insert into the message.
  51. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  52. Evolution (GUI)
  53. Some people use this successfully for patches.
  54. When composing mail select: Preformat
  55. from Format->Heading->Preformatted (Ctrl-7)
  56. or the toolbar
  57. Then use:
  58. Insert->Text File... (Alt-n x)
  59. to insert the patch.
  60. You can also "diff -Nru old.c new.c | xclip", select Preformat, then
  61. paste with the middle button.
  62. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  63. Kmail (GUI)
  64. Some people use Kmail successfully for patches.
  65. The default setting of not composing in HTML is appropriate; do not
  66. enable it.
  67. When composing an email, under options, uncheck "word wrap". The only
  68. disadvantage is any text you type in the email will not be word-wrapped
  69. so you will have to manually word wrap text before the patch. The easiest
  70. way around this is to compose your email with word wrap enabled, then save
  71. it as a draft. Once you pull it up again from your drafts it is now hard
  72. word-wrapped and you can uncheck "word wrap" without losing the existing
  73. wrapping.
  74. At the bottom of your email, put the commonly-used patch delimiter before
  75. inserting your patch: three hyphens (---).
  76. Then from the "Message" menu item, select insert file and choose your patch.
  77. As an added bonus you can customise the message creation toolbar menu
  78. and put the "insert file" icon there.
  79. You can safely GPG sign attachments, but inlined text is preferred for
  80. patches so do not GPG sign them. Signing patches that have been inserted
  81. as inlined text will make them tricky to extract from their 7-bit encoding.
  82. If you absolutely must send patches as attachments instead of inlining
  83. them as text, right click on the attachment and select properties, and
  84. highlight "Suggest automatic display" to make the attachment inlined to
  85. make it more viewable.
  86. When saving patches that are sent as inlined text, select the email that
  87. contains the patch from the message list pane, right click and select
  88. "save as". You can use the whole email unmodified as a patch if it was
  89. properly composed. There is no option currently to save the email when you
  90. are actually viewing it in its own window -- there has been a request filed
  91. at kmail's bugzilla and hopefully this will be addressed. Emails are saved
  92. as read-write for user only so you will have to chmod them to make them
  93. group and world readable if you copy them elsewhere.
  94. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  95. Lotus Notes (GUI)
  96. Run away from it.
  97. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  98. Mutt (TUI)
  99. Plenty of Linux developers use mutt, so it must work pretty well.
  100. Mutt doesn't come with an editor, so whatever editor you use should be
  101. used in a way that there are no automatic linebreaks. Most editors have
  102. an "insert file" option that inserts the contents of a file unaltered.
  103. To use 'vim' with mutt:
  104. set editor="vi"
  105. If using xclip, type the command
  106. :set paste
  107. before middle button or shift-insert or use
  108. :r filename
  109. if you want to include the patch inline.
  110. (a)ttach works fine without "set paste".
  111. Config options:
  112. It should work with default settings.
  113. However, it's a good idea to set the "send_charset" to:
  114. set send_charset="us-ascii:utf-8"
  115. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  116. Pine (TUI)
  117. Pine has had some whitespace truncation issues in the past, but these
  118. should all be fixed now.
  119. Use alpine (pine's successor) if you can.
  120. Config options:
  121. - quell-flowed-text is needed for recent versions
  122. - the "no-strip-whitespace-before-send" option is needed
  123. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  124. Sylpheed (GUI)
  125. - Works well for inlining text (or using attachments).
  126. - Allows use of an external editor.
  127. - Is slow on large folders.
  128. - Won't do TLS SMTP auth over a non-SSL connection.
  129. - Has a helpful ruler bar in the compose window.
  130. - Adding addresses to address book doesn't understand the display name
  131. properly.
  132. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  133. Thunderbird (GUI)
  134. By default, thunderbird likes to mangle text, but there are ways to
  135. coerce it into being nice.
  136. - Under account settings, composition and addressing, uncheck "Compose
  137. messages in HTML format".
  138. - Edit your Thunderbird config settings to tell it not to wrap lines:
  139. user_pref("mailnews.wraplength", 0);
  140. - Edit your Thunderbird config settings so that it won't use format=flowed:
  141. user_pref("mailnews.send_plaintext_flowed", false);
  142. - You need to get Thunderbird into preformat mode:
  143. . If you compose HTML messages by default, it's not too hard. Just select
  144. "Preformat" from the drop-down box just under the subject line.
  145. . If you compose in text by default, you have to tell it to compose a new
  146. message in HTML (just as a one-off), and then force it from there back to
  147. text, else it will wrap lines. To do this, use shift-click on the Write
  148. icon to compose to get HTML compose mode, then select "Preformat" from
  149. the drop-down box just under the subject line.
  150. - Allows use of an external editor:
  151. The easiest thing to do with Thunderbird and patches is to use an
  152. "external editor" extension and then just use your favorite $EDITOR
  153. for reading/merging patches into the body text. To do this, download
  154. and install the extension, then add a button for it using
  155. View->Toolbars->Customize... and finally just click on it when in the
  156. Compose dialog.
  157. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  158. TkRat (GUI)
  159. Works. Use "Insert file..." or external editor.
  160. ###