> Mikko Hänninen (Tue 09.0500-21:25):
> Francisco D. Borges <[EMAIL PROTECTED]> wrote on Tue, 09 May 2000:
> >   Can anybody tell me how do I make qmail to include a header line "Lines:" out
> >   of every mail it sends out?
> 
> Well, qmail by default won't modify messages, at least while they are
> "in transit".  And I don't think there's any kind of functionality for
> this in qmail-inject.  Your best bet would be to write a wrapper script
> in front of qmail-inject to do this.

coming to think about this:  if .muttrc specifies "vi" as editor and you
are at a std unix box, why not pipe the body of the message through "wc -l"
and put "Lines: " in front of the result?  wait now 'til i try it...

Lines: 17  ok, it works, but it's kinda messy, and can only be done when
the message is finished, so no new lines are added.  what i typed (and what
would have to be saved as a macro) was:
go to the top of the body "1G}j", then save ":w" (as a precaution, not
really neccessary), pipe through word-count "!Gwc -l", put literal lines:
in front of result "0sLines: <esc>", save that to some buffer ""aY" (the "
is needed here!), undo the whole sh*t "u", append buffer to headers section
"1G}"aP" (again, the "'s are needed), pray and get rid of the mess.  cool,
eh?  the buffer operations are possibly redundant, i mean, one could use
the default buffer...

-- 
clemens                            ([EMAIL PROTECTED], pgp key available)

Reply via email to