> I am trying to forward cron messages sent to my account on an HP-UX box to
> another account. These messages just say "cron" in the subject line. I want
> this subject line to be more descriptive by adding the machine name and the
> name of the account to which they were initially sent.
> Is there any way to customize the subject line? Is it possible to do it in
> the ".forward" file?
"|IFS=' '&&/usr/local/bin/procmail#your-user-name"
.procmailrc:
HOSTNAME=`uname -n`
:0
* ^Subject: cron
{
:0fwh
|sed -e "s/^Subject: /Subject: $HOSTNAME /"
:0
ElijahQuote:}
------
one suggestion