The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to manage the .nfs files generated by the system dowell Filesystems, Disks and Memory 0 06-06-2008 01:25 PM
CLI Magic: Manage all your archives with atool iBot UNIX and Linux RSS News 0 02-05-2008 06:00 AM
Trying to manage an inherited Ksh script ajcannon Shell Programming and Scripting 1 08-15-2007 06:54 AM
NIS server to manage NFS quota izy100 SUN Solaris 0 08-03-2006 01:08 PM
manage the wtmp file me2unix UNIX for Dummies Questions & Answers 0 12-18-2000 07:09 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-14-2006
SUSANR9999 SUSANR9999 is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 4
Question Manage Mail

I have recently taken over a UNIX system from another programmer and am just beginning to learn UNIX.

When I enter the MAIL command, the data scrolls off the screen for five minutes. Some of it is several years old.

Can I tell the MAIL command to give me the last few items or the last few days only?

I would like to delete some of the older material? Must it be done one item at a time or can I do it by date or contents?

thank you for your help
  #2 (permalink)  
Old 11-14-2006
Tornado's Avatar
Tornado Tornado is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2006
Location: Melbourne
Posts: 249
mail displays one message at a time, so if it is scrolling for a while after you type mail, the first mail must have a binary attachment. type d after it stops to remove that message.

man is your friend
Code:
  Reading Mail
     The following command-line arguments affect reading mail:

     -e    Mail is not printed. An exit status of 0  is  returned
           if  the  user has mail; otherwise, an exit status of 1
           is returned.

     -h    A window of headers  are  initially  displayed  rather
           than  the  latest message.  The display is followed by
           the ? prompt.

     -p    All messages are printed without prompting for  dispo-
           sition.

     -P    All  messages  are  printed  with  all  header   lines
           displayed,  rather  than  the default selective header
           line display.

     -q    mail terminates after interrupts. Normally  an  inter-
           rupt  causes only the termination of the message being
           printed.

     -r    Messages are printed in first-in, first-out order.
Once in the mail program here are a few commands
Code:
     d, or dp
           Delete the current message and print the next message.

     d n   Delete message number n. Do not go on to next message.

     dq    Delete message and quit mail.

     h     Display a window of headers around current message.

     h n   Display a window of headers around message number n.

     h a   Display headers of all messages in  the  user's  mail-
           file.

     h d   Display headers of messages scheduled for deletion.

     u [ n ]
           Undelete message number n (default is last read).

     ?     Print a command summary.
Closed Thread

Bookmarks

Tags
learn unix

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:53 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0