From 99c8fd5709a063424a746c58efda24f762ab1f2e Mon Sep 17 00:00:00 2001 From: "Taylor R. Campbell" Date: Sun, 31 Aug 2008 19:32:09 +0000 Subject: [PATCH] When computing from strings in summaries, avoid empty matches between parentheses: `From: foo@mumble.bar ()'. --- v7/src/imail/imail-summary.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v7/src/imail/imail-summary.scm b/v7/src/imail/imail-summary.scm index ac4b48ac0..964f51331 100644 --- a/v7/src/imail/imail-summary.scm +++ b/v7/src/imail/imail-summary.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: imail-summary.scm,v 1.58 2008/08/27 14:55:48 riastradh Exp $ +$Id: imail-summary.scm,v 1.59 2008/08/31 19:32:09 riastradh Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -421,7 +421,7 @@ SUBJECT is a string of regexps separated by commas." ;; Chris VanHaren (Athena User Consultant) ((re-string-search-forward "[ \t\"]*\\<\\(.*\\)\\>.*(.*).*<.*>.*" s) => (field 1)) - ((re-string-search-forward ".*(\\(.*\\))" s) + ((re-string-search-forward ".*(\\(.+\\))" s) => (field 1)) ((re-string-search-forward ".*<\\(.*\\)>.*" s) => (field 1)) -- 2.25.1