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:
parent
ba7619b5cf
commit
01f8b6a508
|
@ -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>();
|
||||
|
|
Loading…
Reference in New Issue