From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Cor Gest Newsgroups: gmane.emacs.help Subject: Re: splitting mail in Gnus Date: 02 Oct 2003 12:37:54 +0000 Organization: Clsnet Linux Systems Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87ad8jolwd.fsf@cleopatra.clsnet.nl> References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1065098926 12880 80.91.224.253 (2 Oct 2003 12:48:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 2 Oct 2003 12:48:46 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 02 14:48:39 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A52sp-0001gv-00 for ; Thu, 02 Oct 2003 14:48:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A52qZ-0004mS-NB for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Oct 2003 08:46:19 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!transit.news.xs4all.nl!not-for-mail Original-Newsgroups: gnu.emacs.help X-GPG-ID: pub 1024/65AF7A91 cor@clsnet.nl X-GPG-KEY: http://pki.surfnet.nl X-Favorite-Beer: Pint of Kilkenny X-Newsreader: Gnus v5.7/Emacs 20.7 Original-Lines: 61 Original-NNTP-Posting-Date: 02 Oct 2003 14:37:55 CEST Original-NNTP-Posting-Host: 213.84.183.106 Original-X-Trace: 1065098275 news.xs4all.nl 58709 213.84.183.106:1371 Original-X-Complaints-To: abuse@xs4all.nl Original-Xref: shelby.stanford.edu gnu.emacs.help:117024 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:12952 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12952 GOD fixed his bugs by throwing the misbehaving out of his Garden. So who the hell do you think you are in leaving bugs in your system. Proverbs: cor-1984:666 Begin of a quotation from a message written by mere mortal: Roger Mason : > Hello, > > Firstly, thanks for the replies to my previous posting on Gnus. That > problem is now resolved. > > Reading the info pages I find it is possible to split mail into > different groups. Accordingly, I have these lines in my .gnus file. > > (setq gnus-secondary-select-methods '((nnml ""))) > (setq nnmail-split-methods ....) > > The first by default puts mail in nnml:mail.misc and the second into > groups, each associated with a regexp that is used to filter the incoming > messages. > > It is not clear to me which of these lines takes precedence: after > all there is no point in setting up a filter if the messages will all > end up in nnml:mail.misc and never see the filter. > > I tried commenting out (setq gnus-secondary-select-methods '((nnml > ""))), but then all my mail groups appeared in the Group buffer with > asterisks in place of the number of messages and none of them could be > accessed. (setq gnus-secondary-select-method '(nnml)) just tells gnus to use nnml as an secindary method. The mail splitting part comes next (setq nnmail-split-incoming t) ;;then the split part wher you can use reg_expr. (setq nnmail-split-methods '("mail.somegroupname" "^From:.nice-maillist@some-server.com") ("mail.misc" "")) The `mail.misc' group is the mail-bucket where everything non-matching by any splitting rule goes. Be aware that sorting is sequential, so the first match goes. cor -- SAFE THE INTERNET..................REMOVE WINDOWS http://www.ccianet.org/papers/cyberinsecurity.pdf (setq reply-to (concatenate 'string "Cor Gest "" "))