tags 783539 + patch
thanks

Attached is a small patch that fixes this.  It is against the current upstream
master, but applies against the current debian package just as well with some
fuzz.

Regards,
Jö.

-- 
Jorrit (Jö) Fahlke, Institute for Computational und Applied Mathematics,
University of Münster, Orleans-Ring 10, D-48149 Münster
Tel: +49 251 83 35146 Fax: +49 251 83 32729

Das Erststudium soll bis zum berufsqualifizierenden Abschluss
gebührenfrei bleiben, also bis zur Erlangung der Taxi-Lizenz.
-- Akrützel, Ausgabe vom 16.5.2002 (www.akruetzel.de)
From d5a3f9de969c7b4014373a9f6ee300b495d5c792 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6=20Fahlke?= <jor...@jorrit.de>
Date: Tue, 28 Apr 2015 18:37:25 +0200
Subject: maildrop: Don't include matched subpatterns in foreach iteration.

---
 maildrop/search.C | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/maildrop/search.C b/maildrop/search.C
index 0823fbd..c50f8e9 100644
--- a/maildrop/search.C
+++ b/maildrop/search.C
@@ -337,7 +337,7 @@ void Search::init_match_vars(const char *str, int nranges, int *offsets,
 			}
 		}
 
-		if (foreachp)
+		if (cnt == 0 && foreachp)
 		{
 			*foreachp += v;
 			*foreachp += '\0';
-- 
2.1.4

Attachment: signature.asc
Description: Digital signature

Reply via email to