Retrieves email messages from the folder specified in the enclosed SQL Select search string.

<jrun:getmail host=”hostname” [port=”port”]
	[timeout=”3000|timeout in ms.]
	username=”user” password=”password”
	protocol=”imap|pop3” id=”variable name
	to hold the messages” [scope=”scope”]>
Select *|[mail headers,]+ from {folder} where {search terms in JavaMail API}
</jrun:getmail>
or
<jrun:getmail session=”JavaMail session”
	username=”user” password=”password”
	protocol=”imap|pop3” id=”variable name
	to hold the messages” [scope=”scope”]>
Select *|[mail headers,]+ from {folder} where {search terms in JavaMail API}
</jrun:getmail>