Gnus development mailing list
 help / color / mirror / Atom feed
* Programming spam-process-destination
@ 2011-06-29 12:16 Łukasz Stelmach
  2011-06-30 14:40 ` Ted Zlatanov
  0 siblings, 1 reply; 4+ messages in thread
From: Łukasz Stelmach @ 2011-06-29 12:16 UTC (permalink / raw)
  To: ding

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-06-30 18:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-29 12:16 Programming spam-process-destination Łukasz Stelmach
2011-06-30 14:40 ` Ted Zlatanov
2011-06-30 17:05   ` Łukasz Stelmach
2011-06-30 18:21     ` Ted Zlatanov

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