Show all Headers in a message
var allHeaders = message.getAllHeaders();
while (allHeaders.hasMoreElements())
{
var aHeader = allHeaders.nextElement();
print( aHeader.getName() + " = " + aHeader.getValue());
}
var allHeaders = message.getAllHeaders();
while (allHeaders.hasMoreElements())
{
var aHeader = allHeaders.nextElement();
print( aHeader.getName() + " = " + aHeader.getValue());
}