summaryrefslogtreecommitdiff
path: root/libraries/libvmime-zarafa/zarafa-patches/vmime-strip-header-endspaces.diff
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libvmime-zarafa/zarafa-patches/vmime-strip-header-endspaces.diff')
-rw-r--r--libraries/libvmime-zarafa/zarafa-patches/vmime-strip-header-endspaces.diff17
1 files changed, 17 insertions, 0 deletions
diff --git a/libraries/libvmime-zarafa/zarafa-patches/vmime-strip-header-endspaces.diff b/libraries/libvmime-zarafa/zarafa-patches/vmime-strip-header-endspaces.diff
new file mode 100644
index 0000000000..13801b00fc
--- /dev/null
+++ b/libraries/libvmime-zarafa/zarafa-patches/vmime-strip-header-endspaces.diff
@@ -0,0 +1,17 @@
+--- libvmime-0.7.1/src/headerField.cpp 2007-07-31 12:54:21.898679250 +0200
++++ libvmime-0.7.1.patched/src/headerField.cpp 2007-07-31 12:43:08.408588750 +0200
+@@ -189,6 +189,14 @@
+ }
+ }
+
++ // strip spaces from end of header lines, also through continuation headers
++ contentsEnd--; // original enter
++ while (contentsEnd>contentsStart &&
++ (buffer[contentsEnd] == ' ' || buffer[contentsEnd] == '\t' ||
++ buffer[contentsEnd] == '\r' || buffer[contentsEnd] == '\n'))
++ contentsEnd--;
++ contentsEnd++; // new 'enter'
++
+ // Return a new field
+ headerField* field = headerFieldFactory::getInstance()->create(name);
+