From acfa9ffc64f56de42049bf5049810c15477729ed Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Fri, 4 Nov 2005 23:21:22 +0000 Subject: Refactored header field values and parameters. --- src/fileAttachment.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/fileAttachment.cpp') diff --git a/src/fileAttachment.cpp b/src/fileAttachment.cpp index 584ba12a..785e0b8e 100644 --- a/src/fileAttachment.cpp +++ b/src/fileAttachment.cpp @@ -29,6 +29,8 @@ #include "vmime/streamContentHandler.hpp" +#include "vmime/contentDispositionField.hpp" + namespace vmime { @@ -78,7 +80,8 @@ void fileAttachment::generatePart(bodyPart& part) const { defaultAttachment::generatePart(part); - ref cdf = part.getHeader()->ContentDisposition(); + ref cdf = part.getHeader()->ContentDisposition(). + dynamicCast (); if (m_fileInfo.hasSize()) cdf->setSize(utility::stringUtils::toString(m_fileInfo.getSize())); if (m_fileInfo.hasFilename()) cdf->setFilename(m_fileInfo.getFilename()); -- cgit v1.2.3