From: Katsumi Yamaoka <yamaoka@jpl.org>
Subject: Re: Simple (I hope) split question
Date: Tue, 30 Aug 2005 11:30:23 +0900 [thread overview]
Message-ID: <b4mr7cccg1s.fsf@jpl.org> (raw)
In-Reply-To: <87fyssesgc.fsf@lucien.dreaming>
>>>>> In <87fyssesgc.fsf@lucien.dreaming> Björn Lindström wrote:
> I'm using an RSS to e-mail gateway that generates headers of the form
> X-Custom-Group: foo.bar
> I want these messages to be sent to the corresponding mail group.
> According to my best understanding of the manual, this split-fancy rule
> should do the trick:
> ("X-Custom-Group" ".*" "\\&")
> However, this rule makes Gnus move the messages to the empty string
> group. With nnml, this means writing the messages directly to files in
> the root of my nnml tree, which by the way seems to be a bug in itself,
> since there's no way to read those messages in Gnus.
> Anyway, how should I modify that split rule so that mails with that
> header are moved to the corresponding mail group?
Does the following rule work?
("X-Custom-Group" "[\t ]\\([^\t\n ]+\\)" "\\1")
There should be one or more spaces or tabs between the header
and the group name, the group name should not contain whitespace,
furthermore the `nnmail-split-fancy-match-partial-words'
variable should be set to t (note that changing the value of
that variable affects the behavior of the other splitting rules).
next prev parent reply other threads:[~2005-08-30 2:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-29 14:19 Björn Lindström
2005-08-30 2:30 ` Katsumi Yamaoka [this message]
2005-08-30 12:35 ` Björn Lindström
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=b4mr7cccg1s.fsf@jpl.org \
--to=yamaoka@jpl.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).