From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/46441 Path: main.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.gnus.general Subject: Re: Splitting and procmail Date: Sun, 08 Sep 2002 17:31:26 -0700 Sender: owner-ding@hpc.uh.edu Message-ID: References: <87r8g43b21.fsf@dishevelled.net> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031531782 19339 127.0.0.1 (9 Sep 2002 00:36:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 9 Sep 2002 00:36:22 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17oCXN-00051n-00 for ; Mon, 09 Sep 2002 02:36:21 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 17oCWk-0001we-00; Sun, 08 Sep 2002 19:35:42 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 08 Sep 2002 19:36:19 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id TAA06734 for ; Sun, 8 Sep 2002 19:36:06 -0500 (CDT) Original-Received: (qmail 11804 invoked by alias); 9 Sep 2002 00:35:20 -0000 Original-Received: (qmail 11797 invoked from network); 9 Sep 2002 00:35:20 -0000 Original-Received: from mail.dslextreme.com (66.51.205.14) by gnus.org with SMTP; 9 Sep 2002 00:35:20 -0000 Original-Received: (qmail 22829 invoked from network); 9 Sep 2002 00:33:23 -0000 Original-Received: from adsl-66.51.210.228.dslextreme.com (HELO reader.local.lan) (66.51.210.228) by mail.dslextreme.com with SMTP; 9 Sep 2002 00:33:23 -0000 Original-Received: from reader.local.lan (localhost [127.0.0.1]) by reader.local.lan (8.12.3/8.12.3) with ESMTP id g890ZHZo000457 for ; Sun, 8 Sep 2002 17:35:17 -0700 Original-Received: (from reader@localhost) by reader.local.lan (8.12.3/8.12.3/Submit) id g890ZHXW000448; Sun, 8 Sep 2002 17:35:17 -0700 X-Authentication-Warning: reader.local.lan: reader set sender to reader@newsguy.com using -f Original-To: In-Reply-To: <87r8g43b21.fsf@dishevelled.net> (Mark Triggs's message of "Sun, 08 Sep 2002 22:44:54 +1000") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Original-Lines: 46 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:46441 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:46441 Mark Triggs writes: >> So, my question is now: Mail splitting cannot be used togeather with >> procmail, right? No wrong, using them together can give twice the power and agility. Here is how I do it. I never knew about the variable Reiner mentioned `nnmail-resplit-incoming' not sure what it does. But we've always been able to replit a group with `B r'. I have procmailrc setup so that a final catchall group is listed after all spam (or other) rules. That way all spam etc is sorted, then anything left is dumped into a file I call prinb.in (preinbox.in) At the end of procmailrc: :0 prinb.in Everything that wasn't spam or something else I sort with procmail, is now in ~/spool/prinb.in Now when I press `g' in gnus, it slurps prinb.in into nnml:prinb I scan that group by eye, inside gnus, see if I want to take any actions right then, if not press `M-P a (select all) B r (respool). and the group nnml:prinb is split according to my nnmail-split setup. (I actually have a keyboard macro set to run the above commands with a keycombo C-x C-z). I find that I recognize most stuff that needs attention on the first visual scan, after splitting, anything I missed will be sent to the appropriate group where I will notice the new message count. But my mail only amounts to some 150 to 200 per day incoming. No tricky stuff on mail-sources, just the normal type setup one uses with procmail: (setq mail-sources '((directory :path "/home/reader/spool/" :suffix ".in"))) So to summarize: What you want to do can all be done by setting a catchall at the end of procmailrc, sort it after gnus slurps it with nnmail-split rules.