From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Esben Stien Newsgroups: gmane.emacs.help Subject: Re: gnus Split Rules to SIEVE Date: Mon, 21 Sep 2015 05:17:18 +0200 Message-ID: <1953836f0b9bc457dca2b32a4b9b39f7@esben-stien.name> References: <3d1b340d392ba0a0f6a044c4b5bd0f35@esben-stien.name> <9b40dd334b4abba6de568b9c80e0679b@esben-stien.name> <20150920182624.7282.2800CCB1@ahiker.mooo.com> <87h9mo3f7a.fsf@debian.uxu> <20150920223506.9499.1BF89E81@ahiker.mooo.com> <87bncw3atc.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1442805477 20988 80.91.229.3 (21 Sep 2015 03:17:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Sep 2015 03:17:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 21 05:17:35 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zdrbi-0007TX-U6 for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Sep 2015 05:17:35 +0200 Original-Received: from localhost ([::1]:55180 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zdrbi-00034P-9U for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Sep 2015 23:17:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39489) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdrbX-000348-Pp for help-gnu-emacs@gnu.org; Sun, 20 Sep 2015 23:17:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZdrbU-0003Tg-K5 for help-gnu-emacs@gnu.org; Sun, 20 Sep 2015 23:17:23 -0400 Original-Received: from smtp1.emailarray.com ([65.39.216.14]:65326) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdrbU-0003TV-GO for help-gnu-emacs@gnu.org; Sun, 20 Sep 2015 23:17:20 -0400 Original-Received: (qmail 78490 invoked by uid 89); 21 Sep 2015 03:17:19 -0000 Original-Received: from unknown (HELO roundcube.emailarray.com) (YjBlZkBlc2Jlbi1zdGllbi5uYW1lQDE5Mi4xNjguMS4xMg==) (POLARISLOCAL) by smtp1.emailarray.com with SMTP; 21 Sep 2015 03:17:19 -0000 In-Reply-To: <87bncw3atc.fsf@debian.uxu> X-Sender: b0ef@esben-stien.name User-Agent: Webmail/0.7.2 X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-Received-From: 65.39.216.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107265 Archived-At: On 21.09.2015 01:55, Emanuel Berg wrote: > (By the way, why don't the OP publish all or a couple > of his Gnus splitting rules so we can reason about the > real thing?) Fortunately, my requirements are not that hard;) I basically have a list of 400 entries, like this: ("gnuprinting-general" "^\\(Mailing-List:\\|X-Mailing-List:\\|List-Id:\\).*printing-user-general.lists.freestandards.org*") ("gnuprinting-hp" "^\\(Mailing-List:\\|X-Mailing-List:\\|List-Id:\\).*hp-list.linuxprinting.org*") ("gnuprinting-xerox" "^\\(Mailing-List:\\|X-Mailing-List:\\|List-Id:\\).*xerox-list.linuxprinting.org*") ("gnuprinting-oce" "^\\(Mailing-List:\\|X-Mailing-List:\\|List-Id:\\).*oce-list.linuxprinting.org*") ("gnuprinting-canon" "^\\(Mailing-List:\\|X-Mailing-List:\\|List-Id:\\).*printing-user-canon.lists.freestandards.org*") ("linux-kernel" "^\\(Mailing-List:\\|X-Mailing-List:\\|List-Id:\\).*linux-kernel@vger.kernel.org*") ("festival" "^\\(Mailing-List:\\|Sender:\\|List-Id:\\).*festival-talk@metronomicon.com*") ("festvox-talk" "^\\(Mailing-List:\\|Sender:\\|List-Id:\\).*festvox-talk@metronomicon.com*") ("www-math" "^\\(Mailing-List:\\|X-Mailing-List:\\|List-Id:\\).*www-math.w3.org*") ("blug" "^\\(Mailing-List:\\|X-Mailing-List:\\|List-Id:\\).*blug.blug.linux.no*") ("full-disclosure" "^\\(Mailing-List:\\|List-Id:\\).*full-disclosure.lists.grok.org.uk*") ("honeypot" "^\\(Mailing-List:\\|X-Mailing-List:\\|List-Id:\\).*honeypots.list-id.securityfocus.com*") ("vulnwatch" "^\\(Mailing-List:\\|X-Mailing-List:\\|List-Id:\\).*vulnwatch-help@vulnwatch.org*") ..which could easily be parsed to [name][list-id] Most mailing lists use the List-Id header, so all my lines are exactly like this.