Subject: Re: Adding a "Lines:" header

From: SAKIYAMA Nobuo <[email-masked]>
Date: Sun, 15 Jan 1995 22:11:57 +0900

In article <9501131906.AA29977@tschil>,
	[email-masked] (Stephen R. van den Berg) writes:

berg> :0
berg> * !^Lines:
berg> {
berg>   :0 B
berg>   * 1^1 ^(.|$)
berg>   {
berg>     LINES=$=

berg>     :0 fhw
berg>     | formail -a "Lines: $LINES"
berg>   }
berg> }

I found that the following way is more suitable for the meaning of "Lines:"
(my procmail is v3.10).

:0
* !^Lines:
{
  :0 B
  * -1^0
  * 1^1 ^(.|$)
  {
    LINES=$=

    :0 fhw
    | formail -a "Lines: $LINES"
  }

  :0 Efhw
  | formail -a "Lines: 0"
}

----------------------------------------------------
SAKIYAMA Nobuo        [email-masked]
Department of Information Science
Faculty of Science, The University of Tokyo, JAPAN
-----------------------------------------------------