Gnus development mailing list
 help / color / mirror / Atom feed
* Difference between nnmail- and gnus- variables?
@ 2021-08-03 11:26 Pankaj Jangid
  2021-08-03 17:21 ` Eric Abrahamsen
  0 siblings, 1 reply; 7+ messages in thread
From: Pankaj Jangid @ 2021-08-03 11:26 UTC (permalink / raw)
  To: Gnus Users

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?

-- 
Regards ~Pankaj


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Difference between nnmail- and gnus- variables?
  2021-08-03 11:26 Difference between nnmail- and gnus- variables? Pankaj Jangid
@ 2021-08-03 17:21 ` Eric Abrahamsen
  2021-08-03 17:59   ` Pankaj Jangid
  0 siblings, 1 reply; 7+ messages in thread
From: Eric Abrahamsen @ 2021-08-03 17:21 UTC (permalink / raw)
  To: Gnus Users

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...


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Difference between nnmail- and gnus- variables?
  2021-08-03 17:21 ` Eric Abrahamsen
@ 2021-08-03 17:59   ` Pankaj Jangid
  2021-08-03 18:04     ` Eric Abrahamsen
  0 siblings, 1 reply; 7+ messages in thread
From: Pankaj Jangid @ 2021-08-03 17:59 UTC (permalink / raw)
  To: ding

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> Pankaj Jangid <pankaj@codeisgreat.org> writes:
>
>> 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.

This clarifies a lot of things for me. Especially, it is now clear that
this won’t work in my case. Because I am using IMAP.

> 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.

Thanks or all the information.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Difference between nnmail- and gnus- variables?
  2021-08-03 17:59   ` Pankaj Jangid
@ 2021-08-03 18:04     ` Eric Abrahamsen
  2021-08-04  7:58       ` Pankaj Jangid
  0 siblings, 1 reply; 7+ messages in thread
From: Eric Abrahamsen @ 2021-08-03 18:04 UTC (permalink / raw)
  To: ding

Pankaj Jangid <pankaj@codeisgreat.org> writes:

> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> Pankaj Jangid <pankaj@codeisgreat.org> writes:
>>
>>> 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.
>
> This clarifies a lot of things for me. Especially, it is now clear that
> this won’t work in my case. Because I am using IMAP.

nnimap mostly uses nnmail for its splitting functions, and it looks like
its expiry settings as well -- that's pretty much it.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Difference between nnmail- and gnus- variables?
  2021-08-03 18:04     ` Eric Abrahamsen
@ 2021-08-04  7:58       ` Pankaj Jangid
  2021-08-04 17:59         ` Eric Abrahamsen
  0 siblings, 1 reply; 7+ messages in thread
From: Pankaj Jangid @ 2021-08-04  7:58 UTC (permalink / raw)
  To: ding

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

>>> 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.
>>
>> This clarifies a lot of things for me. Especially, it is now clear that
>> this won’t work in my case. Because I am using IMAP.
>
> nnimap mostly uses nnmail for its splitting functions, and it looks like
> its expiry settings as well -- that's pretty much it.

Ok. I got a little confused by "store messages as file on disk". Since
IMAP backend is like nntp because mails are mostly controlled by the
server. I thought you are referring to the backends which manages emails
themselves.

And since my nnmail-list-identifiers setting did not work and
gnus-list-identifiers worked immediately. So this reaffirmed my (wrong)
understanding.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Difference between nnmail- and gnus- variables?
  2021-08-04  7:58       ` Pankaj Jangid
@ 2021-08-04 17:59         ` Eric Abrahamsen
  2021-08-05  6:05           ` Pankaj Jangid
  0 siblings, 1 reply; 7+ messages in thread
From: Eric Abrahamsen @ 2021-08-04 17:59 UTC (permalink / raw)
  To: ding

Pankaj Jangid <pankaj@codeisgreat.org> writes:

> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>>>> 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.
>>>
>>> This clarifies a lot of things for me. Especially, it is now clear that
>>> this won’t work in my case. Because I am using IMAP.
>>
>> nnimap mostly uses nnmail for its splitting functions, and it looks like
>> its expiry settings as well -- that's pretty much it.
>
> Ok. I got a little confused by "store messages as file on disk". Since
> IMAP backend is like nntp because mails are mostly controlled by the
> server. I thought you are referring to the backends which manages emails
> themselves.

IMAP is a little odd just because it's kind of in between: the server
handles message storage, but the user "owns" the mail in the sense that
they're allowed to split, move, expire, etc. So some of the nnmail stuff
is relevant (splitting), but not most of it. A "real" nnmail backend is
one that ends up calling `nnmail-get-new-mail'.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Difference between nnmail- and gnus- variables?
  2021-08-04 17:59         ` Eric Abrahamsen
@ 2021-08-05  6:05           ` Pankaj Jangid
  0 siblings, 0 replies; 7+ messages in thread
From: Pankaj Jangid @ 2021-08-05  6:05 UTC (permalink / raw)
  To: ding

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> IMAP is a little odd just because it's kind of in between: the server
> handles message storage, but the user "owns" the mail in the sense that
> they're allowed to split, move, expire, etc. So some of the nnmail stuff
> is relevant (splitting), but not most of it. A "real" nnmail backend is
> one that ends up calling `nnmail-get-new-mail'.

Thanks for the clarification.




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-08-05  6:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-03 11:26 Difference between nnmail- and gnus- variables? Pankaj Jangid
2021-08-03 17:21 ` Eric Abrahamsen
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

Gnus development mailing list

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.vuxu.org/ding

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 ding ding/ https://inbox.vuxu.org/ding \
		ding@inbox.vuxu.org
	public-inbox-index ding

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.emacs.gnus.general


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git