Add message attachment failover for special cases (message not in read only mode)

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@21 3d1905a2-6b24-0410-a738-b14d5a86fcbd
master
mguessan 2007-01-04 16:56:04 +00:00
parent 59c424b178
commit d0c1710ab9
1 changed files with 6 additions and 1 deletions

View File

@ -781,7 +781,7 @@ public class ExchangeSession {
String decodedPath = URIUtil.decode(attachment.href);
if ("message/rfc822".equals(mimeHeader.contentType)) {
String messageAttachmentPath = decodedPath;
String messageAttachmentPath = null;
// Get real attachment path from owa page content
GetMethod method = new GetMethod(URIUtil.encodePath(decodedPath));
@ -797,6 +797,11 @@ public class ExchangeSession {
}
}
// failover, exchange mail attachment
if (messageAttachmentPath == null) {
messageAttachmentPath = messageUrl + "/" + attachment.name;
}
Message attachedMessage = getMessage(messageAttachmentPath);
attachedMessage.write(quotedOs);
} else {