Not trying to be a smarta$$ but that's why they provide owners manuals.
I don't have a blackberry anymore but I believe there are other settings to set "number of days" to keep messages. But even if you set to "keep forever", if the device runs out of memory it dumps oldest. The alternative is filling up memory until the entire device crashes potentially causing loss of even more data.