• Skip to Main Content
  • Go to the Website's Home
  • Go to Website News
  • Go to About this site
  • Skip to Audience Navigation Menu
  • About
    • Welcome to the College
    • Facts and Figures
    • Message from the Dean
    • Visit Us
    • College Administration
    • News Center
    • More...
  • Research
    • Research
    • Departments
    • Faculty Directory
  • Admissions
    • Undergraduate Admissions
    • Graduate Admissions
    • Undergraduate Recruiting
    • Graduate Recruiting
    • More...
  • Academics
    • Course Guide/Bulletin
    • Departments
    • Teaching
    • Programs and Degrees
    • Support Services
    • More...
  • Departments
    • Aerospace Engineering
    • Atmospheric, Oceanic and Space Sciences
    • Biomedical Engineering
    • Chemical Engineering
    • Civil and Environmental Engineering
    • Electrical Engineering and Computer Science
    • Industrial and Operations Engineering
    • Materials Science and Engineering
    • Mechanical Engineering
    • Naval Architecture and Marine Engineering
    • Nuclear Engineering and Radiological Sciences
  • Support the College
    • Giving
    • Involve Yourself
    • Corporate Relationships
    • More...
  • Information for:  
  • Alumni
    • Alumni Website
    • Alumni Society
    • Get Involved
  • Students
    • Academic Calendar
    • Course Guide/Bulletin
    • Financial Aid
    • Career Resources
    • Advising Center
    • More...
  • Faculty
    • College Faculty Meetings
    • Getting Research Funding
    • Employment Opportunities
    • More...
  • Staff
    • Department Listing
    • College Administration
    • Contacts
    • Faculty Directory
    • Staff Handbook
    • Employment Opportunities
    • More...
  • Friends
    • K-12 Outreach
    • Parents Weekend
    • Community Service Projects
    • Contacts
  • Corporations
    • Corporate Relations
    • Sponsoring Research
    • Opportunties for Interaction
    • Professional Education
    • Technology Transfer and Licensing
    • More...

CAEN

CAEN

  • About CAEN
    • Introduction
    • A Student Guide to CAEN
    • Policies
    • Organizational Chart
    • Employment
    • Hours of Operation
  • Computer Labs
    • Overview
    • Guidelines
    • Comparison Chart
    • Lab Descriptions
    • Lab Map
    • Realtime Lab Monitor (external link)
    • Reserving a Lab
    • Document Scanners
    • Virtual CAEN Labs
  • Computing Accounts
    • Overview
    • Obtaining an Account
    • Account Eligibility & Fees
    • Expiration of CAEN Accounts
    • Backups & Restorations
    • Passwords at U-M
  • Connecting to CAEN
    • Overview
    • Linux Login Servers
    • Secure File Transfer Protocol (SFTP)
    • Secure Shell (SSH)
    • Virtual CAEN Labs
    • Virtual Network Computing (VNC)
    • Virtual Private Network (VPN)
    • X11 Connections
  • Departmental Services
    • Overview
    • CAEN Operating Environment (COE)
    • Course Support
    • Data Storage
    • Instructional Technology
    • Network Support
    • Software Licensing
    • Ordering & Purchasing
  • Email
    • Overview
    • U-M Exchange Accounts
    • Group Email Distribution
    • CoE Email Lists
    • Recent Service Changes
    • Frequently Asked Questions
  • Help & Support
    • Overview
    • The CAEN Hotline (external link)
    • The CAEN Service Center (external link)
    • Search Documentation (external link)
    • Frequently Asked Questions (external link)
    • Administrative Forms (external link)
  • Information Security
    • Information Security at the College
    • IT Security Recommendations
    • Recent Announcements (external link)
  • Network & Wireless
    • Overview
    • Departmental Services
    • Ethernet Connections
    • Name Service (DNS) Requests
    • Network Status (external link)
    • Wireless Networking
  • Printing
    • Overview
    • Page Allocations & Costs
    • Printer Names & Locations
    • Using the Xerox Printers
    • Web Printing
    • Frequently Asked Questions (external link)
  • Software & Licensing
    • Overview
    • Software Listing
    • Course Software Requests
    • Departmental Licensing
    • Online Documentation
    • User-Contributed Software
    • Linux Utility Programs
  • Web Services
    • Overview
    • Content Management System
    • Forms Application
    • Google Search Appliance
    • Group Web Space
    • Tips on Web Photos
    • Statistics (external link)
