[davmail] 04/06: Drop javamail compatibility patch (fixed upstream)

Alexandre Rossi alexandre.rossi at gmail.com
Fri Jun 9 05:25:56 UTC 2017


This is an automated email from the git hooks/post-receive script.

niol-guest pushed a commit to branch debian-experimental
in repository davmail.

commit c13cd0ed08ab5894170eacb38ba0f173f9579174
Author: Alexandre Rossi <alexandre.rossi at gmail.com>
Date:   Fri Jun 9 06:26:30 2017 +0200

    Drop javamail compatibility patch (fixed upstream)
---
 ...ge-of-the-MimeMessage-class-with-javamail.patch | 42 ----------------------
 debian/patches/series                              |  1 -
 2 files changed, 43 deletions(-)

diff --git a/debian/patches/0003-Fix-the-usage-of-the-MimeMessage-class-with-javamail.patch b/debian/patches/0003-Fix-the-usage-of-the-MimeMessage-class-with-javamail.patch
deleted file mode 100644
index 237fd33..0000000
--- a/debian/patches/0003-Fix-the-usage-of-the-MimeMessage-class-with-javamail.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-Author: Antonio Ospite <ao2 at ao2.it>
-Last-Update: 2016-10-22
-Subject: Fix the usage of the MimeMessage() class with javamail > 1.4.3
-Forwarded: https://sourceforge.net/p/davmail/bugs/633/
-
-DavMail passes the mimeBody InputStream to the MimeMessage() constructor
-and then reuses the InputStream afterwards assuming it still gives
-access to the full original message in ExchangeSession.Message.
-
-However this assumption is wrong, because some javamail versions alter
-the input stream passed to the MimeMessage constructor, see:
-https://sourceforge.net/p/davmail/bugs/633/
-https://kenai.com/bugzilla/show_bug.cgi?id=8562
-
-Fix this by passing a copy of the InputStream to MimeMessage().
-
-This fixes the problem of a command like "FETCH 18 (RFC822)" returning
-only the body of the message with no headers, when using javamail 1.5.6.
----
- src/java/davmail/exchange/ExchangeSession.java | 6 +++++-
- 1 file changed, 5 insertions(+), 1 deletion(-)
-
-diff --git a/src/java/davmail/exchange/ExchangeSession.java b/src/java/davmail/exchange/ExchangeSession.java
-index 473d360..1ec84f5 100644
---- a/src/java/davmail/exchange/ExchangeSession.java
-+++ b/src/java/davmail/exchange/ExchangeSession.java
-@@ -1984,7 +1984,11 @@ public abstract class ExchangeSession {
-                 } else {
-                     // load and parse message
-                     mimeBody = new SharedByteArrayInputStream(getContent(this));
--                    mimeMessage = new MimeMessage(null, mimeBody);
-+
-+                    // Pass a copy of the input stream to MimeMessage, see:
-+                    // https://sourceforge.net/p/davmail/bugs/633/
-+                    // https://kenai.com/bugzilla/show_bug.cgi?id=8562
-+                    mimeMessage = new MimeMessage(null, mimeBody.newStream(0, -1));
-                     mimeBody.reset();
-                     // workaround for Exchange 2003 ActiveSync bug
-                     if (mimeMessage.getHeader("MAIL FROM") != null) {
--- 
-2.10.2
-
diff --git a/debian/patches/series b/debian/patches/series
index 8448743..2fcca21 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,5 +1,4 @@
 0001-no-windows-service.patch
 0002-no-osx-tray.patch
-0003-Fix-the-usage-of-the-MimeMessage-class-with-javamail.patch
 0004-Set-classpath-add-target-davmail-lib.patch
 0006-Disable-the-check-for-a-new-release.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/davmail.git



More information about the pkg-java-commits mailing list