3.9 Message Buffers

Message will generate new buffers with unique buffer names when you request a message buffer. When you send the message, the buffer isn’t normally killed off. Its name is changed and a certain number of old message buffers are kept alive.


Controls whether to create a new message buffer to compose a message. Valid values include:


Generate the buffer name in the Message way (e.g., *mail*, *news*, *mail to whom*, *news on group*, etc.) and continue editing in the existing buffer of that name. If there is no such buffer, it will be newly created.


Create the new buffer with the name generated in the Message way.


Similar to unique but the buffer name begins with "*unsent ".


Similar to nil but the buffer name is simpler like *mail message*.


If this is a function, call that function with three parameters: The type, the To address and the group name (any of these may be nil). The function should return the new buffer name.

The default value is unsent.


This variable says how many old message buffers to keep. If there are more message buffers than this, the oldest buffer will be killed. The default is 10. If this variable is nil, no old message buffers will ever be killed.


After sending a message, the buffer is renamed from, for instance, ‘*reply to Lars*’ to ‘*sent reply to Lars*’. If you don’t like this, set this variable to a function that renames the buffer in a manner you like. If you don’t want to rename the buffer at all, you can say:

(setq message-send-rename-function 'ignore)

If non-nil, kill the buffer immediately on exit.