<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/imap-send.c, branch v2.3.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.3.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.3.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2015-01-06T20:18:32Z</updated>
<entry>
<title>imap-send.c: set CURLOPT_USE_SSL to CURLUSESSL_TRY</title>
<updated>2015-01-06T20:18:32Z</updated>
<author>
<name>Kyle J. McKay</name>
<email>mackyle@gmail.com</email>
</author>
<published>2015-01-06T11:20:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=230c09c06a7300870f3915c54eff7d9335850a4a'/>
<id>urn:sha1:230c09c06a7300870f3915c54eff7d9335850a4a</id>
<content type='text'>
According to the cURL documentation for the CURLOPT_USE_SSL option,
it is only used with plain text protocols that get upgraded to SSL
using the STARTTLS command.

The server.use_ssl variable is only set when we are using a protocol
that is already SSL/TLS (i.e. imaps), so setting CURLOPT_USE_SSL
when the server.use_ssl variable is set has no effect whatsoever.

Instead, set CURLOPT_USE_SSL to CURLUSESSL_TRY when the server.use_ssl
variable is NOT set so that cURL will attempt to upgrade the plain
text connection to SSL/TLS using STARTTLS in that case.

This much more closely matches the behavior of the non-cURL code path.

Signed-off-by: Kyle J. McKay &lt;mackyle@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>imap-send.c: support GIT_CURL_VERBOSE</title>
<updated>2015-01-06T20:17:37Z</updated>
<author>
<name>Kyle J. McKay</name>
<email>mackyle@gmail.com</email>
</author>
<published>2015-01-06T11:00:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d47e55da92932eecb58d01a7d925efa36f30087d'/>
<id>urn:sha1:d47e55da92932eecb58d01a7d925efa36f30087d</id>
<content type='text'>
When using git-imap-send to send via cURL, support setting
the GIT_CURL_VERBOSE environment variable to enable cURL's
verbose mode.

The existing http.c code already supports this and does
it by simply checking to see whether or not the environment
variable exists -- it does not examine the value at all.

For consistency, enable CURLOPT_VERBOSE when GIT_CURL_VERBOSE
is set by using the exact same test that http.c does.

Signed-off-by: Kyle J. McKay &lt;mackyle@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-imap-send: use libcurl for implementation</title>
<updated>2014-11-10T17:17:27Z</updated>
<author>
<name>Bernhard Reiter</name>
<email>ockham@raz.or.at</email>
</author>
<published>2014-11-09T14:55:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1e16b255b95b45374db0b0cf69ef0ecce768ac27'/>
<id>urn:sha1:1e16b255b95b45374db0b0cf69ef0ecce768ac27</id>
<content type='text'>
Use libcurl's high-level API functions to implement git-imap-send
instead of the previous low-level OpenSSL-based functions.

Since version 7.30.0, libcurl's API has been able to communicate with
IMAP servers. Using those high-level functions instead of the current
ones would reduce imap-send.c by some 1200 lines of code. For now,
the old ones are wrapped in #ifdefs, and the new functions are enabled
by make if curl's version is &gt;= 7.34.0, from which version on curl's
CURLOPT_LOGIN_OPTIONS (enabling IMAP authentication) parameter has been
available. The low-level functions will still be used for tunneling
into the server for now.

