Gnus development mailing list
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: Gnus Users <ding@gnus.org>
Subject: Re: Difference between nnmail- and gnus- variables?
Date: Tue, 03 Aug 2021 10:21:09 -0700	[thread overview]
Message-ID: <87v94msauy.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <m2pmuuzs4h.fsf@codeisgreat.org> (Pankaj Jangid's message of "Tue, 03 Aug 2021 16:56:22 +0530")

Pankaj Jangid <pankaj@codeisgreat.org> writes:

> A few days back I was trying to setup ‘nnmail-list-identifiers’. It did
> not work for me. May be because some additional settings must be
> required. I asked a question here... why my setup is not
> working. In-replies, I got to understand that my settings are
> ok. Because the same settings are working elsewhere.
>
> In the replies, I came across a similar variable
> ‘gnus-list-identifiers’. Setting this variable worked. Without any
> hassle.
>
> Similar thing happened with me when I was setting mail splitting.
>
> I want to understand the nomenclature. What is the difference between
> ‘nnml-’ and similar ‘gnus-’ variables?

In OO terms, nnmail.el can be thought of as an abstract parent class for
all backends belonging to the "store messages as files on disk" type of
server. It provides settings and functions that are used in common by
nnml, nnmbox, nnmaildir, etc.

In this particular case, though, `nnmail-list-identifiers' is only used
within `nnmail-remove-list-identifiers', which isn't actually called by
Gnus anywhere, it's just provided as a function that you could
potentially use as part of the `nnmail-prepare-incoming-header-hook'.
See the "Washing Mail" section of the manual.

The `gnus-' version, by contrast, gets called automatically as part of
message display.

I know it's not intuitive...


  reply	other threads:[~2021-08-03 17:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-03 11:26 Pankaj Jangid
2021-08-03 17:21 ` Eric Abrahamsen [this message]
2021-08-03 17:59   ` Pankaj Jangid
2021-08-03 18:04     ` Eric Abrahamsen
2021-08-04  7:58       ` Pankaj Jangid
2021-08-04 17:59         ` Eric Abrahamsen
2021-08-05  6:05           ` Pankaj Jangid

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=87v94msauy.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=ding@gnus.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).