From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 10172 invoked from network); 10 Jan 2023 18:23:14 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 10 Jan 2023 18:23:14 -0000 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFJDG-0007B5-W2; Tue, 10 Jan 2023 13:19:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFJDA-00074W-1H for info-gnus-english@gnu.org; Tue, 10 Jan 2023 13:19:01 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFJD8-0006N5-8r for info-gnus-english@gnu.org; Tue, 10 Jan 2023 13:18:59 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pFJD3-0009Xb-Pv for info-gnus-english@gnu.org; Tue, 10 Jan 2023 19:18:53 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: info-gnus-english@gnu.org From: =?utf-8?Q?Adam_Sj=C3=B8gren?= Subject: Re: Keeping IMAP connection alive when using it in mail-sources Date: Tue, 10 Jan 2023 19:18:46 +0100 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <878riaw8vt.fsf@tullinup.koldfront.dk> References: <87cz7oj3s2.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:NUiBqEIVtEpKdoROBj6ACbGFNZE= OpenPGP: id=476630590A231909B0A0961A49D0746121BDE416; url=https://asjo.koldfront.dk/gpg.asc X-Now-Playing: I Am Hell, The Beavis And Butt-head Experience (White Zombie) X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97, Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Sender: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org 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."