As I don't have access to that many IMAP servers, I haven't been able to
test the new code with a wide variety of parameter combinations. I did
test both secure and insecure (imaps:// and imap://) connections and
values of "PLAIN" and "LOGIN" for the authMethod.

In order to suppress a sparse warning about "using sizeof on a
function", we use the same solution used in commit 9371322a6
("sparse: suppress some "using sizeof on a function" warnings",
06-10-2013) which solved exactly this problem for the other commands
using libcurl.

Helped-by: Ramsay Jones &lt;ramsay@ramsay1.demon.co.uk&gt;
Signed-off-by: Bernhard Reiter &lt;ockham@raz.or.at&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>imap-send: use parse options API to determine verbosity</title>
<updated>2014-11-06T00:24:27Z</updated>
<author>
<name>Bernhard Reiter</name>
<email>ockham@raz.or.at</email>
</author>
<published>2014-11-05T14:29:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f1a35295c2b66d2501f034d864afb2c5d8bb0e08'/>
<id>urn:sha1:f1a35295c2b66d2501f034d864afb2c5d8bb0e08</id>
<content type='text'>
The -v/-q options were sort-of supported but without using the
parse-options API, and were not documented.

Signed-off-by: Bernhard Reiter &lt;ockham@raz.or.at&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'as/calloc-takes-nmemb-then-size'</title>
<updated>2014-09-19T18:38:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-09-19T18:38:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=14e2ae6126509feeb379f490d925cccd3dd9f7c0'/>
<id>urn:sha1:14e2ae6126509feeb379f490d925cccd3dd9f7c0</id>
<content type='text'>
Code clean-up.

* as/calloc-takes-nmemb-then-size:
  calloc() and xcalloc() takes nmemb and then size
</content>
</entry>
<entry>
<title>Merge branch 'br/imap-send-simplify-tunnel-child-process'</title>
<updated>2014-09-11T17:33:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-09-11T17:33:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5dcdc7809ea419cd792baf1cfa484261e883cd51'/>
<id>urn:sha1:5dcdc7809ea419cd792baf1cfa484261e883cd51</id>
<content type='text'>
Code clean-up.

* br/imap-send-simplify-tunnel-child-process:
  imap-send: simplify v_issue_imap_cmd() and get_cmd_result() using starts_with()
  imap-send.c: imap_folder -&gt; imap_server_conf.folder
  git-imap-send: simplify tunnel construction
</content>
</entry>
<entry>
<title>Merge branch 'rs/child-process-init'</title>
<updated>2014-09-11T17:33:27Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-09-11T17:33:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=825fd93767510895a98ad7f12e3c1af3e40e367b'/>
<id>urn:sha1:825fd93767510895a98ad7f12e3c1af3e40e367b</id>
<content type='text'>
Code clean-up.

* rs/child-process-init:
  run-command: inline prepare_run_command_v_opt()
  run-command: call run_command_v_opt_cd_env() instead of duplicating it
  run-command: introduce child_process_init()
  run-command: introduce CHILD_PROCESS_INIT
</content>
</entry>
<entry>
<title>Merge branch 'ta/config-set-2'</title>
<updated>2014-09-11T17:33:26Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-09-11T17:33:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=554913daf43f744f7d6bd8bd2cd008d96d19cbd9'/>
<id>urn:sha1:554913daf43f744f7d6bd8bd2cd008d96d19cbd9</id>
<content type='text'>
Update git_config() users with callback functions for a very narrow
scope with calls to config-set API that lets us query a single
variable.

* ta/config-set-2:
  builtin/apply.c: replace `git_config()` with `git_config_get_string_const()`
  merge-recursive.c: replace `git_config()` with `git_config_get_int()`
  ll-merge.c: refactor `read_merge_config()` to use `git_config_string()`
  fast-import.c: replace `git_config()` with `git_config_get_*()` family
  branch.c: replace `git_config()` with `git_config_get_string()
  alias.c: replace `git_config()` with `git_config_get_string()`
  imap-send.c: replace `git_config()` with `git_config_get_*()` family
  pager.c: replace `git_config()` with `git_config_get_value()`
  builtin/gc.c: replace `git_config()` with `git_config_get_*()` family
  rerere.c: replace `git_config()` with `git_config_get_*()` family
  fetchpack.c: replace `git_config()` with `git_config_get_*()` family
  archive.c: replace `git_config()` with `git_config_get_bool()` family
  read-cache.c: replace `git_config()` with `git_config_get_*()` family
  http-backend.c: replace `git_config()` with `git_config_get_bool()` family
  daemon.c: replace `git_config()` with `git_config_get_bool()` family
</content>
</entry>
<entry>
<title>Merge branch 'tf/imap-send-create'</title>
<updated>2014-09-09T19:54:09Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-09-09T19:54:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c0ad561a468f7f95c3697b73b7cffc2851988a8b'/>
<id>urn:sha1:c0ad561a468f7f95c3697b73b7cffc2851988a8b</id>
<content type='text'>
* tf/imap-send-create:
  imap-send: create target mailbox if it is missing
  imap-send: clarify CRAM-MD5 vs LOGIN documentation
</content>
</entry>
<entry>
<title>calloc() and xcalloc() takes nmemb and then size</title>
<updated>2014-09-03T21:35:37Z</updated>
<author>
<name>Arjun Sreedharan</name>
<email>arjun024@gmail.com</email>
</author>
<published>2014-08-30T06:54:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=693eb02a5e152668dacc7c6ff0f1c63d70c0a82a'/>
<id>urn:sha1:693eb02a5e152668dacc7c6ff0f1c63d70c0a82a</id>
<content type='text'>
There are a handful more instances of this in compat/regex/ but they
are borrowed code taht we do not want to touch with a change that
really affects correctness, which this change is not.

Signed-off-by: Arjun Sreedharan &lt;arjun024@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
