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:
parent
73c9fe8ed3
commit
59c424b178
|
@ -746,12 +746,12 @@ public class ExchangeSession {
|
||||||
if (attachment == null && partHeader.name == null) {
|
if (attachment == null && partHeader.name == null) {
|
||||||
attachment = attachmentsMap.get(String.valueOf(attachmentIndex));
|
attachment = attachmentsMap.get(String.valueOf(attachmentIndex));
|
||||||
}
|
}
|
||||||
|
attachmentIndex++;
|
||||||
if (attachment == null) {
|
if (attachment == null) {
|
||||||
// only warn, could happen depending on IIS config
|
// only warn, could happen depending on IIS config
|
||||||
//throw new IOException("Attachment " + partHeader.name + " not found in " + messageUrl);
|
//throw new IOException("Attachment " + partHeader.name + " not found in " + messageUrl);
|
||||||
logger.warn("Attachment " + partHeader.name + " not found in " + messageUrl);
|
logger.warn("Attachment " + partHeader.name + " not found in " + messageUrl);
|
||||||
} else {
|
} else {
|
||||||
attachmentIndex++;
|
|
||||||
writeAttachment(os, partHeader, attachment);
|
writeAttachment(os, partHeader, attachment);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue