Corretto il check sulla send

git-svn-id: svn://10.65.10.50/trunk@448 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1994-10-25 10:00:59 +00:00
parent a5f3870b44
commit 8b82b498a5

@ -1,4 +1,4 @@
// $Id: mailbox.cpp,v 1.4 1994-10-24 15:06:26 guy Exp $
// $Id: mailbox.cpp,v 1.5 1994-10-25 10:00:59 alex Exp $
#include <stdlib.h>
#include <fstream.h>
@ -136,7 +136,8 @@ TMessage* TMailbox::next_f(char* f, bool read)
void TMailbox::send(TMessage& m)
{
CHECK(m.from() && m.to() && (m.subject() || m.body()),
CHECK(m.from().not_empty() && m.to().not_empty() &&
(m.subject().not_empty || m.body().not_empty()),
"Can't send partially empty message");
// strcpy(to_path, getenv("TMPDIR") == NULL ? MAILDIR : getenv("TMPDIR"));