/** * Set the specified flags on this message. * * @param msg the message number * @param flags the flags * @param set true to set, false to clear * @exception ProtocolException for protocol failures */ public void storeFlags(int msg, Flags flags, boolean set) throws ProtocolException { storeFlags(String.valueOf(msg), flags, set); }
/** * Set the specified flags on this message. * * @param msg the message number * @param flags the flags * @param set true to set, false to clear * @exception ProtocolException for protocol failures */ public void storeFlags(int msg, Flags flags, boolean set) throws ProtocolException { storeFlags(String.valueOf(msg), flags, set); }
public void storeFlags(int start, int end, Flags flags, boolean set) throws ProtocolException { storeFlags(String.valueOf(start) + ":" + String.valueOf(end), flags, set); }
public void storeFlags(int start, int end, Flags flags, boolean set) throws ProtocolException { storeFlags(String.valueOf(start) + ":" + String.valueOf(end), flags, set); }
public void storeFlags(MessageSet[] msgsets, Flags flags, boolean set) throws ProtocolException { storeFlags(MessageSet.toString(msgsets), flags, set); }
public void storeFlags(MessageSet[] msgsets, Flags flags, boolean set) throws ProtocolException { storeFlags(MessageSet.toString(msgsets), flags, set); }
/** * Set/Unset the given flags in this message. */ public synchronized void setFlags(Flags flag, boolean set) throws MessagingException { // Acquire MessageCacheLock, to freeze seqnum. synchronized(getMessageCacheLock()) { try { IMAPProtocol p = getProtocol(); checkExpunged(); // Insure that this message is not expunged p.storeFlags(getSequenceNumber(), flag, set); } catch (ConnectionException cex) { throw new FolderClosedException(folder, cex.getMessage()); } catch (ProtocolException pex) { throw new MessagingException(pex.getMessage(), pex); } } }
/** * Set/Unset the given flags in this message. */ @Override public synchronized void setFlags(Flags flag, boolean set) throws MessagingException { // Acquire MessageCacheLock, to freeze seqnum. synchronized(getMessageCacheLock()) { try { IMAPProtocol p = getProtocol(); checkExpunged(); // Insure that this message is not expunged p.storeFlags(getSequenceNumber(), flag, set); } catch (ConnectionException cex) { throw new FolderClosedException(folder, cex.getMessage()); } catch (ProtocolException pex) { throw new MessagingException(pex.getMessage(), pex); } } }
/** * Set the specified flags for the given array of messages. */ public synchronized void setFlags(Message[] msgs, Flags flag, boolean value) throws MessagingException { checkOpened(); checkFlags(flag); // validate flags if (msgs.length == 0) // boundary condition return; synchronized(messageCacheLock) { try { IMAPProtocol p = getProtocol(); MessageSet[] ms = Utility.toMessageSetSorted(msgs, null); if (ms == null) throw new MessageRemovedException( "Messages have been removed"); p.storeFlags(ms, flag, value); } catch (ConnectionException cex) { throw new FolderClosedException(this, cex.getMessage()); } catch (ProtocolException pex) { throw new MessagingException(pex.getMessage(), pex); } } }
/** * Set the specified flags on this message. <p> */ public void storeFlags(int msg, Flags flags, boolean set) throws ProtocolException { storeFlags(String.valueOf(msg), flags, set); }
/** * Set the specified flags for the given array of messages. */ @Override public synchronized void setFlags(Message[] msgs, Flags flag, boolean value) throws MessagingException { checkOpened(); checkFlags(flag); // validate flags if (msgs.length == 0) // boundary condition return; synchronized(messageCacheLock) { try { IMAPProtocol p = getProtocol(); MessageSet[] ms = Utility.toMessageSetSorted(msgs, null); if (ms == null) throw new MessageRemovedException( "Messages have been removed"); p.storeFlags(ms, flag, value); } catch (ConnectionException cex) { throw new FolderClosedException(this, cex.getMessage()); } catch (ProtocolException pex) { throw new MessagingException(pex.getMessage(), pex); } } }
/** * Set the specified flags on this message. * * @param msg the message number * @param flags the flags * @param set true to set, false to clear * @exception ProtocolException for protocol failures */ public void storeFlags(int msg, Flags flags, boolean set) throws ProtocolException { storeFlags(String.valueOf(msg), flags, set); }
/** * Set the specified flags on this message. * * @param msg the message number * @param flags the flags * @param set true to set, false to clear * @exception ProtocolException for protocol failures */ public void storeFlags(int msg, Flags flags, boolean set) throws ProtocolException { storeFlags(String.valueOf(msg), flags, set); }
/** * Set the specified flags on this message. <p> */ public void storeFlags(int msg, Flags flags, boolean set) throws ProtocolException { storeFlags(String.valueOf(msg), flags, set); }
public void storeFlags(int start, int end, Flags flags, boolean set) throws ProtocolException { storeFlags(String.valueOf(start) + ":" + String.valueOf(end), flags, set); }
public void storeFlags(int start, int end, Flags flags, boolean set) throws ProtocolException { storeFlags(String.valueOf(start) + ":" + String.valueOf(end), flags, set); }
public void storeFlags(int start, int end, Flags flags, boolean set) throws ProtocolException { storeFlags(String.valueOf(start) + ":" + String.valueOf(end), flags, set); }
public void storeFlags(MessageSet[] msgsets, Flags flags, boolean set) throws ProtocolException { storeFlags(MessageSet.toString(msgsets), flags, set); }
public void storeFlags(MessageSet[] msgsets, Flags flags, boolean set) throws ProtocolException { storeFlags(MessageSet.toString(msgsets), flags, set); }
public void storeFlags(MessageSet[] msgsets, Flags flags, boolean set) throws ProtocolException { storeFlags(MessageSet.toString(msgsets), flags, set); }