Set the specified flags on the messages specified in the array. This will result in appropriate MessageChangedEvents being delivered to any MessageChangedListener registered on this Message's containing folder. Note that the specified Message objects must belong to this folder.
(Message[] msgs, Flags flag, boolean value)
| 1063 | * @see javax.mail.event.MessageChangedEvent |
| 1064 | */ |
| 1065 | public synchronized void setFlags(Message[] msgs, |
| 1066 | Flags flag, boolean value) throws MessagingException { |
| 1067 | for (int i = 0; i < msgs.length; i++) { |
| 1068 | try { |
| 1069 | msgs[i].setFlags(flag, value); |
| 1070 | } catch (MessageRemovedException me) { |
| 1071 | // This message is expunged, skip |
| 1072 | } |
| 1073 | } |
| 1074 | } |
| 1075 | |
| 1076 | /** |
| 1077 | * Set the specified flags on the messages numbered from start |
nothing calls this directly
no test coverage detected