* [REQ] Feature Request : gnus-fancy-posting-styles
@ 2003-01-13 8:54 François-David Collin
0 siblings, 0 replies; only message in thread
From: François-David Collin @ 2003-01-13 8:54 UTC (permalink / raw)
Hello,
What about extending the gnus-posting-styles syntax to
something like nnmail-split-fancy, with deep hierachical
nesting? For example I'd like to say
(setq gnus-fancy-posting-styles
'(& (("X-Home-Page" "http://blah/fradav")
("X-Attribution" "fd"))
(| (message-mail-p
((address "frad@thing")
(signature-file "~/.signature"))
(& ((header "from" "\.fr")
((signature-file "~/.signature-french")))
((header "Organization" "myorg")
((Organization "myorg")
(signature-file "~/.very-serious-signature"))))
(message-news-p
((address "frad@nowhere"))
(& ("^rec.humor"
((signature my-funny-signature-randomizer))
((header "X-Funny" ".*")
(("X-Funny" some-extra-X-funny-quoting))))))))
("java"
((signature-file "~/.javanese-signature")))))
Where (largely inspired of the fancy mail splitting doc)
1. If the posting style is a list of posting attributes, they're taken
as is.
2. (to-match (LIST-OF-ATTRIBUTES) (SUB-POSTING-STYLES)), if the
to-match expression is matched, the list of attributes are
applicated and the list of sub-posting-styles are parsed.
3. (| POSTING-STYLES...) If the posting-style is a list, and the first
element is `|' (vertical bar), then process each POSTING-STYLES
until one of them matches. A POSTING-STYLES is said to match if it
will cause the corresponding list of attributes to be applicated
4. (& POSTING-STYLES...) if the posting-styles is a list and the first
element is a `&', then process all POSTING-STYLES in the list
and so on...
Comments?
--
F.-D.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-01-13 8:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-13 8:54 [REQ] Feature Request : gnus-fancy-posting-styles François-David Collin
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).