Searched refs:Flag (Results 1 - 25 of 28) sorted by relevance

12

/javamail/mail/src/main/java/javax/mail/
H A DFlags.java50 * A System flag is represented by the <code>Flags.Flag</code>
75 * m.setFlag(Flags.Flag.DELETED, true); // set the DELETED flag
78 * if (m.isSet(Flags.Flag.DELETED))
83 * Flags.Flag[] sf = flags.getSystemFlags();
85 * if (sf[i] == Flags.Flag.DELETED)
87 * else if (sf[i] == Flags.Flag.SEEN)
119 public static final class Flag { class in class:Flags
124 public static final Flag ANSWERED = new Flag(ANSWERED_BIT);
131 public static final Flag DELETE
178 private Flag(int bit) { method in class:Flags.Flag
[all...]
H A DMessage.java538 * @see javax.mail.Flags.Flag
539 * @see javax.mail.Flags.Flag#ANSWERED
540 * @see javax.mail.Flags.Flag#DELETED
541 * @see javax.mail.Flags.Flag#DRAFT
542 * @see javax.mail.Flags.Flag#FLAGGED
543 * @see javax.mail.Flags.Flag#RECENT
544 * @see javax.mail.Flags.Flag#SEEN
547 public boolean isSet(Flags.Flag flag) throws MessagingException {
582 * @param flag Flags.Flag object containing the flag to be set
592 public void setFlag(Flags.Flag fla
[all...]
H A DFolder.java676 * The special flag <code>Flags.Flag.USER </code> indicates that this Folder
745 if (getMessage(i).isSet(Flags.Flag.RECENT))
791 if (!getMessage(i).isSet(Flags.Flag.SEEN))
837 if (getMessage(i).isSet(Flags.Flag.DELETED))
/javamail/mail/src/main/java/com/sun/mail/imap/protocol/
H A DFLAGS.java77 add(Flags.Flag.SEEN);
80 add(Flags.Flag.RECENT);
86 add(Flags.Flag.DELETED);
88 add(Flags.Flag.DRAFT);
93 add(Flags.Flag.ANSWERED);
96 add(Flags.Flag.FLAGGED);
99 add(Flags.Flag.USER);
H A DSearchSequence.java291 Flags.Flag[] sf = flags.getSystemFlags();
297 if (sf[i] == Flags.Flag.DELETED)
299 else if (sf[i] == Flags.Flag.ANSWERED)
301 else if (sf[i] == Flags.Flag.DRAFT)
303 else if (sf[i] == Flags.Flag.FLAGGED)
305 else if (sf[i] == Flags.Flag.RECENT)
307 else if (sf[i] == Flags.Flag.SEEN)
H A DIMAPProtocol.java1570 if (f.contains(Flags.Flag.RECENT)) {
1572 f.remove(Flags.Flag.RECENT); // remove RECENT from copy
2379 Flags.Flag[] sf = flags.getSystemFlags(); // get the system flags
2383 Flags.Flag f = sf[i];
2384 if (f == Flags.Flag.ANSWERED)
2386 else if (f == Flags.Flag.DELETED)
2388 else if (f == Flags.Flag.DRAFT)
2390 else if (f == Flags.Flag.FLAGGED)
2392 else if (f == Flags.Flag.RECENT)
2394 else if (f == Flags.Flag
[all...]
/javamail/mbox/src/main/java/com/sun/mail/mbox/
H A DMboxStore.java56 permFlags.add(Flags.Flag.SEEN);
57 permFlags.add(Flags.Flag.RECENT);
58 permFlags.add(Flags.Flag.DELETED);
59 permFlags.add(Flags.Flag.FLAGGED);
60 permFlags.add(Flags.Flag.ANSWERED);
61 permFlags.add(Flags.Flag.DRAFT);
62 permFlags.add(Flags.Flag.USER);
H A DMboxMessage.java197 boolean seen = isSet(Flags.Flag.SEEN);
213 setFlag(Flags.Flag.SEEN, false);
263 if (!isSet(Flags.Flag.SEEN))
264 setFlag(Flags.Flag.SEEN, true);
325 flags = new Flags(Flags.Flag.RECENT);
330 flags.add(Flags.Flag.SEEN);
332 flags.remove(Flags.Flag.RECENT);
336 flags.add(Flags.Flag.DELETED);
340 flags.add(Flags.Flag.DELETED);
342 flags.add(Flags.Flag
[all...]
H A DMboxFolder.java465 if (flags.contains(Flags.Flag.DELETED))
467 if (flags.contains(Flags.Flag.RECENT))
503 if (expunge && msg.isSet(Flags.Flag.DELETED))
506 msg.isSet(Flags.Flag.RECENT))
507 msg.setFlag(Flags.Flag.RECENT, false);
516 msg.setFlag(Flags.Flag.RECENT, false);
791 if (msg.isSet(Flags.Flag.DELETED)) {
/javamail/demo/src/main/java/internal/
H A Danswer.java176 f.add(Flags.Flag.ANSWERED);
177 f.add(Flags.Flag.FLAGGED);
210 msg.setFlag(Flags.Flag.FLAGGED, true);
213 msg.setFlag(Flags.Flag.ANSWERED, true);
225 msg.setFlag(Flags.Flag.FLAGGED, true);
228 msg.setFlag(Flags.Flag.ANSWERED, true);
266 if (!qm.isSet(Flags.Flag.ANSWERED)) {
269 qm.setFlag(Flags.Flag.ANSWERED, true);
272 msg.setFlag(Flags.Flag.FLAGGED, true);
282 msg.setFlag(Flags.Flag
[all...]
H A Dtestidle.java461 Flags.Flag[] sf = flags.getSystemFlags(); // get the system flags
466 Flags.Flag f = sf[i];
467 if (f == Flags.Flag.ANSWERED)
469 else if (f == Flags.Flag.DELETED)
471 else if (f == Flags.Flag.DRAFT)
473 else if (f == Flags.Flag.FLAGGED)
475 else if (f == Flags.Flag.RECENT)
477 else if (f == Flags.Flag.SEEN)
/javamail/demo/src/main/java/
H A Dsearch.java257 Flags.Flag[] sf = flags.getSystemFlags(); // get the system flags
262 Flags.Flag f = sf[i];
263 if (f == Flags.Flag.ANSWERED)
265 else if (f == Flags.Flag.DELETED)
267 else if (f == Flags.Flag.DRAFT)
269 else if (f == Flags.Flag.FLAGGED)
271 else if (f == Flags.Flag.RECENT)
273 else if (f == Flags.Flag.SEEN)
H A Duidmsgshow.java264 Flags.Flag[] sf = flags.getSystemFlags(); // get the system flags
269 Flags.Flag f = sf[i];
270 if (f == Flags.Flag.ANSWERED)
272 else if (f == Flags.Flag.DELETED)
274 else if (f == Flags.Flag.DRAFT)
276 else if (f == Flags.Flag.FLAGGED)
278 else if (f == Flags.Flag.RECENT)
280 else if (f == Flags.Flag.SEEN)
H A Dmsgshow.java389 Flags.Flag[] sf = flags.getSystemFlags(); // get the system flags
394 Flags.Flag f = sf[i];
395 if (f == Flags.Flag.ANSWERED)
397 else if (f == Flags.Flag.DELETED)
399 else if (f == Flags.Flag.DRAFT)
401 else if (f == Flags.Flag.FLAGGED)
403 else if (f == Flags.Flag.RECENT)
405 else if (f == Flags.Flag.SEEN)
H A Dmover.java154 folder.setFlags(msgs, new Flags(Flags.Flag.DELETED), true);
159 if (!msgs[i].isSet(Flags.Flag.DELETED))
/javamail/mail/src/main/java/javax/mail/search/
H A DFlagTerm.java55 * absence of the specified Flag. If <code>true</code>,
122 Flags.Flag[] sf = flags.getSystemFlags();
/javamail/mail/src/test/java/javax/mail/search/
H A DSearchTermSerializationTest.java66 new FlagTerm(new Flags(Flags.Flag.RECENT), true),
/javamail/taglib/src/main/java/demo/
H A DListMessagesTag.java92 FlagTerm ft = new FlagTerm(new Flags(Flags.Flag.DELETED), false);
/javamail/mail/src/main/java/com/sun/mail/imap/
H A DIMAPInputStream.java268 !msg.isSet(Flags.Flag.SEEN))
269 msg.setFlag(Flags.Flag.SEEN, true);
/javamail/mail/src/oldtest/java/javax/mail/internet/
H A Dmessagecachetest.java249 msg.setFlag(Flags.Flag.DELETED, true);
266 msg.setFlag(Flags.Flag.DELETED, true);
284 msg.setFlag(Flags.Flag.DELETED, true);
302 msg.setFlag(Flags.Flag.DELETED, true);
/javamail/mbox/src/main/java/com/sun/mail/remote/
H A DRemoteStore.java112 remoteInbox.setFlags(msgs, new Flags(Flags.Flag.DELETED), true);
/javamail/mail/src/test/java/com/sun/mail/imap/
H A DIMAPMessageNumberOutOfRangeTest.java93 new FlagTerm(new Flags(Flags.Flag.RECENT), true));
/javamail/
H A Dmail.sig63 cons public init(javax.mail.Flags$Flag)
65 innr public final static Flag
69 meth public boolean contains(javax.mail.Flags$Flag)
75 meth public javax.mail.Flags$Flag[] getSystemFlags()
77 meth public void add(javax.mail.Flags$Flag)
80 meth public void remove(javax.mail.Flags$Flag)
85 CLSS public final static javax.mail.Flags$Flag
87 fld public final static javax.mail.Flags$Flag ANSWERED
88 fld public final static javax.mail.Flags$Flag DELETED
89 fld public final static javax.mail.Flags$Flag DRAF
[all...]
/javamail/mail/src/main/java/com/sun/mail/pop3/
H A DPOP3Folder.java261 if (m.isSet(Flags.Flag.DELETED))
/javamail/mail/src/main/java/javax/mail/internet/
H A DMimeMessage.java1638 * {@link javax.mail.Flags.Flag#ANSWERED ANSWERED} flag is set
1759 private static final Flags answeredFlag = new Flags(Flags.Flag.ANSWERED);
2100 * @see javax.mail.Flags.Flag
2101 * @see javax.mail.Flags.Flag#ANSWERED
2102 * @see javax.mail.Flags.Flag#DELETED
2103 * @see javax.mail.Flags.Flag#DRAFT
2104 * @see javax.mail.Flags.Flag#FLAGGED
2105 * @see javax.mail.Flags.Flag#RECENT
2106 * @see javax.mail.Flags.Flag#SEEN
2108 public synchronized boolean isSet(Flags.Flag fla
[all...]

Completed in 56 milliseconds

12