Contact CAEN Support
(external link warning) Link goes to external page

Home  /  CAEN  /  Frequently Asked Questions  /  Email  /  General Information  /  How do I use /usr/um/bin/mail?

How do I use /usr/um/bin/mail?

The /usr/um/bin/mail email reader is available on every Linux lab machine on the CAEN network. In order to check if any new messages have arrived, type mail at the Linux prompt. Please note that for email to work correctly, you need to have your MAILSERVER environment variable set correctly. This is done automatically for you if your .login file sources /usr/local/skel/sys.login. To make sure you have the correct dotfiles, you can use the /usr/caen/bin/redot command to update them to defaults.

Receiving Email

When the mail command is invoked, if there are new messages in your inbox, a list of the message headers will appear.  If there are no new messages, you are notified that there is no mail:

example% mail
Connecting to mail server..
Password (example.engin.umich.edu:uniqname):
Retrieving messages..
Mail version 5.6.2.caen.pop 17-Sep-95.  Type ? for help.
"/var/tmp/mailAAAQSaGcQ": 6 messages 5 unread
1 -                     Mon Oct  7 11:34   0/1400
U  2 -                     Mon Oct  7 11:34   0/33106
U  3 -                     Mon Oct  7 11:34   0/1822
U  4 -                     Mon Oct  7 11:34   0/3354
U  5 -                     Mon Oct  7 11:34   0/1126520
U  6 -                     Mon Oct  7 11:34   0/33894
>

In the above example, the user has six pieces of email.  Each header gives the message status, sender, day, date and time posted, the number of lines/bytes, and the subject (if the sender supplied one).  The mail system right bracket (>) prompt follows. To read a message, simply type the message number that appears at the far left of every message listed.

Messages that are not deleted are appended to a file called mbox in the user’s home directory.  To access these messages, type:

mail -f mbox

The mailer will use the file mbox as the mailbox instead of the system mailbox.  Messages from mailbox formatted files, (e.g. messages saved using s command) can also be retrieved. Reading your email from the mbox is the same process as reading the mail in your inbox. Just type the message number.

/usr/um/bin/mail commands

?

Prints a brief summary of commands

n

Goes on to the next message (same as pressing )

-

Goes back to the previous message

d

Deletes the current message and continue to the next

p

Prints the current message

pre

Preserves the current message as if it were not yet read

touch

Marks a message as having been read

u #

Un-deletes messages listed in place of #

z

Moves to the next range of messages

z-

Moves to the previous range

s filename

Saves the current message in the named filename; If no file name is given, save the message in the file mbox

h

Prints the current list of mail headers

r

Replies to all recipients of the current message

R

Replies to originator only, not to other recipients

q

Quits—all undeleted and unsaved messages are stored in mbox

x

Exits—return to shell without modifying the system mailbox or mbox file

Ctrl-c

Aborts message being composed and returns to shell

!

Executes the Linux command which follows

Sending Email

In order to send email to another CAEN user, type mail uniqname, where uniqname is the user’s login.  You will be prompted for text one line at a time.  End a message by typing a period (.) on a line by itself, or entering the End-Of-File character (Ctrl-d).  The message will then be sent.  A message cannot be edited once it has been sent.

When composing a message, certain escape sequences may be useful.  These commands must be typed at the beginning of a line:

~v

Edit the message using the vi editor.

~e

Edit the message using the editor defined by the EDITOR variable.

~p

Print out the message typed in so far.

~s sub

Make sub the current subject field.

~r file

Read file into the current message buffer.

~m #

Read the message number specified by # into the current message buffer; If no message number is given, use the last message.

~q

Abort the message without sending.

For More Information

For additional information, type man mail at the Linux prompt.  If you have any questions or difficulties, go to Contact CAEN. CAEN staff members will make every possible effort to answer each message quickly.



CSS 2.1 Valid
University of Michigan
  • Contact Us
  • Site Map
  • Site Feedback
  • Accessibility
  • Emergency Procedures
  • Jump to top of the page
© 2008 College of Engineering, University of Michigan
Last edited on: 1/1/2008