mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-12 10:42:21 -05:00
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
This commit is contained in:
parent
59c424b178
commit
d0c1710ab9
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user