mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 09:08:49 -05:00
Removed code from ImapStore.internalOpen() that tried to get the path delimeter before SELECTing a mailbox. This shouldn't be a problem since the delimeter
a) is already known if the server supports the NAMESPACE capability. b) is included in the prefix anyway (=also known if namespace was set manually). c) isn't needed when selecting a mailbox because we currently don't support folder hierarchy. So the delimeter is included in the folder name. Fixes issue 1217
This commit is contained in:
parent
f9d39e4814
commit
ec3d9eb9ea
@ -504,24 +504,6 @@ public class ImapStore extends Store
|
|||||||
// 2 OK [READ-WRITE] Select completed.
|
// 2 OK [READ-WRITE] Select completed.
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
||||||
if (mPathDelimeter == null)
|
|
||||||
{
|
|
||||||
List<ImapResponse> nameResponses =
|
|
||||||
executeSimpleCommand(String.format("LIST \"\" \"*%s\"", encodeFolderName(mName)));
|
|
||||||
for (ImapResponse response : nameResponses)
|
|
||||||
{
|
|
||||||
if (response.get(0).equals("LIST"))
|
|
||||||
{
|
|
||||||
mPathDelimeter = response.getString(2);
|
|
||||||
if (K9.DEBUG)
|
|
||||||
Log.d(K9.LOG_TAG, "Got path delimeter '" + mPathDelimeter + "' for " + getLogId());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// executeSimpleCommand("CLOSE");
|
|
||||||
|
|
||||||
String command = String.format((mode == OpenMode.READ_WRITE ? "SELECT" : "EXAMINE") + " \"%s\"",
|
String command = String.format((mode == OpenMode.READ_WRITE ? "SELECT" : "EXAMINE") + " \"%s\"",
|
||||||
encodeFolderName(getPrefixedName()));
|
encodeFolderName(getPrefixedName()));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user