Thanks to all those who responded.
How about this: I want the X-Operating-System to report
Linux 2.4.2 i686 up 3 days, 16 hours, 08 minutes: 3 users; ave load:' and then have the
average of the 5 minute 10 minute and the fifteen minute loads.
Inline command or script would be cool.
thanks,
On Mon, Mar 26, 2001 at 05:54:15PM -0500, Wade A. Mosely wrote:
> I use:
>
> my_hdr X-Operating-System: `uname -smr` `uptime | sed s/.*up/up/ \
>| sed s/,[[:space:]0-9]*users.*$//`
>
> It's probably clumsy, but it works! =)
I don't mind how dodgy it looks, it works
Tony Collins wrote:
> Completely off-topic, I notice that your X-Operating-System header contains
> the kernel version and the uptime. What have you got in your .muttrc to
> make it put these things in your headers?
I use:
my_hdr X-Operating-System: `uname -smr` `uptime | sed s/.*up/up/ \
There should not be a space between `` because uptime includes a space. Actually
I wish uptime had better formatting. They have two spaces before the amount of
users and two spaces before load average (as well as a few others). If there is
a way to remedy this, I'd be much obliged. Maybe if I k
On Mon, Mar 26, 2001 at 09:23:42AM -0500, Wade A. Mosely wrote:
Completely off-topic, I notice that your X-Operating-System header contains
the kernel version and the uptime. What have you got in your .muttrc to
make it put these things in your headers?
Re
Tony
--
Is that an African or Europ
On Mon, Mar 26, 2001 at 11:09:22AM -0500, Wade A. Mosely wrote:
> Lars Hecking wrote:
> >
> > > Well, passing the message to a very simple one line script seems
> > > to work. I made a ~/.mutt/mailout (mode +x to make it
> > > executable):
> > >
> > > #!/bin/sh
> > > cat | procm
> > [Splutter] Useless Use of cat.
> >
> >
>
> Thanks, Lars, for that marvelously helpful comment. I didn't
> find any better solution on my own, though.
There is none. The problem, as you stated correctly, is that mutt
passes sender and recipient addresses to $sendmail on the command
l
Lars Hecking wrote:
>
> > Well, passing the message to a very simple one line script seems
> > to work. I made a ~/.mutt/mailout (mode +x to make it
> > executable):
> >
> > #!/bin/sh
> > cat | procmail ~/.procoutrc
> > # End of ~/.mutt/mailout
>
>
> [Splutter] Usele
BTW, one of the main things I am trying to accomplish is changing
the recipient headers ("To:", "Cc:", "Bcc:") in outgoing messages
Based upon their contents. Send-hooks don't seem to work to do
this.
>From /usr/local/doc/mutt/manual.txt :
"... note that my_hdr commands which modify recipient he
I want to use procmail to do some pre-processing of outgoing mail
before sending. I have created an rcfile for procmail that does
what I want called ~/.procoutrc which does the processing I want
using formail and passes the mail to sendmail for sending. It
works as I expect and want if I
10 matches
Mail list logo