From: martin f. krafft Date: Wed, 7 May 2008 11:22:14 +0000 (+0200) Subject: only check first 150 lines for X-Postponed header X-Git-Url: https://git.madduck.net/etc/mailfilter.git/commitdiff_plain/69908239ae4d11d712934d4fa760ce5ebe531883?ds=inline only check first 150 lines for X-Postponed header --- 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%% *}"