vmime
vmime copied to clipboard
How to get filename in vmime 0.9
I am having trouble finding examples of how to do simple things in vmime... How do you get the filename for an attachment?
I have this code that does not work:
vmime::ref vmime::headerField cdf; cdf = hdr.findField(vmime::fields::CONTENT_DISPOSITION); this->attachment_names.push_back( cdf->getName());
But what I get here is the "Content-Disposition" which is the name of the field obviously.
Where is the filename?
Thank You!