mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-24 08:38:51 -05:00
Removed unneeded header fields from WebDav requests. Fix for some instances of subfolders not working.
This commit is contained in:
parent
f5c4982c1d
commit
18c51bae5c
@ -564,6 +564,14 @@ public class WebDavStore extends Store {
|
|||||||
this.mLocalUsername = WebDavStore.this.mUsername;
|
this.mLocalUsername = WebDavStore.this.mUsername;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* In some instances, it is possible that our folder objects have been collected,
|
||||||
|
* but getPersonalNamespaces() isn't called again (ex. Android destroys the email client).
|
||||||
|
* Perform an authentication to get the appropriate URLs in place again
|
||||||
|
*/
|
||||||
|
if (needAuth()) {
|
||||||
|
authenticate();
|
||||||
|
}
|
||||||
|
|
||||||
//this.mFolderUrl = WebDavStore.this.mUrl + "/Exchange/" + this.mLocalUsername + "/" + encodedName;
|
//this.mFolderUrl = WebDavStore.this.mUrl + "/Exchange/" + this.mLocalUsername + "/" + encodedName;
|
||||||
this.mFolderUrl = WebDavStore.this.mUrl + encodedName;
|
this.mFolderUrl = WebDavStore.this.mUrl + encodedName;
|
||||||
@ -1625,8 +1633,6 @@ public class WebDavStore extends Store {
|
|||||||
this.mEnvelope.setReadStatus(true);
|
this.mEnvelope.setReadStatus(true);
|
||||||
this.mTempRead = true;
|
this.mTempRead = true;
|
||||||
}
|
}
|
||||||
} else if (tagName.equals("received")) {
|
|
||||||
this.mReceived = this.mReceived + value;
|
|
||||||
} else if (tagName.equals("mime-version")) {
|
} else if (tagName.equals("mime-version")) {
|
||||||
this.mEnvelope.addHeader("MIME-Version", value);
|
this.mEnvelope.addHeader("MIME-Version", value);
|
||||||
} else if (tagName.equals("content-type")) {
|
} else if (tagName.equals("content-type")) {
|
||||||
@ -1660,12 +1666,8 @@ public class WebDavStore extends Store {
|
|||||||
this.mTo = this.mTo + value;
|
this.mTo = this.mTo + value;
|
||||||
} else if (tagName.equals("in-reply-to")) {
|
} else if (tagName.equals("in-reply-to")) {
|
||||||
this.mEnvelope.addHeader("In-Reply-To", value);
|
this.mEnvelope.addHeader("In-Reply-To", value);
|
||||||
} else if (tagName.equals("return-path")) {
|
|
||||||
this.mEnvelope.addHeader("Return-Path", value);
|
|
||||||
} else if (tagName.equals("cc")) {
|
} else if (tagName.equals("cc")) {
|
||||||
this.mCc = this.mCc + value;
|
this.mCc = this.mCc + value;
|
||||||
} else if (tagName.equals("references")) {
|
|
||||||
this.mEnvelope.addHeader("References", value);
|
|
||||||
} else if (tagName.equals("getcontentlength")) {
|
} else if (tagName.equals("getcontentlength")) {
|
||||||
this.mEnvelope.addHeader("Content-Length", value);
|
this.mEnvelope.addHeader("Content-Length", value);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user