What you are looking for is
@Command([ComposeWithReference]; server : database ; form ; flags)
From Notes help: Flags:
Number. Optional. One or more of the following reference attributes. Combine attributes by adding them. Defaults to flags 3 plus 4. You must supply this parameter in Web applications. ... 16 -- Removes attachments, images, and other large objects from the reference copy, replacing them (except on the Web) with text statements in brackets.
Sample code: @Command([ComposeWithReference];"":"";"Reply"; 19) => flags 3 + 16
EDIT: If you custommize a mail file / mail template, add the following formular before the @Command:
@Environment("MailStEd";"9");
This makes sure you make a ReplyToAll
So the working code should look more or less like this (customize flags to match your needs):
@Environment("MailStEd";"9");
@Command([ComposeWithReference];"":"";"Reply"; 19)