Get the Filename associated to this part, if is possible. Useful if this part represents an "attachment" which was added from a file.
The Filename will be usually a simple name, does not include directory components.
1 mail.mimePart.getFileName
<mail.mimePart.getFileName>
<Part /> +
</mail.mimePart.getFileName>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
EPart | Part |
Returns | |
---|---|
Type | Description |
String |
Example
Obtain the name of the file.
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> <set name='m_mail_parts_array'> <mail.mimePart.getParts><m_mimeMessage /></mail.mimePart.getParts> </set> <iterator name='part' index='idx'> <in><m_mail_parts_array /></in> <do> <println> <mail.mimePart.getFileName><part /></mail.mimePart.getFileName> </println> </do> </iterator> </body> </xsql-script>