From 8273e30bbc9893863c5451247c4a3bf9c674151e Mon Sep 17 00:00:00 2001 From: mguessan Date: Mon, 3 Jan 2011 10:11:43 +0000 Subject: [PATCH] SMTP: fix 3132569, always remove From header to avoid 403 error on send git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1588 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/exchange/ExchangeSession.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/java/davmail/exchange/ExchangeSession.java b/src/java/davmail/exchange/ExchangeSession.java index 0641a9d3..37573c08 100644 --- a/src/java/davmail/exchange/ExchangeSession.java +++ b/src/java/davmail/exchange/ExchangeSession.java @@ -1154,10 +1154,7 @@ public abstract class ExchangeSession { convertResentHeader(mimeMessage, "Bcc"); convertResentHeader(mimeMessage, "Message-Id"); - // fix From header for Exchange 2007 - if (!"Exchange2003".equals(serverVersion)) { - mimeMessage.removeHeader("From"); - } + mimeMessage.removeHeader("From"); // remove visible recipients from list Set visibleRecipients = new HashSet();