vmime icon indicating copy to clipboard operation
vmime copied to clipboard

How to get filename in vmime 0.9

Open jjohnson-airlink opened this issue 11 years ago • 0 comments

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!

jjohnson-airlink avatar Apr 03 '14 19:04 jjohnson-airlink