git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/4] imap-send: add wrapper to get server credentials if needed

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 7, 2017, 22:21 UTC
Message-ID
<xmqqd187nhmk.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20170807200724.6pdfkmrrmmkdmmb6@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 23 quoted lines
> On Mon, Aug 07, 2017 at 09:55:56PM +0200, Nicolas Morey-Chaisemartin wrote:
>
>> > On the other hand, if we're hoping to get rid of this code in favor of
>> > the curl-based approach, then it's not worth spending time on
>> > cosmetic refactoring, as long as it still behaves correctly in the
>> > interim.
>> 
>> Looking at the code, it seems the tunnel mode always uses the legacy imap approach.
>> This would have to be ported to curl and stabilized before dropping the legacy code.
>
> Urgh. That's an important mode, I'd think, and one that I have a feeling
> curl may not be interested in supporting, just because of it's
> complexity. And even if they did, it would take a while for that curl
> version to become available.
>
> So maybe the idea of deprecating the non-curl implementation is not
> something that can happen anytime soon. :(
>
>> In the meantime, it might be worth doing a bit of cleanup.
>
> In which case, yeah, it is definitely worth cleaning up the existing
> code. But I also agree with you that it's worth making sure the curl
> version behaves as similarly as possible.

Thanks for guiding this topic forward. I agree with all points you raised in your reviews.

Previous: Jeff King
Message 8 of 8 in “imap-send: add wrapper to get server credentials if needed”
  1. 1/4 imap-send: add wrapper to get server credentials if neededNicolas Morey-Chaisemartin, Aug 7, 2017
  2. Martin ÅgrenAug 7, 2017
  3. Nicolas Morey-ChaisemartinAug 7, 2017
  4. Martin ÅgrenAug 7, 2017
  5. Jeff KingAug 7, 2017
  6. Nicolas Morey-ChaisemartinAug 7, 2017
  7. Jeff KingAug 7, 2017
  8. Junio C HamanoAug 7, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.