aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2006-09-04 16:16:00 +0000
committerVincent Richard <[email protected]>2006-09-04 16:16:00 +0000
commit4927c22948009c6bfa7157fe75d3e165bc8fc2a6 (patch)
tree62069ffb146b98f437c982a94f7f54b39e790c97
parentFixed parsing when space occurs at the end of the field value. (diff)
downloadvmime-4927c22948009c6bfa7157fe75d3e165bc8fc2a6.tar.gz
vmime-4927c22948009c6bfa7157fe75d3e165bc8fc2a6.zip
Attachment [file]name.
-rw-r--r--src/defaultAttachment.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/defaultAttachment.cpp b/src/defaultAttachment.cpp
index 8861131c..10676dc4 100644
--- a/src/defaultAttachment.cpp
+++ b/src/defaultAttachment.cpp
@@ -24,6 +24,7 @@
#include "vmime/defaultAttachment.hpp"
#include "vmime/contentDisposition.hpp"
+#include "vmime/contentDispositionField.hpp"
#include "vmime/encoding.hpp"
@@ -93,6 +94,7 @@ void defaultAttachment::generatePart(ref <bodyPart> part) const
if (!m_desc.isEmpty()) part->getHeader()->ContentDescription()->setValue(m_desc);
part->getHeader()->ContentTransferEncoding()->setValue(m_encoding);
part->getHeader()->ContentDisposition()->setValue(contentDisposition(contentDispositionTypes::ATTACHMENT));
+ part->getHeader()->ContentDisposition().dynamicCast <contentDispositionField>()->setFilename(m_name);
// Set contents
part->getBody()->setContents(m_data);