Hello,
I would like to mix the two commands mailstats and sendmail. I
do as follows:
First test:
sol:~ # /usr/sbin/mailstats | (echo "From: choth"; echo "To:
choth"; echo "Subject: Mail statistic in Sol Server on
`date`"; echo "") | sendmail -fchoth@of.forum.org.kh
choth@of.forum.org.kh
Second test:
sol:~ # /usr/sbin/mailstats | (echo "From: choth"; echo "To:
choth"; echo "Subject: Mail statistic in Sol Server on
`date`";) | sendmail -fchoth@of.forum.org.kh
choth@of.forum.org.kh
But what I receive is like the following:
=============================================
Subject:
Mail statistic in Sol Server on Fri Oct 25 09:43:03
ICT 2002
Date:
Fri, 25 Oct 2002 09:43:03 +0700
From:
Puth Chan Choth
To:
choth@of.forum.org.kh
===============================================
My idea is that I would like to display as follow:
===============================================
Subject:
Mail statistic in Sol Server on Fri Oct 25 09:43:03
ICT 2002
Date:
Fri, 25 Oct 2002 09:43:03 +0700
From:
Puth Chan Choth
To:
choth@of.forum.org.kh
Statistics from Tue Feb 8 17:51:38 2000
M msgsfr bytes_from msgsto bytes_to
msgsrej msgsdis Mailer
3 36092 1714924K 256800 9704440K
117 0 local
5 109315 2739228K 21501 1098668K 3625
0 smtp
6 162 6701K 0
0K 0 0 esmtp
10 0 0K 0
0K 1 0 uucp-old
=======================================================
T 145569 4460853K 278301 10803108K 3743 0
What should I mix my commands to succeed this goal? Thank you
so much for your assistance.
Regards,
Choth