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
Jeff King <peff@peff.net>
Date
Aug 7, 2017, 20:07 UTC
Message-ID
<20170807200724.6pdfkmrrmmkdmmb6@sigill.intra.peff.net>
In-Reply-To
<a4761418-0464-baa1-b415-836f33503eb8@morey-chaisemartin.com>
On Mon, Aug 07, 2017 at 09:55:56PM +0200, Nicolas Morey-Chaisemartin wrote:
Show 7 quoted lines
> > 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.

-Peff
Previous: Nicolas Morey-ChaisemartinNext: Junio C Hamano
Message 7 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.