summaryrefslogtreecommitdiff
path: root/libraries/libvmime-zarafa/zarafa-patches/vmime-plain-bodycopy.diff
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libvmime-zarafa/zarafa-patches/vmime-plain-bodycopy.diff')
-rw-r--r--libraries/libvmime-zarafa/zarafa-patches/vmime-plain-bodycopy.diff21
1 files changed, 0 insertions, 21 deletions
diff --git a/libraries/libvmime-zarafa/zarafa-patches/vmime-plain-bodycopy.diff b/libraries/libvmime-zarafa/zarafa-patches/vmime-plain-bodycopy.diff
deleted file mode 100644
index 6c1795d969..0000000000
--- a/libraries/libvmime-zarafa/zarafa-patches/vmime-plain-bodycopy.diff
+++ /dev/null
@@ -1,21 +0,0 @@
---- libvmime-0.7.1.orig/src/messageBuilder.cpp 2009-08-21 15:35:23.708082164 +0200
-+++ libvmime-0.7.1/src/messageBuilder.cpp 2009-08-21 15:37:00.400088431 +0200
-@@ -137,6 +137,8 @@
- if (msg->getBody()->getPartCount() == 1)
- {
- const bodyPart& part = *msg->getBody()->getPartAt(0);
-+ // make a full copy of the body, otherwise the copyFrom will delete the body we're copying
-+ const body* bodyCopy = part.getBody()->clone();
-
- // First, copy (and replace) the header fields
- const std::vector <const headerField*> fields = part.getHeader()->getFieldList();
-@@ -149,7 +151,8 @@
-
- // Second, copy the body contents and sub-parts (this also remove
- // the body part we are copying...)
-- msg->getBody()->copyFrom(*part.getBody());
-+ msg->getBody()->copyFrom(*bodyCopy);
-+ delete bodyCopy;
- }
-
- return (msg);