GNU bug report logs - #76783
[PATCH] Keep IMAP connection opened with nnml

Previous Next

Package: emacs;

Reported by: Manuel Giraud <manuel <at> ledu-giraud.fr>

Date: Thu, 6 Mar 2025 16:13:02 UTC

Severity: wishlist

Tags: patch

To reply to this bug, email your comments to 76783 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to larsi <at> gnus.org, bug-gnu-emacs <at> gnu.org:
bug#76783; Package emacs. (Thu, 06 Mar 2025 16:13:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Manuel Giraud <manuel <at> ledu-giraud.fr>:
New bug report received and forwarded. Copy sent to larsi <at> gnus.org, bug-gnu-emacs <at> gnu.org. (Thu, 06 Mar 2025 16:13:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Manuel Giraud <manuel <at> ledu-giraud.fr>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Keep IMAP connection opened with nnml
Date: Thu, 06 Mar 2025 17:11:41 +0100
[Message part 1 (text/plain, inline)]
Tags: patch

Hi,

Here is a patch that permits a Gnus/nnml user to define the name of the
buffer for IMAP communication.  Like this, for instance:

(setq mail-sources '((imap :server "example.com"
                           :stream tls
			   :buffer " *imap example.com*")))
                           
Doing so, said buffer will be kept connected for the entire Gnus
session.  FWIW, I'm using it right now and it seems like a quite
effective way to speed up mail retrieving (even better with multiple
IMAP servers).

I have no use for this myself but I guess that this feature could also
be extended to POP servers.

In GNU Emacs 31.0.50 (build 22, x86_64-unknown-openbsd7.6, X toolkit) of
 2025-03-06 built on computer
Repository revision: fe7a8c92be6269f8fc7933eb6c190178839d0f8a
Repository branch: mgi/mail-source-keep-connect
Windowing system distributor 'The X.Org Foundation', version 11.0.12101015
System Description: OpenBSD computer 7.6 GENERIC.MP#567 amd64

Configured using:
 'configure CC=egcc CPPFLAGS=-I/usr/local/include
 LDFLAGS=-L/usr/local/lib MAKEINFO=gmakeinfo --prefix=/home/manuel/emacs
 --bindir=/home/manuel/bin --with-x-toolkit=lucid
 --with-toolkit-scroll-bars=no --without-cairo
 --without-compress-install'

[0001-Keep-IMAP-connection-opened-with-nnml.patch (text/patch, attachment)]
[Message part 3 (text/plain, inline)]
-- 
Manuel Giraud

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#76783; Package emacs. (Fri, 07 Mar 2025 09:45:02 GMT) Full text and rfc822 format available.

Message #8 received at 76783 <at> debbugs.gnu.org (full text, mbox):

From: Manuel Giraud <manuel <at> ledu-giraud.fr>
To: 76783 <at> debbugs.gnu.org
Cc: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Subject: Re: bug#76783: [PATCH] Keep IMAP connection opened with nnml
Date: Fri, 07 Mar 2025 10:44:17 +0100
[Message part 1 (text/plain, inline)]
Hi,

Please consider this new version instead in which I simplified
`nnml-request-close' a bit.
[0001-Keep-IMAP-connection-opened-with-nnml.patch (text/x-patch, attachment)]
[Message part 3 (text/plain, inline)]
-- 
Manuel Giraud

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#76783; Package emacs. (Fri, 07 Mar 2025 16:41:02 GMT) Full text and rfc822 format available.

Message #11 received at 76783 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Manuel Giraud <manuel <at> ledu-giraud.fr>, 76783 <at> debbugs.gnu.org
Cc: Andrew Cohen <acohen <at> ust.hk>, Eric Abrahamsen <eric <at> ericabrahamsen.net>,
 Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Subject: Re: bug#76783: [PATCH] Keep IMAP connection opened with nnml
Date: Fri, 7 Mar 2025 16:39:51 +0000
Manuel Giraud <manuel <at> ledu-giraud.fr> writes:

> From 426b31e1fc6b5a098445779084424c07bbc8282d Mon Sep 17 00:00:00 2001
> From: Manuel Giraud <manuel <at> ledu-giraud.fr>
> Date: Thu, 6 Mar 2025 15:40:48 +0100
> Subject: [PATCH] Keep IMAP connection opened with nnml
>
> * lisp/gnus/mail-source.el (mail-source-fetch-imap): Keep
> connection opened when user provide a buffer name.
> * lisp/gnus/nnml.el (nnml-connected-buffer-list): New variable
> of connected buffers.
> (nnml-request-close): New function that closes connected buffers
> when quitting Gnus.
> * doc/misc/gnus.texi (Mail Source Specifiers): Document the
> feature.

Andrew, Eric, could you please take a look at this patch?




Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 10 Mar 2025 21:08:05 GMT) Full text and rfc822 format available.

This bug report was last modified 192 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.