From 69908239ae4d11d712934d4fa760ce5ebe531883 Mon Sep 17 00:00:00 2001
From: "martin f. krafft" <madduck@madduck.net>
Date: Wed, 7 May 2008 13:22:14 +0200
Subject: [PATCH] only check first 150 lines for X-Postponed header

---
 bin/list-postponed-messages | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/list-postponed-messages b/bin/list-postponed-messages
index c96c9ca..e0bc91a 100755
--- a/bin/list-postponed-messages
+++ b/bin/list-postponed-messages
@@ -61,7 +61,7 @@ for i in $maildirs; do
   echo "$d/cur/"
 done \
   | xargs -I {} find {} -type f \
-  | xargs grep -H --text '^X-Postponed:' \
+  | xargs grep --with-filename --text --max-count=150 '^X-Postponed:' \
   | while read i; do
       f="${i%:X-Postponed:*}"
       ts="${i#*:X-Postponed: }"; ts="${ts%% *}"
-- 
2.39.5