The query command works essentially the same under the email gateway is it does under the command line; send a mail message to the gateway with the same subject line as you would pass to the query command, and you should get an appropriate response shortly:

[vputz@yak_prime temp]$ mail yaktrack
Subject: query defect defect[submitterid="vputz"]/synopsis
(presses control-d to terminate message)
Cc: (presses return)
Null message body; hope that's ok
[vputz@yak_prime temp]$ mail
Mail version 8.1 6/6/93.  Type ? for help.
"/var/spool/mail/vputz": 1 message 1 new
>N  1 yaktrack@yak_prime.w  Tue May  9 10:02  13/566  
& 1
Message 1:
From yaktrack@yak_prime.wingedyak.com  Tue May  9 10:02:38 2000
Date: Tue, 9 May 2000 10:02:38 -0600
From: yaktrack@yak_prime.wingedyak.com
To: vputz@yak_prime.wingedyak.com

<synopsis>New version's installation program highly unstable; addresses hardware detonator registers in an unsafe manner</synopsis>