Quote:
Originally Posted by golden_boy615
what is wrong with my recipe?
|
AFAIK you can use variables used for delivery something like this (do test!):
Code:
SUBJECT=`formail -xSubject:`
FROM=`formail -rt -xTo:`
DELIVERYTO=$(eval echo "${FROM}${SUBJECT}"|sed -e '/^To: +\?[0-9]*$/,/report/!d')
:0 wic
* ? test ! -f ${DELIVERTO}
| touch ${DELIVERTO}; chmod 0600 ${DELIVERTO}
:0 b
* ^FROM.*
${DELIVERTO}
but unless you have compelling reasons to do so I would strongly advice against doing this for -=ALL=- email as errors in sender address, subject line and overhead from using core utilities may adversely affect system performance or b0rk it.