From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/3944 Path: news.gmane.org!not-for-mail From: Lars Tobias Borsting Newsgroups: gmane.emacs.gnus.user Subject: nnmail-split-fancy regexps confusing Date: Tue, 06 Jul 2004 01:53:38 +0200 Organization: Norwegian university of science and technology Message-ID: <8jfhdsmj9j1.fsf@kamel.stud.ntnu.no> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138669969 21078 80.91.229.2 (31 Jan 2006 01:12:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:12:49 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:33:00 2006 Original-Path: quimby.gnus.org!newsfeed1.e.nsc.no!uninett.no!ntnu.no!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: kamel.ntnu.no Original-X-Trace: orkan.itea.ntnu.no 1089071618 6809 129.241.56.39 (5 Jul 2004 23:53:38 GMT) Original-X-Complaints-To: usenet@itea.ntnu.no Original-NNTP-Posting-Date: Mon, 5 Jul 2004 23:53:38 +0000 (UTC) User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (usg-unix-v) Cancel-Lock: sha1:g74iDskgDf7YeafRhbzNHzt2zeg= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:4085 Original-Lines: 30 X-Gnus-Article-Number: 4085 Tue Jan 17 17:33:00 2006 Xref: news.gmane.org gmane.emacs.gnus.user:3944 Archived-At: Hi! I have recently set up my mail splitting with nnmail-split-fancy, and it is working well thaks to many trials and fails. How are the regexps evaluated? For example: nnmail-split-fancy '(| (any "MYREGEXP" "mail.smith")) MYREGEXP is like this: "(john|lisa)\.smith@ourmail\.com". This is supposed to be matching "john.smith@ourmail.com" and "lisa.smith@ourmail.com". For this to work in gnus fancy splitting it must be written like this in .gnus.el: nnmail-split-fancy '(| (any "\\(john\\|lisa\\)\\\.smith@ourmail\\\.com" "mail.thing")) So basically I have to add two backslashes in front of each regexp special character. Why is this? Isn't it more logical to be able to write the regexp the way it actually is, insted of making it all cluttered with these two backslashes? Regards -- Lars Tobias Borsting