<<< Date Index >>>     <<< Thread Index >>>

Re: index_format %l



* Michael Tatge <Michael.Tatge@xxxxxx> [09-01-06 08:10]:
> If you insist on a lines count and use procmail you can easily add
> the Lines: header.
> 
> :0 Bfh
> * H ?? !^Lines:
> * -1^0
> *  1^1 ^.*$
> | formail -A "Lines: $="
> 

or the following so it only operates on messages *missing* the 'Lines:'
header:

:0
* ! ^Lines:
{
  :0B
  * 1^1 ^.*$
  { }
  LINES = $=

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

-- 
Patrick Shanahan                        Registered Linux User #207535
http://wahoo.no-ip.org                        @ http://counter.li.org
HOG # US1244711         Photo Album:  http://wahoo.no-ip.org/gallery2