1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-12 10:42:21 -05:00

fix attachment index failover

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@20 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2007-01-02 22:14:01 +00:00
parent 73c9fe8ed3
commit 59c424b178

View File

@ -746,12 +746,12 @@ public class ExchangeSession {
if (attachment == null && partHeader.name == null) {
attachment = attachmentsMap.get(String.valueOf(attachmentIndex));
}
attachmentIndex++;
if (attachment == null) {
// only warn, could happen depending on IIS config
//throw new IOException("Attachment " + partHeader.name + " not found in " + messageUrl);
logger.warn("Attachment " + partHeader.name + " not found in " + messageUrl);
} else {
attachmentIndex++;
writeAttachment(os, partHeader, attachment);
}
}