aboutsummaryrefslogtreecommitdiff
path: root/libraries/libvmime-zarafa/zarafa-patches/vmime-allow-no-recips-and-senders.diff
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@gmail.com>2010-05-13 00:58:59 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:58:59 +0200
commiteac700bacbf832b6899d0adeb6ef1ee4acb79967 (patch)
treedc91fa4dcdd229de60979d5946770042beda5adf /libraries/libvmime-zarafa/zarafa-patches/vmime-allow-no-recips-and-senders.diff
parent0c91a2e1a8826be4f48cda754fb9a833cd012e66 (diff)
libraries/libvmime-zarafa: Added to 13.0 repository
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.diff23
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);