MCPcopy Create free account
hub / github.com/M66B/FairEmail / id

Method id

app/src/main/java/com/sun/mail/imap/IMAPStore.java:2326–2345  ·  view source on GitHub ↗

Send the IMAP ID command (if supported by the server) and return the result from the server. The ID command identfies the client to the server and returns information about the server to the client. See RFC 2971 . The returned Map is unmodifiable. @

(Map<String, String> clientParams)

Source from the content-addressed store, hash-verified

2324 * @since JavaMail 1.5.1
2325 */
2326 public synchronized Map<String, String> id(Map<String, String> clientParams)
2327 throws MessagingException {
2328 checkConnected();
2329 Map<String, String> serverParams = null;
2330
2331 IMAPProtocol p = null;
2332 try {
2333 p = getStoreProtocol("id");
2334 serverParams = p.id(clientParams);
2335 } catch (BadCommandException bex) {
2336 throw new MessagingException("ID not supported", bex);
2337 } catch (ConnectionException cex) {
2338 throw new StoreClosedException(this, cex.getMessage());
2339 } catch (ProtocolException pex) {
2340 throw new MessagingException(pex.getMessage(), pex);
2341 } finally {
2342 releaseStoreProtocol(p);
2343 }
2344 return serverParams;
2345 }
2346
2347 /**
2348 * Handle notifications and alerts.

Callers 5

_connectMethod · 0.95
reportEmptyMessageMethod · 0.45
loginMethod · 0.45
ByteSizeLongMethod · 0.45

Calls 5

checkConnectedMethod · 0.95
getStoreProtocolMethod · 0.95
idMethod · 0.95
releaseStoreProtocolMethod · 0.95
getMessageMethod · 0.65

Tested by

no test coverage detected