mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 11:12:22 -05:00
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:
parent
4eaabefb2c
commit
f21298b863
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user