mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-09 18:43:23 +02:00
Get, store and display append limit
This commit is contained in:
@@ -1529,6 +1529,30 @@ public class IMAPStore extends Store
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized String getCapability(String capability)
|
||||
throws MessagingException {
|
||||
IMAPProtocol p = null;
|
||||
try {
|
||||
p = getStoreProtocol();
|
||||
Map<String, String> caps = p.getCapabilities();
|
||||
if (caps != null)
|
||||
for (String cap : caps.values()) {
|
||||
int eq = cap.indexOf('=');
|
||||
if (eq > 0) {
|
||||
String key = cap.substring(0, eq);
|
||||
String value = cap.substring(eq + 1);
|
||||
if (capability.equals(key))
|
||||
return value;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
} catch (ProtocolException pex) {
|
||||
throw new MessagingException(pex.getMessage(), pex);
|
||||
} finally {
|
||||
releaseStoreProtocol(p);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the user name to be used with the PROXYAUTH command.
|
||||
* The PROXYAUTH user name can also be set using the
|
||||
|
||||
Reference in New Issue
Block a user