all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: 53877@debbugs.gnu.org
Subject: bug#53877: 29.0.50; [PATCH] async Gnus/nnml
Date: Tue, 08 Feb 2022 12:33:54 -0800	[thread overview]
Message-ID: <877da514jx.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87leyl1lr9.fsf@elite.giraud>

Manuel Giraud <manuel@ledu-giraud.fr> writes:

> Hi,
>
> I'm trying to have an asynchronous Gnus nnml backend. In the process, I
> found some things that I'd like to have first in nnmail.el and
> mail-sources.el (see patches).
>
> There is nothing asynchronous so far so Gnus behaviour shouldn't have
> changed that much.

Hi Manuel,

Thanks for working on this! Getting rid of `nnmail-article-buffer' looks
fine to me.

In the crash box patch, I wonder if we really need to change the name of
the option. It could be used as-is as a prefix, without really needing
to involve the user. Maybe changing the docstring would be enough?

In mail-source-fetch:

+            (dolist (box (mail-source-existing-crash-boxes))
+	      (message "Processing mail from %s..." box)
+	      (setq found (mail-source-callback callback box box))

You'll want to use cl-incf on `found' here (as in the other files).

In the nnmail cache mutex patch, I guess we're preparing for multiple
threads to potentially be writing to/reading from `nnmail-cache-buffer',
right? The mutex prevents concurrent access, but are we sure that
leftover text in the buffer won't confuse the regexp searches? Would it
be safer just to clear the buffer altogether after each transaction?

I'm not quite sure why you're refactoring out
`gnus-update-unread-group', is the idea that that will be used in other
places as well? Or is this the function that will get run in a thread
eventually?

Lastly, have you done your copyright assignment?

Thanks,
Eric






  reply	other threads:[~2022-02-08 20:33 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-08 14:22 bug#53877: 29.0.50; [PATCH] async Gnus/nnml Manuel Giraud
2022-02-08 20:33 ` Eric Abrahamsen [this message]
2022-02-09  9:00   ` Robert Pluim
2022-02-09  8:15 ` Lars Ingebrigtsen
2022-02-09  9:42   ` Manuel Giraud
2022-02-09  9:51     ` Lars Ingebrigtsen
2022-02-09 10:39       ` Manuel Giraud
2022-02-09 10:41         ` Lars Ingebrigtsen
2022-02-09 10:47           ` Manuel Giraud
2022-02-09 10:50             ` Lars Ingebrigtsen
2022-02-09 12:30           ` Manuel Giraud
2022-02-09 16:35             ` Eric Abrahamsen
2022-02-10  9:02               ` Manuel Giraud
2022-02-10 18:11                 ` Eric Abrahamsen
2022-02-10 18:25                   ` Eric Abrahamsen
2022-02-10 20:25                   ` Eli Zaretskii
2022-02-10 20:37                     ` Eric Abrahamsen
2022-02-11 10:57                   ` Manuel Giraud
2022-02-11 17:53                     ` Eric Abrahamsen
2022-02-09  8:20 ` Lars Ingebrigtsen
2022-02-09  9:52   ` Manuel Giraud
2022-02-09 20:26     ` Lars Ingebrigtsen

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=877da514jx.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=53877@debbugs.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.