Searched refs:Flags (Results 1 - 25 of 32) sorted by relevance

12

/javamail/mail/src/main/java/com/sun/mail/imap/protocol/
H A DFLAGS.java43 import javax.mail.Flags;
52 public class FLAGS extends Flags implements Item {
77 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 DMailboxInfo.java46 import javax.mail.Flags;
59 public Flags availableFlags = null;
61 public Flags permanentFlags = null;
157 permanentFlags = new Flags(availableFlags);
159 permanentFlags = new Flags();
H A DSearchSequence.java290 Flags flags = term.getFlags();
291 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)
/javamail/mbox/src/main/java/com/sun/mail/mbox/
H A DMboxStore.java51 static Flags permFlags;
55 permFlags = new Flags();
56 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.java61 Flags origFlags;
197 boolean seen = isSet(Flags.Flag.SEEN);
213 setFlag(Flags.Flag.SEEN, false);
224 public void setFlags(Flags newFlags, boolean set)
226 Flags oldFlags = (Flags)flags.clone();
263 if (!isSet(Flags.Flag.SEEN))
264 setFlag(Flags.Flag.SEEN, true);
325 flags = new Flags(Flags
[all...]
/javamail/mail/src/main/java/javax/mail/search/
H A DFlagTerm.java46 * This class implements comparisons for Message Flags.
64 * Flags object containing the flags to test.
68 private Flags flags;
75 * @param flags Flags object containing the flags to check for
78 public FlagTerm(Flags flags, boolean set) {
84 * Return the Flags to test.
88 public Flags getFlags() {
89 return (Flags)flags.clone();
110 Flags f = msg.getFlags();
118 // Return true if ALL flags in the passed in Flags
[all...]
/javamail/mail/src/main/java/javax/mail/
H A DFlags.java47 * The Flags class represents the set of flags on a Message. Flags
50 * A System flag is represented by the <code>Flags.Flag</code>
57 * <code>getPermanentFlags</code> method on a Folder returns a Flags
61 * A Flags object is serializable so that (for example) the
62 * use of Flags objects in search terms can be serialized
75 * m.setFlag(Flags.Flag.DELETED, true); // set the DELETED flag
78 * if (m.isSet(Flags.Flag.DELETED))
82 * Flags flags = m.getFlags();
83 * Flags
100 public class Flags implements Cloneable, Serializable { class in inherits:Cloneable,Serializable
187 public Flags() { } method in class:Flags
195 public Flags(Flags flags) { method in class:Flags
206 public Flags(Flag flag) { method in class:Flags
215 public Flags(String flag) { method in class:Flags
[all...]
H A DMessage.java516 * Returns a <code>Flags</code> object containing the flags for
519 * Modifying any of the flags in this returned Flags object will
523 * @return Flags object containing the flags for this message
524 * @see javax.mail.Flags
528 public abstract Flags getFlags() throws MessagingException;
538 * @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
[all...]
H A DFolder.java673 * Get the permanent flags supported by this Folder. Returns a Flags
676 * The special flag <code>Flags.Flag.USER </code> indicates that this Folder
684 public abstract Flags getPermanentFlags();
745 if (getMessage(i).isSet(Flags.Flag.RECENT))
791 if (!getMessage(i).isSet(Flags.Flag.SEEN))
837 if (getMessage(i).isSet(Flags.Flag.DELETED))
1047 * optimize the operation of setting Flags for a group of messages,
1058 * @param flag Flags object containing the flags to be set
1067 Flags flag, boolean value) throws MessagingException {
1086 * optimize the operation of setting Flags fo
[all...]
/javamail/demo/src/main/java/internal/
H A Danswer.java175 Flags f = new Flags();
176 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
[all...]
H A Dtestidle.java459 Flags flags = m.getFlags();
461 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/mail/src/test/java/com/sun/mail/imap/
H A DIMAPMessageNumberOutOfRangeTest.java50 import javax.mail.Flags;
91 Flags f = msg.getFlags();
93 new FlagTerm(new Flags(Flags.Flag.RECENT), true));
/javamail/mail/src/main/java/com/sun/mail/pop3/
H A DDefaultFolder.java126 public Flags getPermanentFlags() {
127 return new Flags(); // empty flags object
H A DPOP3Message.java91 public synchronized void setFlags(Flags newFlags, boolean set)
93 Flags oldFlags = (Flags)flags.clone();
/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/demo/src/main/java/
H A Dsearch.java255 Flags flags = m.getFlags();
257 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.java158 // Attributes & Flags for ALL messages ..
262 Flags flags = m.getFlags();
264 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
[all...]
H A Dmsgshow.java200 // Attributes & Flags for all messages ..
387 Flags flags = m.getFlags();
389 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
[all...]
H A Dmover.java154 folder.setFlags(msgs, new Flags(Flags.Flag.DELETED), true);
156 // Dump out the Flags of the moved messages, to insure that
159 if (!msgs[i].isSet(Flags.Flag.DELETED))
/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/main/java/com/sun/mail/imap/
H A DIMAPNestedMessage.java145 public synchronized void setFlags(Flags flag, boolean set)
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/mail/src/main/java/javax/mail/internet/
H A DMimeMessage.java133 * The Flags for this message.
135 protected Flags flags;
185 * object. The <code>flags</code> field is set to an empty Flags
194 flags = new Flags(); // empty flags object
214 flags = new Flags(); // empty Flags object
236 flags = new Flags();
270 flags = new Flags(); // empty Flags object
1638 * {@link javax.mail.Flags
[all...]

Completed in 303 milliseconds

12