Re: logging Date, From To and CC?

Robert Bonomi <[email protected]>
Newsgroups gmane.mail.procmail
Message-ID <[email protected]>
> Date: Wed, 12 Sep 2012 08:10:50 -0500
> Subject: logging Date, From To and CC?
> From: [email protected]
>
>
> Does anyone have a recipe (patch?) for logging Date From To and CC
> when LOGABSTRACT is set??
>

NL="
"

:0 H
* ^Date:\/.*
{ HDR_DATE=${MATCH} }
:0 H
* ^From:\/.*
{ HDR_FROM=${MATCH} }
:0 H
* ^To:\/.*
{ HDR_TO=${MATCH} }
:0 H
* ^Cc:\/.*
{ HDR_CC=${MATCH} }

:0  # delivering recipe
{ LOG="** Date:${HDR_DATE} ${NL}"
  LOG="** From:${HDR_FROM} ${NL}"
  LOG="** To:${HDR_TO} ${NL}"
  LOG="** Cc:${HDR_CC} ${NL}"
  :0 :
  /delivery/mailbox
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.