procmail
[Top] [All Lists]

Get [[:upper:]] percentage from subject

2008-06-27 10:45:35
************************************************************************
*       Do not Cc: me, because I READ THIS LIST, if I write here       *
*    Keine Cc: am mich, ich LESE DIESE LISTE wenn ich hier schreibe    *
************************************************************************

Hello,

I have tried to get procmail native the percentage of [[:upper:]] in the
subject line but failed.  

In the meantime while searching for a faster solution I am using:

----[ '/usr/share/tdtools-procmail/FLT_subject_upper' ]-----------------
<snip>
    MSG_SUBJECT=`formail -czx Subject:`
<snip>
    TMPVAR1=`echo "${MSG_SUBJECT}" |wc --chars `
    TMPVAR2=`echo "${MSG_SUBJECT}" |sed 's|[[:lower:]]||g' |wc --chars `
        HIT=`echo "${TMPVAR2}00/${TMPVAR1}" |bc`
<snip>
------------------------------------------------------------------------


Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>