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
1 changed files with 1 additions and 1 deletions

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);
}
}