From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79249 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C5=81ukasz?= Stelmach Newsgroups: gmane.emacs.gnus.general Subject: Programming spam-process-destination Date: Wed, 29 Jun 2011 14:16:36 +0200 Message-ID: <87wrg4q1cr.fsf%lukasz.stelmach@iem.pw.edu.pl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1309355875 6285 80.91.229.12 (29 Jun 2011 13:57:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 29 Jun 2011 13:57:55 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27545@lists.math.uh.edu Wed Jun 29 15:57:52 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QbvH5-0003yX-Bb for ding-account@gmane.org; Wed, 29 Jun 2011 15:57:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1QbvGX-0003Ki-SH; Wed, 29 Jun 2011 08:57:17 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1QbthS-0002yI-09 for ding@lists.math.uh.edu; Wed, 29 Jun 2011 07:16:58 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QbthQ-0004fg-42 for ding@lists.math.uh.edu; Wed, 29 Jun 2011 07:16:57 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QbthN-0005Ia-8t for ding@gnus.org; Wed, 29 Jun 2011 14:16:53 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QbthL-0004bZ-Uc for ding@gnus.org; Wed, 29 Jun 2011 14:16:51 +0200 Original-Received: from dasa3.iem.pw.edu.pl ([194.29.147.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Jun 2011 14:16:51 +0200 Original-Received: from lukasz.stelmach by dasa3.iem.pw.edu.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Jun 2011 14:16:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: dasa3.iem.pw.edu.pl User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:h70mAR5mLXIaruT2TboLlrSxE/M= X-Spam-Score: -4.9 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79249 Archived-At: 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