Questions about using @Command([ComposeWithReference] on Mail template

Hi,The Forward function of notes mail template use the following formula:

@If(@UserName = @GetProfileField( “CalendarProfile”; “Owner”);

@Command([ComposeWithReference]; “” ; “Memo”; 1 + 2 + 32 + 64);

@Command([ComposeWithReference]; @MailDbName ; “Memo”; 1 + 2 + 32 + 64));

So my question is how get the link from the original mail? the mail created by forwarding does not have $REF field generated, so it seems it is not a response document. the only thing I want to do is get the original mail(it should be a parent document) and do some changes from there, but Ijust can not get the connection, there should be some connection bewteen them.

But Reply function(use “Compose”) created a response document with $REF, so I can get the original mail by it, the forward function does not use “compose” and use “Memo” form, anybody know how to get the connection from the original email?

Thanks in advance,