response.commandComplete( this );
}
private void storeFlags( SimpleImapMessage imapMessage, StoreDirective directive, MessageFlags newFlags )
{
MessageFlags messageFlags = imapMessage.getFlags();
if ( directive.getSign() == 0 ) {
messageFlags.setAll( newFlags );
}
else if ( directive.getSign() < 0 ) {
messageFlags.removeAll( newFlags );
}
else if ( directive.getSign() > 0 ) {
messageFlags.addAll( newFlags );
}
}