Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: "Adam Sjøgren" <asjo@koldfront.dk>
To: info-gnus-english@gnu.org
Subject: Re: Keeping IMAP connection alive when using it in mail-sources
Date: Tue, 10 Jan 2023 19:18:46 +0100	[thread overview]
Message-ID: <878riaw8vt.fsf@tullinup.koldfront.dk> (raw)
In-Reply-To: <87cz7oj3s2.fsf@ericabrahamsen.net>

Eric writes:

> Not with the code as it's written! There's a very definite
> (imap-close buf) at the end of the mail source fetching, then the buffer
> is deleted. I guess it wouldn't be a bad idea to add a keepalive option
> to imap.el, but someone would have to do that!

I guess changing mail-source-fetch-imap to check if the buffer already
exists and if the connected process is still there, and then not closing
imap and not killing the buffer at the end, would be the bare minimum.

Interesting.

Thanks for the pointer!


  Best regards,

    Adam

-- 
 "Emacs [...] a [...] nuclear-powered Swiss Army            Adam Sjøgren
  knife favored by top-notch programmers and computer  asjo@koldfront.dk
  scientists."



  reply	other threads:[~2023-01-10 18:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-08 18:10 Eric Abrahamsen
2023-01-10 18:18 ` Adam Sjøgren [this message]
2023-01-10 19:24   ` Adam Sjøgren
2023-01-10 20:08     ` Emanuel Berg
2023-01-14 21:29     ` Adam Sjøgren
2023-01-15 19:55       ` Adam Sjøgren
  -- strict thread matches above, loose matches on Subject: below --
2023-01-07 23:49 Adam Sjøgren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878riaw8vt.fsf@tullinup.koldfront.dk \
    --to=asjo@koldfront.dk \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).