E-mail files, part III: Replying

Due Monday 1/29/01, by 5:00PM. Submit your .cpp file via HSP .

The task

For this assignment, start with the program you wrote for the second assignment. The finished program should do the following:

  1. Ask the user for the name of an e-mail file.
  2. Print a numbered list of messages contained in the e-mail file, showing sender and subject. The info for each message should be on one line.
  3. Give the user the chance to read a message or reply to a message.
  4. Do what the user chose.
  5. Go back to step 2.

Here's an example session with the finished program:


	What is the name of the mailbox? tempMailbox

	1 aqudu@ungulates.com  Re: toys
	2 dmusican@mathcs.carleton.edu  [Bowling] Sub tonite?
	3 asdf@carleton.edu  Re: images in classes
	4 fleen@carleton.edu   Re: assignment

	View message (m) or reply (r)? m
	
	Which message do you want to view? 1

	Return-Path: 
	Received: from caesar.acns.carleton.edu (Caesar.ACNS.Carleton.edu [137.22.1.26])
	by mathcs.carleton.edu (8.9.3/8.9.3) with ESMTP id KAA15967
	for ; Wed, 24 Jan 2001 10:23:04 -0600
	Received: from mail.ungulates.com ([208.42.17.1])
	 by carleton.edu (PMDF V5.2-32 #36754)
	 with SMTP id <0G7O0039RANI9S@carleton.edu> for jondich@mathcs.carleton.edu
	 (ORCPT rfc822;jondich@carleton.edu); Wed, 24 Jan 2001 09:21:19 -0600 (CST)
	Received: from RBDOMAIN-Message_Server by mail.ungulates.com	with
	Novell_GroupWise; Wed, 24 Jan 2001 09:22:22 -0600
	Date: Wed, 24 Jan 2001 09:22:06 -0600
	From: Andrew Qudu 
	Subject: Re: toys
	To: jondich@carleton.edu
	Message-id: 
	MIME-version: 1.0
	X-Mailer: Novell GroupWise 5.5.2
	Content-type: text/plain; charset=US-ASCII
	Content-disposition: inline
	Content-Transfer-Encoding: 8bit
	X-MIME-Autoconverted: from quoted-printable to 8bit by mathcs.carleton.edu id KAA15967

	Fortunately, Talia has not noticed the missing airplane yet.
	Maybe you could mail it to us?


	1 aqudu@ungulates.com  Re: toys
	2 dmoosica@mathcs.carleton.edu  [Bowling] Sub tonite?
	3 asdf@carleton.edu  Re: images in classes
	4 fleen@carleton.edu   Re: assignment

	View message (m) or reply (r)? r

	To which message would you like to reply? 1

	[Type your message.  To end the message, type a line
	consisting of only a period.]

	Andy,

	We'll mail it to you once we're done playing with it.

	Jeff
	.
	
	[Message sent.]

Ideas

Have fun, start early, and keep in touch.



Jeff Ondich, Department of Mathematics and Computer Science, Carleton College, Northfield, MN 55057, (507) 646-4364, jondich@carleton.edu