Hi there,
How can I determine the size of e-mail?
I have the following recipe:
JUNKBOX=${HOME}/Junk
FORMAIL=/usr/local/bin/formail
ECHO=/bin/echo
FROM=`${FORMAIL} -z -rt -xTo:`
:0
* > 10240
{
JUNKLOG=${HOME}/junk.log
:0 Wic
* ? test -w ${JUNKLOG}
| ${ECHO} A message from ${FROM} >> ${JUNKLOG}
:0
${JUNKBOX}/
}
I would like to replace the line with ${ECHO} with something like this:
| ${ECHO} A message from ${FROM} size: ${SIZE} >> ${JUNKLOG}
The question is how can I calculate a ${SIZE} variable?
---
Can't Rain All the Time
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail