Re: Transform part of a message body

udi M <[email protected]> Thu, 21 Jan 2016 16:12:40 +0200
Newsgroups gmane.mail.procmail
Organization tau
Message-ID <[email protected]>
On 21/01/16 14:02, @lbutlr wrote:

On Jan 17, 2016, at 7:19 AM, udi M <[email protected]> wrote:

I could not check it now but, you can try, find line with more then three "="s
"^[ =]+===[= ]+$" and then count the "="s from the MATCHed:

Right, but what I want is to match any lien that contains nothing but the same characters repeated x times. So I want to match

===============
------------------
qqqqqqqqqqqqqqqqqqqq
\\\\\\\\\\\\\\\

   It is a shell job not for procmail: Get the Line and tr(1) it
and then compare the length:

X=$(expr length $LINE)

Y=$(tr -s '[:graph:]' <<<"$LINE")

Y=$(expr length $Y)

[[ $Y == 1 ]] && [[ $X > 14 ]] && echo "I found
line made of one char that constantly repeat more then 14 times"

--udi

/////////////////////////////////
[[[[[[[[[[[[[[[[[[
Etc.
But not match -=-=-=-=-=-=-=-=

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
[email protected]
http://mailman.rwth-aachen.de/mailman/listinfo/procmail