Re: logging Date, From To and CC?

[email protected]
Newsgroups gmane.mail.procmail
Message-ID <[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
 > }

Hum.  That makes me wonder: how does one log the matching rule??

steve
--
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.