From: Ted Zlatanov <tzz@lifelogs.com>
To: ding@gnus.org
Subject: Re: Programming spam-process-destination
Date: Thu, 30 Jun 2011 13:21:20 -0500 [thread overview]
Message-ID: <87oc1ftc2n.fsf@lifelogs.com> (raw)
In-Reply-To: <878vsjjlm0.fsf%lukasz.stelmach@iem.pw.edu.pl>
On Thu, 30 Jun 2011 19:05:27 +0200 Łukasz Stelmach <lukasz.stelmach@iem.pw.edu.pl> wrote:
ŁS> Ted Zlatanov <tzz@lifelogs.com> writes:
>> On Wed, 29 Jun 2011 14:16:36 +0200 Łukasz Stelmach
>> <lukasz.stelmach@iem.pw.edu.pl> wrote:
ŁS> EHLO.
ŁS> Is it possible to generate spam-process-destination (maybe other
ŁS> group parameters too) based on gnus-newsgroup-name with a piece of
ŁS> code like this:
ŁS> [...]
>> I think so using `gnus-parameters' but I don't use it, so you have to
>> look in the manual. FWIW I have a custom function that runs when I
>> enter a group because my logic is... let's say unusual :)
ŁS> Could you be more elaborate on... the function ;)
(defun tzz-gnus-conditional-settings ()
"conditional gnus settings"
(interactive)
(let
;; could also be done with a concat "" gnus-newsgroup-name
((gnus-newsgroup-name (if (stringp gnus-newsgroup-name) gnus-newsgroup-name "")))
;; do personal SIKRIT stuff here
))
(add-hook 'gnus-select-group-hook 'tzz-gnus-conditional-settings)
(add-hook 'gnus-summary-mode-hook 'tzz-gnus-conditional-settings)
(tzz-gnus-conditional-settings)
Hope that helps...
Ted
prev parent reply other threads:[~2011-06-30 18:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-29 12:16 Łukasz Stelmach
2011-06-30 14:40 ` Ted Zlatanov
2011-06-30 17:05 ` Łukasz Stelmach
2011-06-30 18:21 ` Ted Zlatanov [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=87oc1ftc2n.fsf@lifelogs.com \
--to=tzz@lifelogs.com \
--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).