Handle attachments renamed to winmail.dat by Exchange

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@68 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2007-06-18 09:08:35 +00:00
parent 4eaabefb2c
commit f21298b863
1 changed files with 2 additions and 1 deletions

View File

@ -910,7 +910,8 @@ public class ExchangeSession {
attachment = attachmentsMap.get(partHeader.name + ".eml");
}
// try to get attachment by index, only if no name found
if (attachment == null && partHeader.name == null) {
// or attachment renamed to winmail.dat by Exchange
if (attachment == null && (partHeader.name == null || "winmail.dat".equals(partHeader.name))) {
attachment = attachmentsMap.get(String.valueOf(attachmentIndex));
}
// try to get by index if attachment renamed to application