Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: ding@gnus.org
Subject: Re: Programming spam-process-destination
Date: Thu, 30 Jun 2011 09:40:56 -0500	[thread overview]
Message-ID: <87sjqrv0uf.fsf@lifelogs.com> (raw)
In-Reply-To: <87wrg4q1cr.fsf%lukasz.stelmach@iem.pw.edu.pl>

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 group
ŁS> parameters too) based on gnus-newsgroup-name with a piece of code like
ŁS> this:
ŁS> (defun generate-spam-destination (group)
ŁS>   (cond
ŁS>    ((string-match ":SPAM$" group) nil)
ŁS>    ((string-match "\\(nn\\(folder\\|imap\\)[^:]+\\):\\(.*\\)" group)
ŁS>     (concat (match-string 1 group) ":SPAM"))))

ŁS> This is espcially important for me as I have several imap accounts and
ŁS> most of them provide spam training by moving a message to the SPAM
ŁS> folder.

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 :)

Ted




  reply	other threads:[~2011-06-30 14:40 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 [this message]
2011-06-30 17:05   ` Łukasz Stelmach
2011-06-30 18:21     ` Ted Zlatanov

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=87sjqrv0uf.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).