diff -urN pristine/src/messageBuilder.cpp libvmime-0.7.1/src/messageBuilder.cpp --- pristine/src/messageBuilder.cpp 2005-03-18 22:26:47.000000000 +0100 +++ libvmime-0.7.1/src/messageBuilder.cpp 2006-01-13 09:49:51.000000000 +0100 @@ -50,14 +50,11 @@ // Generate the header fields msg->getHeader()->Subject().setValue(m_subject); - if (m_from.isEmpty()) - throw exceptions::no_expeditor(); - - if (m_to.isEmpty() || m_to.getAddressAt(0)->isEmpty()) - throw exceptions::no_recipient(); - - msg->getHeader()->From().setValue(m_from); - msg->getHeader()->To().setValue(m_to); + if (!m_from.isEmpty()) + msg->getHeader()->From().setValue(m_from); + + if (!m_to.isEmpty()) + msg->getHeader()->To().setValue(m_to); if (!m_cc.isEmpty()) msg->getHeader()->Cc().setValue(m_cc);