SMTP: do not allow send as another user on Exchange 2003

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2085 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2013-04-09 21:49:54 +00:00
parent ba7619b5cf
commit 01f8b6a508
1 changed files with 4 additions and 1 deletions

View File

@ -1283,7 +1283,10 @@ public abstract class ExchangeSession {
convertResentHeader(mimeMessage, "Bcc");
convertResentHeader(mimeMessage, "Message-Id");
mimeMessage.removeHeader("From");
// do not allow send as another user on Exchange 2003
if ("Exchange2003".equals(serverVersion)) {
mimeMessage.removeHeader("From");
}
// remove visible recipients from list
Set<String> visibleRecipients = new HashSet<String>();