mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-16 22:45:04 -05:00
Replaced references to K9.INBOX with account.getInboxFolderName()
This commit is contained in:
parent
59b1d57658
commit
c46372b58c
@ -120,13 +120,13 @@ public class Pop3Store extends Store {
|
|||||||
@Override
|
@Override
|
||||||
public List <? extends Folder > getPersonalNamespaces(boolean forceListAll) throws MessagingException {
|
public List <? extends Folder > getPersonalNamespaces(boolean forceListAll) throws MessagingException {
|
||||||
List<Folder> folders = new LinkedList<Folder>();
|
List<Folder> folders = new LinkedList<Folder>();
|
||||||
folders.add(getFolder("INBOX"));
|
folders.add(getFolder(mAccount.getInboxFolderName()));
|
||||||
return folders;
|
return folders;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void checkSettings() throws MessagingException {
|
public void checkSettings() throws MessagingException {
|
||||||
Pop3Folder folder = new Pop3Folder("INBOX");
|
Pop3Folder folder = new Pop3Folder(mAccount.getInboxFolderName());
|
||||||
folder.open(OpenMode.READ_WRITE);
|
folder.open(OpenMode.READ_WRITE);
|
||||||
if (!mCapabilities.uidl) {
|
if (!mCapabilities.uidl) {
|
||||||
/*
|
/*
|
||||||
@ -157,8 +157,9 @@ public class Pop3Store extends Store {
|
|||||||
public Pop3Folder(String name) {
|
public Pop3Folder(String name) {
|
||||||
super(Pop3Store.this.mAccount);
|
super(Pop3Store.this.mAccount);
|
||||||
this.mName = name;
|
this.mName = name;
|
||||||
if (mName.equalsIgnoreCase("INBOX")) {
|
|
||||||
mName = "INBOX";
|
if (mName.equalsIgnoreCase(mAccount.getInboxFolderName())) {
|
||||||
|
mName = mAccount.getInboxFolderName();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -168,7 +169,7 @@ public class Pop3Store extends Store {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!mName.equalsIgnoreCase("INBOX")) {
|
if (!mName.equalsIgnoreCase(mAccount.getInboxFolderName())) {
|
||||||
throw new MessagingException("Folder does not exist");
|
throw new MessagingException("Folder does not exist");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -325,7 +326,7 @@ public class Pop3Store extends Store {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean exists() throws MessagingException {
|
public boolean exists() throws MessagingException {
|
||||||
return mName.equalsIgnoreCase("INBOX");
|
return mName.equalsIgnoreCase(mAccount.getInboxFolderName());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user