Need to see the last 5 received mails when logged in with normal user
Hi All,
I am trying to see the last 5 mails in a single window that the rootuser has sent to a particular normal user.However,I am not able to do so.Is there any command that can display the last 5 mails in a single window sent to a particular user? Thanks Siddhant Bezbaruah |
That's a pretty custom application there. I'm also unsure what you mean by '5 mails in a single window'. The easiest way I can think to accomplish this would be to use perl and directly view the mail spool and evaluate the messages in the spool. Honestly though, I'd probably just fire up mutt -f /path/to/mail and hit o f /root and look... or write an expect script to do that for me.
|
Thanks for your reply.What i mean by '5 mails in a single window' is that when we run 'mail'command from the normal user terminal to display the user's received mails,it doesn't display the last received mails,instead of that it only displays the top 20 mails.So i am looking for a command that displays the last mails that the user had received.Please guide me with this command.
Thanks Siddhant Bezbaruah |
As far as I know, mutt, mail, and mailx do not have that functionality built in. You many need to write a custom application or feature extension to mail/mutt/mailx to do what you're looking for.
|
All times are GMT -5. The time now is 09:57 PM. |