R. Clayton (rclayton@monmouth.edu)
Wed, 7 Jun 2000 21:09:59 -0400 (EDT)
The From text-line is NOT the same as the message header with the format
word:text-line. Correct?
Correct. This is an exceptionally stupid mailbox format known as the BSD
mailbox format.
Therefore, a sample file would look something like
From TextLine1
Message1Header:textline
Message2Contents
From TextLine2
Message2Header:textline
Message2Contents
Almost; you may assume the "From " line immediately precedes the header with no
non-field lines. Also, the header may contain more than one one field (rfc 822
requires the header have at least three fields: creation date, sender, and
receiver; you need only assume one or more fields) and the header is separated
from the contents by a empty text-line.
From TextLine1
Message1Header:textline
Message1Contents
From TextLine2
Message2Header:textline
Message2Contents
I also wanted to know if we need to provide a sample "mail" file to you so
you may test our program or whether you would provide one.
No need, I'll have my own test set I'll apply to your programs; I've also made
a sample mailbox available off the assignment page so you have something
you can run against your programs.
Lastly, although STL uses generic programming, I wanted to be sure we could
use object oriented programming in our program (ex: A mailbox class and a
message class)
Yes, you should definitely use some organized approach to writing your code,
because you'll be carrying it along with you through all the assignments (using
the mailbox you developed in this assignment in the next assignment on
dequeues, for example). Which organized approach you take is up to you.
Also, remember that part of the objectives of these assignments is to
demonstrate your competence with the STL, so you should make extravagant, even
profligate, use of STL features in your code.
This archive was generated by hypermail 2.0b3 on Fri Aug 11 2000 - 15:25:05 EDT