Gnus development mailing list
 help / color / mirror / Atom feed
From: "Łukasz Stelmach" <lukasz.stelmach@iem.pw.edu.pl>
To: ding@gnus.org
Subject: Programming spam-process-destination
Date: Wed, 29 Jun 2011 14:16:36 +0200	[thread overview]
Message-ID: <87wrg4q1cr.fsf%lukasz.stelmach@iem.pw.edu.pl> (raw)

EHLO.

Is it possible to generate spam-process-destination (maybe other group
parameters too) based on gnus-newsgroup-name with a piece of code like
this:

--8<---------------cut here---------------start------------->8---
(defun generate-spam-destination (group)
  (cond
   ((string-match ":SPAM$" group) nil)
   ((string-match "\\(nn\\(folder\\|imap\\)[^:]+\\):\\(.*\\)" group)
    (concat (match-string 1 group) ":SPAM"))))
--8<---------------cut here---------------end--------------->8---

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

-- 
Miłego dnia,
Łukasz Stelmach




             reply	other threads:[~2011-06-29 12:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-29 12:16 Łukasz Stelmach [this message]
2011-06-30 14:40 ` Ted Zlatanov
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=87wrg4q1cr.fsf%lukasz.stelmach@iem.pw.edu.pl \
    --to=lukasz.stelmach@iem.pw.edu.pl \
    --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).