".forwarding" a message with a customized subject line?

".forwarding" a message with a customized subject line?

Post by Eli the Bearde » Tue, 16 Jun 1998 04:00:00




> 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?

.forward:
"|IFS=' '&&/usr/local/bin/procmail#your-user-name"

.procmailrc:
HOSTNAME=`uname -n`
:0
* ^Subject: cron
{
  :0fwh
  |sed -e "s/^Subject: /Subject: $HOSTNAME /"

  :0

Quote:}

Elijah
------
one suggestion