message-max-buffers

message-max-buffers is a variable defined in `message.el'.
Its value is
10


Documentation:
*How many buffers to keep before starting to kill them off.

You can customize this variable.