On Thu, Apr 05, 2001 at 07:39:56AM -0700, David Ellement wrote:
> On 010405, at 15:28:33, Micha Berdichevsky wrote
> > I'm using mutt 1.3.17i on a linux machine.
> > I just converted all my mailboxes to maildir format, and the pager
> > reports 0 lines for all messages (%l field).
> > Any ideas?
>
> This comes up occasionally. In maildir format, the messages
> typically don't have a 'Lines:' header. Either add a 'Lines:'
> header to the messages, or use an alternate size indicator in the
> format string (%c for number of characters).
>
> Long ago, someone posted this procmail recipe to add a lines header:
>
> :0
> * !^Lines:
> {
> :0 B
> * 1^1 ^.*$
> { }
> LINES = $=
>
> :0 fhw
> | formail -a "Lines: $LINES"
> }
Shorter:
:0 fhw
* !^Lines:
* B ?? 1^1 ^.*$
| formail -a "Lines: $="
--
Every day is a gift, that's why the present is so named