Returns the value of the field header of "Subject". Returns null if the field subject is not available or its value is absent.
If the subject is coded in RFC 2047, is decoded and converted in Unicode. If the decoding or the convertion fails, the original data are returned just as it is.
This implementation uses the methode getHeader to obtain the required header field.
1 mail.mimeMessage.getSubject
<mail.mimeMessage.getSubject>
<MimeMessage /> +
</mail.mimeMessage.getSubject>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
EMimeMessage | MimeMessage |
Returns | |
---|---|
Type | Description |
String |
Example
Obtain the subject of 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.getSubject> <MimePart /> </mail.mimeMessage.getSubject> </println> </body> </xsql-script>