From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/44782 Path: main.gmane.org!not-for-mail From: Josh Huber Newsgroups: gmane.emacs.gnus.general Subject: Re: fancy split regexp? Date: Wed, 08 May 2002 17:51:51 -0400 Sender: owner-ding@hpc.uh.edu Message-ID: <87lmaui9zc.fsf@alum.wpi.edu> References: <87znzaiigr.fsf@alum.wpi.edu> <878z6u1lw9.fsf@alum.wpi.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1020894730 2666 127.0.0.1 (8 May 2002 21:52:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 8 May 2002 21:52:10 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 175ZM2-0000gs-00 for ; Wed, 08 May 2002 23:52:10 +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 175ZKm-0007eF-00; Wed, 08 May 2002 16:50:52 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 08 May 2002 16:51:08 -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 QAA15101 for ; Wed, 8 May 2002 16:50:56 -0500 (CDT) Original-Received: (qmail 21323 invoked by alias); 8 May 2002 21:50:34 -0000 Original-Received: (qmail 21318 invoked from network); 8 May 2002 21:50:34 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by gnus.org with SMTP; 8 May 2002 21:50:34 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 175ZSc-0007dX-00 for ; Wed, 08 May 2002 23:58:58 +0200 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 31 Original-NNTP-Posting-Host: lowell.missioncriticallinux.com Original-X-Trace: quimby.gnus.org 1020895138 29110 64.244.21.16 (8 May 2002 21:58:58 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 8 May 2002 21:58:58 GMT X-PGP-KeyID: 6B21489A X-Face: C%mBb*K1^od)w'=CH$WEZu/M^aR<,.n|1uAe,;MyNLKoel>F;-j[`L!>m:Y%/R}m&4&xuIM R%7Ez?vbd*Ns>VE;{\(yl|mGByV{D:Dm>'52].@P&t_s^,.d Try this: > ("Resent-To" > "\\`\\(.*[^!#-'*+/-9=?A-Z^-~-]\\)?\\([!#-'*+/-9=?A-Z^-~-]*\\)@packages\\.qa\\.debian\\.org" > "mail.debian.pts.\\2") Oh dear god... Can we somehow use re-search-forward for splitting? I tried this (the above regexp), and it works in a scratch buffer, but not in the fancy-split-rules. In fact, any time I try and use \\` it seems to never match. So, I gave up... (oh, and I found another header to match on ;): (defun jmh::pts-group (base) (goto-char (point-min)) (when (re-search-forward "^X-PTS-Package: \\(.*\\)$" nil t) (concat base "." (match-string 1)))) and use it like so: (: jmh::pts-group "mail.debian.pts") probably slower, but I fell a lot better about it :) Thanks for ideas, -- Josh Huber