email-clients.txt 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. Email clients info for Linux
  2. ======================================================================
  3. Git
  4. ----------------------------------------------------------------------
  5. These days most developers use `git send-email` instead of regular
  6. email clients. The man page for this is quite good. On the receiving
  7. end, maintainers use `git am` to apply the patches.
  8. If you are new to git then send your first patch to yourself. Save it
  9. as raw text including all the headers. Run `git am raw_email.txt` and
  10. then review the changelog with `git log`. When that works then send
  11. the patch to the appropriate mailing list(s).
  12. General Preferences
  13. ----------------------------------------------------------------------
  14. Patches for the Linux kernel are submitted via email, preferably as
  15. inline text in the body of the email. Some maintainers accept
  16. attachments, but then the attachments should have content-type
  17. "text/plain". However, attachments are generally frowned upon because
  18. it makes quoting portions of the patch more difficult in the patch
  19. review process.
  20. Email clients that are used for Linux kernel patches should send the
  21. patch text untouched. For example, they should not modify or delete tabs
  22. or spaces, even at the beginning or end of lines.
  23. Don't send patches with "format=flowed". This can cause unexpected
  24. and unwanted line breaks.
  25. Don't let your email client do automatic word wrapping for you.
  26. This can also corrupt your patch.
  27. Email clients should not modify the character set encoding of the text.
  28. Emailed patches should be in ASCII or UTF-8 encoding only.
  29. If you configure your email client to send emails with UTF-8 encoding,
  30. you avoid some possible charset problems.
  31. Email clients should generate and maintain References: or In-Reply-To:
  32. headers so that mail threading is not broken.
  33. Copy-and-paste (or cut-and-paste) usually does not work for patches
  34. because tabs are converted to spaces. Using xclipboard, xclip, and/or
  35. xcutsel may work, but it's best to test this for yourself or just avoid
  36. copy-and-paste.
  37. Don't use PGP/GPG signatures in mail that contains patches.
  38. This breaks many scripts that read and apply the patches.
  39. (This should be fixable.)
  40. It's a good idea to send a patch to yourself, save the received message,
  41. and successfully apply it with 'patch' before sending patches to Linux
  42. mailing lists.
  43. Some email client (MUA) hints
  44. ----------------------------------------------------------------------
  45. Here are some specific MUA configuration hints for editing and sending
  46. patches for the Linux kernel. These are not meant to be complete
  47. software package configuration summaries.
  48. Legend:
  49. TUI = text-based user interface
  50. GUI = graphical user interface
  51. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  52. Alpine (TUI)
  53. Config options:
  54. In the "Sending Preferences" section:
  55. - "Do Not Send Flowed Text" must be enabled
  56. - "Strip Whitespace Before Sending" must be disabled
  57. When composing the message, the cursor should be placed where the patch
  58. should appear, and then pressing CTRL-R let you specify the patch file
  59. to insert into the message.
  60. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  61. Claws Mail (GUI)
  62. Works. Some people use this successfully for patches.
  63. To insert a patch use Message->Insert File (CTRL+i) or an external editor.
  64. If the inserted patch has to be edited in the Claws composition window
  65. "Auto wrapping" in Configuration->Preferences->Compose->Wrapping should be
  66. disabled.
  67. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  68. Evolution (GUI)
  69. Some people use this successfully for patches.
  70. When composing mail select: Preformat
  71. from Format->Heading->Preformatted (Ctrl-7)
  72. or the toolbar
  73. Then use:
  74. Insert->Text File... (Alt-n x)
  75. to insert the patch.
  76. You can also "diff -Nru old.c new.c | xclip", select Preformat, then
  77. paste with the middle button.
  78. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  79. Kmail (GUI)
  80. Some people use Kmail successfully for patches.
  81. The default setting of not composing in HTML is appropriate; do not
  82. enable it.
  83. When composing an email, under options, uncheck "word wrap". The only
  84. disadvantage is any text you type in the email will not be word-wrapped
  85. so you will have to manually word wrap text before the patch. The easiest
  86. way around this is to compose your email with word wrap enabled, then save
  87. it as a draft. Once you pull it up again from your drafts it is now hard
  88. word-wrapped and you can uncheck "word wrap" without losing the existing
  89. wrapping.
  90. At the bottom of your email, put the commonly-used patch delimiter before
  91. inserting your patch: three hyphens (---).
  92. Then from the "Message" menu item, select insert file and choose your patch.
  93. As an added bonus you can customise the message creation toolbar menu
  94. and put the "insert file" icon there.
  95. Make the composer window wide enough so that no lines wrap. As of
  96. KMail 1.13.5 (KDE 4.5.4), KMail will apply word wrapping when sending
  97. the email if the lines wrap in the composer window. Having word wrapping
  98. disabled in the Options menu isn't enough. Thus, if your patch has very
  99. long lines, you must make the composer window very wide before sending
  100. the email. See: https://bugs.kde.org/show_bug.cgi?id=174034
  101. You can safely GPG sign attachments, but inlined text is preferred for
  102. patches so do not GPG sign them. Signing patches that have been inserted
  103. as inlined text will make them tricky to extract from their 7-bit encoding.
  104. If you absolutely must send patches as attachments instead of inlining
  105. them as text, right click on the attachment and select properties, and
  106. highlight "Suggest automatic display" to make the attachment inlined to
  107. make it more viewable.
  108. When saving patches that are sent as inlined text, select the email that
  109. contains the patch from the message list pane, right click and select
  110. "save as". You can use the whole email unmodified as a patch if it was
  111. properly composed. There is no option currently to save the email when you
  112. are actually viewing it in its own window -- there has been a request filed
  113. at kmail's bugzilla and hopefully this will be addressed. Emails are saved
  114. as read-write for user only so you will have to chmod them to make them
  115. group and world readable if you copy them elsewhere.
  116. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  117. Lotus Notes (GUI)
  118. Run away from it.
  119. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  120. Mutt (TUI)
  121. Plenty of Linux developers use mutt, so it must work pretty well.
  122. Mutt doesn't come with an editor, so whatever editor you use should be
  123. used in a way that there are no automatic linebreaks. Most editors have
  124. an "insert file" option that inserts the contents of a file unaltered.
  125. To use 'vim' with mutt:
  126. set editor="vi"
  127. If using xclip, type the command
  128. :set paste
  129. before middle button or shift-insert or use
  130. :r filename
  131. if you want to include the patch inline.
  132. (a)ttach works fine without "set paste".
  133. Config options:
  134. It should work with default settings.
  135. However, it's a good idea to set the "send_charset" to:
  136. set send_charset="us-ascii:utf-8"
  137. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  138. Pine (TUI)
  139. Pine has had some whitespace truncation issues in the past, but these
  140. should all be fixed now.
  141. Use alpine (pine's successor) if you can.
  142. Config options:
  143. - quell-flowed-text is needed for recent versions
  144. - the "no-strip-whitespace-before-send" option is needed
  145. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  146. Sylpheed (GUI)
  147. - Works well for inlining text (or using attachments).
  148. - Allows use of an external editor.
  149. - Is slow on large folders.
  150. - Won't do TLS SMTP auth over a non-SSL connection.
  151. - Has a helpful ruler bar in the compose window.
  152. - Adding addresses to address book doesn't understand the display name
  153. properly.
  154. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  155. Thunderbird (GUI)
  156. Thunderbird is an Outlook clone that likes to mangle text, but there are ways
  157. to coerce it into behaving.
  158. - Allow use of an external editor:
  159. The easiest thing to do with Thunderbird and patches is to use an
  160. "external editor" extension and then just use your favorite $EDITOR
  161. for reading/merging patches into the body text. To do this, download
  162. and install the extension, then add a button for it using
  163. View->Toolbars->Customize... and finally just click on it when in the
  164. Compose dialog.
  165. Please note that "external editor" requires that your editor must not
  166. fork, or in other words, the editor must not return before closing.
  167. You may have to pass additional flags or change the settings of your
  168. editor. Most notably if you are using gvim then you must pass the -f
  169. option to gvim by putting "/usr/bin/gvim -f" (if the binary is in
  170. /usr/bin) to the text editor field in "external editor" settings. If you
  171. are using some other editor then please read its manual to find out how
  172. to do this.
  173. To beat some sense out of the internal editor, do this:
  174. - Edit your Thunderbird config settings so that it won't use format=flowed.
  175. Go to "edit->preferences->advanced->config editor" to bring up the
  176. thunderbird's registry editor.
  177. - Set "mailnews.send_plaintext_flowed" to "false"
  178. - Set "mailnews.wraplength" from "72" to "0"
  179. - "View" > "Message Body As" > "Plain Text"
  180. - "View" > "Character Encoding" > "Unicode (UTF-8)"
  181. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  182. TkRat (GUI)
  183. Works. Use "Insert file..." or external editor.
  184. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  185. Gmail (Web GUI)
  186. Does not work for sending patches.
  187. Gmail web client converts tabs to spaces automatically.
  188. At the same time it wraps lines every 78 chars with CRLF style line breaks
  189. although tab2space problem can be solved with external editor.
  190. Another problem is that Gmail will base64-encode any message that has a
  191. non-ASCII character. That includes things like European names.
  192. ###