* Fancy splitting rule
@ 2013-08-08 12:02 Julien Cubizolles
2013-08-08 12:06 ` David Edmondson
0 siblings, 1 reply; 4+ messages in thread
From: Julien Cubizolles @ 2013-08-08 12:02 UTC (permalink / raw)
To: ding
I'm trying to isolate the construction of a split rule from the
actual definition of nnimap-split-fancy. I tried
(setq newsletter-filter (concat "some_match\\|"
"some_other_match"
))
(setq nnimap-split-fancy
'(|
("from" newsletter-filter "newsletter")
"General"
))
Of course it doesn't work since newsletter-filter is not
evaluated. How can it be done ?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Fancy splitting rule
2013-08-08 12:02 Fancy splitting rule Julien Cubizolles
@ 2013-08-08 12:06 ` David Edmondson
2013-08-08 20:15 ` Julien Cubizolles
0 siblings, 1 reply; 4+ messages in thread
From: David Edmondson @ 2013-08-08 12:06 UTC (permalink / raw)
To: Julien Cubizolles; +Cc: ding
[-- Attachment #1: Type: text/plain, Size: 565 bytes --]
On Thu, Aug 08 2013, Julien Cubizolles wrote:
> I'm trying to isolate the construction of a split rule from the
> actual definition of nnimap-split-fancy. I tried
>
> (setq newsletter-filter (concat "some_match\\|"
> "some_other_match"
> ))
>
> (setq nnimap-split-fancy
> '(|
> ("from" newsletter-filter "newsletter")
> "General"
> ))
>
> Of course it doesn't work since newsletter-filter is not
> evaluated. How can it be done ?
(setq nnimap-split-fancy
`(|
("from" ,newsletter-filter "newsletter")
"General"
))
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 327 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Fancy splitting rule
2013-08-08 12:06 ` David Edmondson
@ 2013-08-08 20:15 ` Julien Cubizolles
2013-08-08 21:17 ` Andreas Schwab
0 siblings, 1 reply; 4+ messages in thread
From: Julien Cubizolles @ 2013-08-08 20:15 UTC (permalink / raw)
To: ding
David Edmondson <dme@dme.org> writes:
> (setq nnimap-split-fancy
> `(|
> ("from" ,newsletter-filter "newsletter")
> "General"
> ))
Thanks, I didn't know about the comma syntax.
Julien.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Fancy splitting rule
2013-08-08 20:15 ` Julien Cubizolles
@ 2013-08-08 21:17 ` Andreas Schwab
0 siblings, 0 replies; 4+ messages in thread
From: Andreas Schwab @ 2013-08-08 21:17 UTC (permalink / raw)
To: Julien Cubizolles; +Cc: ding
Julien Cubizolles <j.cubizolles@free.fr> writes:
> David Edmondson <dme@dme.org> writes:
>
>> (setq nnimap-split-fancy
>> `(|
>> ("from" ,newsletter-filter "newsletter")
>> "General"
>> ))
>
> Thanks, I didn't know about the comma syntax.
See also `nnmail-split-abbrev-alist'.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-08-08 21:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-08 12:02 Fancy splitting rule Julien Cubizolles
2013-08-08 12:06 ` David Edmondson
2013-08-08 20:15 ` Julien Cubizolles
2013-08-08 21:17 ` Andreas Schwab
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).