diff options
Diffstat (limited to 'libraries/libvmime-zarafa/zarafa-patches/vmime-allow-no-recips-and-senders.diff')
-rw-r--r-- | libraries/libvmime-zarafa/zarafa-patches/vmime-allow-no-recips-and-senders.diff | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libraries/libvmime-zarafa/zarafa-patches/vmime-allow-no-recips-and-senders.diff b/libraries/libvmime-zarafa/zarafa-patches/vmime-allow-no-recips-and-senders.diff new file mode 100644 index 0000000000000..973b56d13cfbf --- /dev/null +++ b/libraries/libvmime-zarafa/zarafa-patches/vmime-allow-no-recips-and-senders.diff @@ -0,0 +1,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); |