From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/54021 Path: main.gmane.org!not-for-mail From: Tom Koelman Newsgroups: gmane.emacs.gnus.general Subject: How to split on content-length? Date: Tue, 23 Sep 2003 10:54:20 +0200 Sender: ding-owner@lists.math.uh.edu Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1064329605 30832 80.91.224.253 (23 Sep 2003 15:06:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 23 Sep 2003 15:06:45 +0000 (UTC) Original-X-From: ding-owner+M2561@lists.math.uh.edu Tue Sep 23 17:06:43 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A1okU-00040T-00 for ; Tue, 23 Sep 2003 17:06:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1A1okL-0002c5-00; Tue, 23 Sep 2003 10:06:33 -0500 Original-Received: from justine.libertine.org ([66.139.78.221]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1A1iwC-0001Mh-00 for ding@lists.math.uh.edu; Tue, 23 Sep 2003 03:54:24 -0500 Original-Received: from smtpzilla3.xs4all.nl (smtpzilla3.xs4all.nl [194.109.127.139]) by justine.libertine.org (Postfix) with ESMTP id C2FEB3A004E for ; Tue, 23 Sep 2003 03:54:23 -0500 (CDT) Original-Received: from RIJ01702.assurancetourix.xs4all.nl (62-192-112-123.dsl.easynet.nl [62.192.112.123]) by smtpzilla3.xs4all.nl (8.12.9/8.12.9) with ESMTP id h8N8sK4A037653 for ; Tue, 23 Sep 2003 10:54:21 +0200 (CEST) Original-To: ding@gnus.org User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (windows-nt) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:54021 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:54021 Hi, I am using regular splitting to sort my mail in a lot of groups. Now I would like to add a group containing all the "big" mails, with big being defined as, say, bigger than 140k (Swen anyone?). I guess I should write a function now to do that, because I don't think I can use a regular expression to express that I want to split if X-Content-Length: is followed by a number bigger dan 143360, but I don't understand the doc. It says: The second element can also be a function. In that case, it will be called narrowed to the headers with the first element of the rule as the argument. It should return a non-`nil' value if it thinks that the mail belongs in that group. Does this mean the second argument will contain the headers? Tom