Gnus development mailing list
 help / color / mirror / Atom feed
From: "Jose A. Ortega Ruiz" <jao@gnu.org>
To: ding@gnus.org
Subject: Re: per group split rules
Date: Mon, 08 Nov 2021 23:21:59 +0000	[thread overview]
Message-ID: <87bl2up71k.fsf@gnus.jao.io> (raw)
In-Reply-To: <87wnli2w7n.fsf@zoho.eu>

On Mon, Nov 08 2021, Emanuel Berg wrote:

[...]

>> or, alternatively, is it possible to have a (global) split
>> rule that says (when nnmail-resplit-incoming is t) something
>> like: "leave this message in the group which fetched it via
>> its mail-source parameter"?
>
> You can use functions instead of regexps both with fancy and
> regular so put it there if so, I guess?

actually, turns out it's even simpler: gnus adds a header called
X-Gnus-Mail-Source with the value of the message's mail-source, so since
i can infer the nnml default group from it, i can write the default rule
i wished for above!

thanks for your suggestion, though... it was playing again with
splitting functions that i discovered this (undocumented, i think)
header :)

cheers,
jao
-- 
You are never too old to be what you might have been.
 -George Eliot (Mary Ann Evans), novelist (1819-1880)



      parent reply	other threads:[~2021-11-09  0:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-08 19:16 Jose A. Ortega Ruiz
2021-11-08 21:06 ` Emanuel Berg
2021-11-08 22:38   ` Jose A. Ortega Ruiz
2021-11-08 23:46     ` Emanuel Berg
2021-11-08 23:21   ` Jose A. Ortega Ruiz [this message]

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=87bl2up71k.fsf@gnus.jao.io \
    --to=jao@gnu.org \
    --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).