From David Ashman : added read message property (not yet needed until IMAP support)

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@120 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2008-02-01 09:47:34 +00:00
parent ae2bd86275
commit fa216c862e
1 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,7 @@ public class ExchangeSession {
MESSAGE_REQUEST_PROPERTIES.add("urn:schemas:mailheader:mime-version");
MESSAGE_REQUEST_PROPERTIES.add("urn:schemas:mailheader:content-class");
MESSAGE_REQUEST_PROPERTIES.add("urn:schemas:httpmail:hasattachment");
MESSAGE_REQUEST_PROPERTIES.add("urn:schemas:httpmail:read");
// needed only when full headers not found
MESSAGE_REQUEST_PROPERTIES.add("urn:schemas:mailheader:received");
@ -474,6 +475,8 @@ public class ExchangeSession {
message.hasAttachment = "1".equals(prop.getPropertyAsString());
} else if ("received".equals(prop.getLocalName())) {
message.received = prop.getPropertyAsString();
} else if ("read".equals(prop.getLocalName())) {
message.read = "1".equals(prop.getPropertyAsString());
} else if ("date".equals(prop.getLocalName())) {
message.date = prop.getPropertyAsString();
} else if ("message-id".equals(prop.getLocalName())) {
@ -708,6 +711,7 @@ public class ExchangeSession {
public String from;
public String subject;
public String priority;
public boolean read;
protected List<Attachment> attachments;