blob: 973b56d13cfbf45a998cb6921fde1796f7ad905f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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);
|