From: Reiner Steib <reinersteib+from-uce@imap.cc>
Cc: bugs@gnus.org, <ding@gnus.org>
Subject: gnus-parameters: Inconsitency between group parameters and group local variables (was: gcc-self in `gnus-parameters' doesn't work as expected)
Date: Thu, 28 Dec 2006 18:25:57 +0100 [thread overview]
Message-ID: <v93b70ue3e.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <87irgiwr1g.fsf@baldur.tsdh.de>
[ Shifting this to ding ]
On Mon, Dec 11 2006, Tassilo Horn wrote:
> No Gnus v0.6
[...]
> I've set up my gnus-parameters as follows:
>
> ,----[ ~/.gnus.el ]
> | (setq gnus-parameters
> | '(("^nnimap\\+Fastmail:INBOX"
> | (gnus-use-scoring nil)
> | (gcc-self . t))
> | ("^nnimap\\+Fastmail:INBOX\\.D-BARF$"
> | (to-address . "D-BARF@yahoogroups.de")
> | (subscribed . t)
> | (gnus-use-scoring t)
> | (gcc-self . "nnimap+Fastmail:INBOX.Sent Items"))
> | ("^nnimap\\+Fastmail:INBOX\\.emms-patches$"
> | (to-address . "emms-patches@gnu.org")
> | (subscribed . t)
> | (gnus-use-scoring t)
> | (gcc-self . "nnimap+Fastmail:INBOX.Sent Items"))))
> `----
>
> Normally I love reading my mail in a newsgroup-like fashion, so the
> first entry in `gnus-parameters' enables gcc-self for all my IMAP groups
> of my Fastmail account and disables scoring, which I don't need for
> mail:
[...]
> Unfortunately, emms-patches and D-BARF are mailing list where
> self-gcc-ing is not what I want. There I want sent mail to go into my
> usual archive group for mail, that is
>
> "nnimap+Fastmail:INBOX.Sent Items"
>
[...]
> I've tried (gcc-self . "nnimap+Fastmail:INBOX.Sent Items"), (gcc-self
> . nil), and (gcc-self . none), but if I write a mail in one of the two
> groups, the gcc-header's value always is nnimap+Fastmail:INBOX.D-BARF or
> nnimap+Fastmail:INBOX.emms-patches (=> (gcc-self . t) still active).
You need to move the more general match "^nnimap\\+Fastmail:INBOX" to
the end of the list:
(setq gnus-parameters
'(("^nnimap\\+Fastmail:INBOX\\.D-BARF$"
(to-address . "D-BARF@yahoogroups.de")
(subscribed . t)
(gnus-use-scoring t)
(gcc-self . "nnimap+Fastmail:INBOX.Sent Items"))
;; [...]
("^nnimap\\+Fastmail:INBOX"
(gnus-use-scoring nil)
(gcc-self . t))))
> Soring is enabled for the two groups, so the matches should be correct.
The difference is that `gnus-use-scoring' is a group local variable,
whereas `gcc-self' is a group parameter (dotted list). Surprisingly,
they behave different:
(setq gnus-parameters
'(("^nnimap\\+.*:INBOX"
(tmp-variable 11)
(display . 11))
("^nnimap\\+.*:INBOX\\.test$"
(tmp-variable 22)
(display . 22))))
When I enter INBOX.test `M-: tmp-variable RET' returns 22 whereas
`M-: (gnus-group-find-parameter gnus-newsgroup-name 'display) RET'
returns 11.
I think this inconsistent behavior should be fixed. IMHO it would be
better if we choose the same behavior `gnus-posting-styles'.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
next parent reply other threads:[~2006-12-28 17:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87irgiwr1g.fsf@baldur.tsdh.de>
2006-12-28 17:25 ` Reiner Steib [this message]
2006-12-28 18:28 ` gnus-parameters: Inconsitency between group parameters and group local variables Tassilo Horn
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=v93b70ue3e.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+from-uce@imap.cc \
--cc=Reiner.Steib@gmx.de \
--cc=bugs@gnus.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).