From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79279 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Programming spam-process-destination Date: Thu, 30 Jun 2011 09:40:56 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87sjqrv0uf.fsf@lifelogs.com> References: <87wrg4q1cr.fsf%lukasz.stelmach@iem.pw.edu.pl> Reply-To: ding@gnus.org 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 1309445123 23764 80.91.229.12 (30 Jun 2011 14:45:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 30 Jun 2011 14:45:23 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27575@lists.math.uh.edu Thu Jun 30 16:45:19 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 1QcIUW-0000E6-RY for ding-account@gmane.org; Thu, 30 Jun 2011 16:45:17 +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 1QcIUR-0001M0-Sm; Thu, 30 Jun 2011 09:45:11 -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 1QcIUQ-0001Ln-Pr for ding@lists.math.uh.edu; Thu, 30 Jun 2011 09:45:10 -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 1QcIUO-0001cW-JT for ding@lists.math.uh.edu; Thu, 30 Jun 2011 09:45:10 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QcIUN-0003vw-7V for ding@gnus.org; Thu, 30 Jun 2011 16:45:07 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QcIUL-00007P-Uw for ding@gnus.org; Thu, 30 Jun 2011 16:45:05 +0200 Original-Received: from 38.98.147.133 ([38.98.147.133]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Jun 2011 16:45:05 +0200 Original-Received: from tzz by 38.98.147.133 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Jun 2011 16:45:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 21 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.133 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:b1AOb1pxfRid6l5OeXCye9VQksY= X-Spam-Score: -3.7 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79279 Archived-At: On Wed, 29 Jun 2011 14:16:36 +0200 Łukasz Stelmach 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