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

Re: no "lines" header after editing a message



On Sat 11/03/07 at 01:04 AM -0400,
Russell Hoover <rj@xxxxxxxxx> wrote:

> How can I edit a message and keep a (now changed) lines header?


Maybe this question should be put this way:  How can I have an updated
"Lines:" header automatically created immediately after I edit a message
that is sitting in one of my mailboxes?  Vim is my editor.

Currently when I edit a message (in any version of mutt), the number of
lines in the message-body is almost always changed.  Because of this, the
"Lines:" header is removed (and not changed to correctly reflect the new
number of lines).

This leave a zero in the index (and in the pager's status-line) where
normally what would appear is the number of lines in the message-body.

My thinking is that there must be some way to put this recipe from my
.procmailrc file to work for this:

--------------------------------------------------------
# Generate a "Lines:" header (needed for maildir mailbox
# format) using procmail's scoring mechanism.  Only
# message-body lines are counted (not the headers):

:0 Bfhw
* -1^0
* 1^1 ^.*$
|formail -I"Lines: $="
--------------------------------------------------------

But I'm coming up short as to how this might be done.

This raises another question:  There must be a reason I deleted this recipe
form the .procmailrc I use with mutt-1.5.10.  Did it become unnecessary at
some point with mutt to have it there?

-- 
                         // rj@xxxxxxxxx //