Get all the headers for this header_name. Note that certain headers can be codified as RFC 2047 if they contain some characters not US-ASCII and those should be decoded. This implementation obtains the headers of the headers of the InternetHeaders object.

1 mail.mimeMessage.getHeader

<mail.mimeMessage.getHeader name='name'>
    <MimeMessage /> +
</mail.mimeMessage.getHeader>
Example

Get the name of the header from the message.

Copy
<xsql-script name=''>
    <body>
    	<select prefix='m_'>
    	    <columns>mail_message</columns>
    	    <from table='wic_user_maildata ' />
    	    <where>
    	    	uid = 1949240
    	    </where>
    	</select>
    	   	
    	<set name='m_mimeMessage'>
    		<mail.mimeMessage>
    			<m_mail_message />
    		</mail.mimeMessage>
    	</set>
 		
		<println>
			<mail.mimeMessage.getHeader name='From'>
			 	<MimePart />
			</mail.mimeMessage.getHeader>   	
		</println>
 	  	 	
    </body>
</xsql-script>