send-email: Honour SMTP domain when using TLS

git-send-email sends two SMTP EHLOs when using TLS encryption, however
only the first, unencrypted EHLO uses the SMTP domain that can be
optionally specified by the user (--smtp-domain).  This is because the
call to hello() that produces the second, encrypted EHLO does not pass
the SMTP domain as an argument, and hence a default of
'localhost.localdomain' is used instead.

Fix by passing in the SMTP domain in this call.

Signed-off-by: Matthew Daley <mattjd@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 file changed
tree: 1352b2a08c396a5e40554078a70340d810d5a63c
  1. block-sha1/
  2. builtin/
  3. compat/
  4. contrib/
  5. Documentation/
  6. git-gui/
  7. git_remote_helpers/
  8. gitk-git/
  9. gitweb/
  10. perl/
  11. ppc/
  12. t/
  13. templates/
  14. xdiff/
  15. .gitattributes
  16. .gitignore
  17. .mailmap
  18. abspath.c
  19. advice.c
  20. advice.h
  21. alias.c
  22. alloc.c
  23. archive-tar.c
  24. archive-zip.c
  25. archive.c
  26. archive.h
  27. attr.c
  28. attr.h
  29. base85.c
  30. bisect.c
  31. bisect.h
  32. blob.c
  33. blob.h
  34. branch.c
  35. branch.h
  36. builtin.h
  37. bundle.c
  38. bundle.h
  39. cache-tree.c
  40. cache-tree.h
  41. cache.h
  42. check-builtins.sh
  43. check-racy.c
  44. check_bindir
  45. color.c
  46. color.h
  47. combine-diff.c
  48. command-list.txt
  49. commit.c
  50. commit.h
  51. config.c
  52. config.mak.in
  53. configure.ac
  54. connect.c
  55. convert.c
  56. copy.c
  57. COPYING
  58. csum-file.c
  59. csum-file.h
  60. ctype.c
  61. daemon.c
  62. date.c
  63. decorate.c
  64. decorate.h
  65. delta.h
  66. diff-delta.c
  67. diff-lib.c
  68. diff-no-index.c
  69. diff.c
  70. diff.h
  71. diffcore-break.c
  72. diffcore-delta.c
  73. diffcore-order.c
  74. diffcore-pickaxe.c
  75. diffcore-rename.c
  76. diffcore.h
  77. dir.c
  78. dir.h
  79. editor.c
  80. entry.c
  81. environment.c
  82. exec_cmd.c
  83. exec_cmd.h
  84. fast-import.c
  85. fetch-pack.h
  86. fixup-builtins
  87. fsck.c
  88. fsck.h
  89. generate-cmdlist.sh
  90. git-add--interactive.perl
  91. git-am.sh
  92. git-archimport.perl
  93. git-bisect.sh
  94. git-compat-util.h
  95. git-cvsexportcommit.perl
  96. git-cvsimport.perl
  97. git-cvsserver.perl
  98. git-difftool--helper.sh
  99. git-difftool.perl
  100. git-filter-branch.sh
  101. git-instaweb.sh
  102. git-lost-found.sh
  103. git-merge-octopus.sh
  104. git-merge-one-file.sh
  105. git-merge-resolve.sh
  106. git-mergetool--lib.sh
  107. git-mergetool.sh
  108. git-notes.sh
  109. git-parse-remote.sh
  110. git-pull.sh
  111. git-quiltimport.sh
  112. git-rebase--interactive.sh
  113. git-rebase.sh
  114. git-relink.perl
  115. git-repack.sh
  116. git-request-pull.sh
  117. git-send-email.perl
  118. git-sh-setup.sh
  119. git-stash.sh
  120. git-submodule.sh
  121. git-svn.perl
  122. GIT-VERSION-GEN
  123. git-web--browse.sh
  124. git.c
  125. git.spec.in
  126. graph.c
  127. graph.h
  128. grep.c
  129. grep.h
  130. hash.c
  131. hash.h
  132. help.c
  133. help.h
  134. hex.c
  135. http-backend.c
  136. http-fetch.c
  137. http-push.c
  138. http-walker.c
  139. http.c
  140. http.h
  141. ident.c
  142. imap-send.c
  143. INSTALL
  144. levenshtein.c
  145. levenshtein.h
  146. list-objects.c
  147. list-objects.h
  148. ll-merge.c
  149. ll-merge.h
  150. lockfile.c
  151. log-tree.c
  152. log-tree.h
  153. mailmap.c
  154. mailmap.h
  155. Makefile
  156. match-trees.c
  157. merge-file.c
  158. merge-recursive.c
  159. merge-recursive.h
  160. name-hash.c
  161. notes.c
  162. notes.h
  163. object.c
  164. object.h
  165. pack-check.c
  166. pack-refs.c
  167. pack-refs.h
  168. pack-revindex.c
  169. pack-revindex.h
  170. pack-write.c
  171. pack.h
  172. pager.c
  173. parse-options.c
  174. parse-options.h
  175. patch-delta.c
  176. patch-ids.c
  177. patch-ids.h
  178. path.c
  179. pkt-line.c
  180. pkt-line.h
  181. preload-index.c
  182. pretty.c
  183. progress.c
  184. progress.h
  185. quote.c
  186. quote.h
  187. reachable.c
  188. reachable.h
  189. read-cache.c
  190. README
  191. reflog-walk.c
  192. reflog-walk.h
  193. refs.c
  194. refs.h
  195. remote-curl.c
  196. remote.c
  197. remote.h
  198. replace_object.c
  199. rerere.c
  200. rerere.h
  201. resolve-undo.c
  202. resolve-undo.h
  203. revision.c
  204. revision.h
  205. run-command.c
  206. run-command.h
  207. send-pack.h
  208. server-info.c
  209. setup.c
  210. sha1-lookup.c
  211. sha1-lookup.h
  212. sha1_file.c
  213. sha1_name.c
  214. shallow.c
  215. shell.c
  216. shortlog.h
  217. show-index.c
  218. sideband.c
  219. sideband.h
  220. sigchain.c
  221. sigchain.h
  222. strbuf.c
  223. strbuf.h
  224. string-list.c
  225. string-list.h
  226. submodule.c
  227. submodule.h
  228. symlinks.c
  229. tag.c
  230. tag.h
  231. tar.h
  232. test-chmtime.c
  233. test-ctype.c
  234. test-date.c
  235. test-delta.c
  236. test-dump-cache-tree.c
  237. test-genrandom.c
  238. test-index-version.c
  239. test-match-trees.c
  240. test-parse-options.c
  241. test-path-utils.c
  242. test-run-command.c
  243. test-sha1.c
  244. test-sha1.sh
  245. test-sigchain.c
  246. thread-utils.c
  247. thread-utils.h
  248. trace.c
  249. transport-helper.c
  250. transport.c
  251. transport.h
  252. tree-diff.c
  253. tree-walk.c
  254. tree-walk.h
  255. tree.c
  256. tree.h
  257. unimplemented.sh
  258. unpack-trees.c
  259. unpack-trees.h
  260. upload-pack.c
  261. usage.c
  262. userdiff.c
  263. userdiff.h
  264. utf8.c
  265. utf8.h
  266. walker.c
  267. walker.h
  268. wrap-for-bin.sh
  269. wrapper.c
  270. write_or_die.c
  271. ws.c
  272. wt-status.c
  273. wt-status.h
  274. xdiff-interface.c
  275. xdiff-interface.h