private int correctForExpungedMessages(int absoluteMsn) {
        int correctedMsn = absoluteMsn;
        // Loop through the expunged list backwards, adjusting the msn as we go.
        for (int i = expungedMsns.size() - 1; i >= 0; i--) {
            int expunged = expungedMsns.get(i);
            if (expunged <= absoluteMsn) {
                correctedMsn++;
            }
        }
        return correctedMsn;
    }
private int correctForExpungedMessages ( int absoluteMsn ) { int correctedMsn = absoluteMsn ; for ( int i = expungedMsns . size ( ) - 1 ; i >= 0 ; i -- ) { int expunged = expungedMsns . get ( i ) ; if ( expunged <= absoluteMsn ) { correctedMsn ++ ; } } return correctedMsn ; }
Adjust an actual mailbox msn for the expunged messages in this mailbox that have not
yet been notified.
TODO - need a test for this