mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 11:12:22 -05:00
Fix sendMail regression after IMAP implementation
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@326 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
db381db85b
commit
e9f138238a
@ -507,6 +507,7 @@ public class ExchangeSession {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// add bcc and other properties
|
// add bcc and other properties
|
||||||
|
if (properties.size() > 0) {
|
||||||
patchMethod = new PropPatchMethod(messageUrl);
|
patchMethod = new PropPatchMethod(messageUrl);
|
||||||
try {
|
try {
|
||||||
// update message with blind carbon copy and other flags
|
// update message with blind carbon copy and other flags
|
||||||
@ -520,6 +521,7 @@ public class ExchangeSession {
|
|||||||
patchMethod.releaseConnection();
|
patchMethod.releaseConnection();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected Message buildMessage(ResponseEntity responseEntity) throws URIException {
|
protected Message buildMessage(ResponseEntity responseEntity) throws URIException {
|
||||||
Message message = new Message();
|
Message message = new Message();
|
||||||
|
@ -41,6 +41,7 @@ public class ImapConnection extends AbstractConnection {
|
|||||||
String commandId = null;
|
String commandId = null;
|
||||||
StringTokenizer tokens;
|
StringTokenizer tokens;
|
||||||
try {
|
try {
|
||||||
|
ExchangeSessionFactory.checkConfig();
|
||||||
sendClient("* OK [CAPABILITY IMAP4REV1 AUTH=LOGIN] IMAP4rev1 DavMail server ready");
|
sendClient("* OK [CAPABILITY IMAP4REV1 AUTH=LOGIN] IMAP4rev1 DavMail server ready");
|
||||||
for (; ;) {
|
for (; ;) {
|
||||||
line = readClient();
|
line = readClient();
|
||||||
@ -368,6 +369,7 @@ public class ImapConnection extends AbstractConnection {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// skip optional date
|
// skip optional date
|
||||||
|
// TODO : replace datereceived
|
||||||
String dateOrSize = tokens.nextToken();
|
String dateOrSize = tokens.nextToken();
|
||||||
if (tokens.hasMoreTokens()) {
|
if (tokens.hasMoreTokens()) {
|
||||||
dateOrSize = tokens.nextToken();
|
dateOrSize = tokens.nextToken();
|
||||||
@ -428,7 +430,7 @@ public class ImapConnection extends AbstractConnection {
|
|||||||
if (commandId != null) {
|
if (commandId != null) {
|
||||||
sendClient(commandId + " BAD unable to handle request: " + e.getMessage());
|
sendClient(commandId + " BAD unable to handle request: " + e.getMessage());
|
||||||
} else {
|
} else {
|
||||||
sendClient("* BAD unable to handle request: " + e.getMessage());
|
sendClient("* BYE unable to handle request: " + e.getMessage());
|
||||||
}
|
}
|
||||||
} catch (IOException e2) {
|
} catch (IOException e2) {
|
||||||
DavGatewayTray.warn("Exception sending error to client", e2);
|
DavGatewayTray.warn("Exception sending error to client", e2);
|
||||||
|
Loading…
Reference in New Issue
Block a user