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

Method checkFlags

app/src/main/java/com/sun/mail/imap/IMAPFolder.java:501–513  ·  view source on GitHub ↗
(Flags flags)

Source from the content-addressed store, hash-verified

499 * and also verify that the folder allows setting flags.
500 */
501 private void checkFlags(Flags flags) throws MessagingException {
502 assert Thread.holdsLock(this);
503 if (mode != READ_WRITE)
504 throw new IllegalStateException(
505 "Cannot change flags on READ_ONLY folder: " + fullName
506 );
507 /*
508 if (!availableFlags.contains(flags))
509 throw new MessagingException(
510 "These flags are not supported by this implementation"
511 );
512 */
513 }
514
515 /**
516 * Get the name of this folder.

Callers 1

setFlagsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected