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

Method getMessages

app/src/main/java/com/sun/mail/imap/IMAPFolder.java:1853–1865  ·  view source on GitHub ↗

{@inheritDoc}

()

Source from the content-addressed store, hash-verified

1851 * {@inheritDoc}
1852 */
1853 @Override
1854 public synchronized Message[] getMessages() throws MessagingException {
1855 /*
1856 * Need to override Folder method to throw FolderClosedException
1857 * instead of IllegalStateException if not really closed.
1858 */
1859 checkOpened();
1860 int total = getMessageCount();
1861 Message[] msgs = new Message[total];
1862 for (int i = 1; i <= total; i++)
1863 msgs[i - 1] = messageCache.getMessage(i);
1864 return msgs;
1865 }
1866
1867 /**
1868 * Append the given messages into this folder.

Callers

nothing calls this directly

Calls 3

checkOpenedMethod · 0.95
getMessageCountMethod · 0.95
getMessageMethod · 0.65

Tested by

no test coverage detected