Problem in getting file name from email attachments from Lotus notes server
843830Feb 21 2003 — edited Apr 14 2003Hi ALL,
We are using Lotus Notes mail server. I am trying to write mail client to extract email attcahments from Lotus Notes server using Java mail API. When I trying to use Part.getFileName() to get the file name from attachments.
I am getting varying results at different scenarios.
1. I am getting file name similar to the following for one email
=?iso-8859-1?Q?TESTFile.csv?=
2. I am getting null value in some other cases . For example the email attachment in the undeliverable messages from "System Administrator" comes with null value when I use Part.getFileName(). I could see the attachment with name in the lotus notes client , but could not get via Java Mail API.
3. I am getting correct file name whenever an email with attachment is sent originated from lotus notes email client.
Can any one help me to understand why this is happening and how can I get the file names consistently from attachments using Java Mail API
I will appreciate any help on this.
Thanks in Advance.
Bala