aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/constants.cpp2
-rw-r--r--src/contentTypeField.cpp12
2 files changed, 14 insertions, 0 deletions
diff --git a/src/constants.cpp b/src/constants.cpp
index ee13e0b0..f7c52fbb 100644
--- a/src/constants.cpp
+++ b/src/constants.cpp
@@ -41,12 +41,14 @@ namespace mediaTypes
const string::value_type* const TEXT_HTML = "html";
const string::value_type* const TEXT_RICHTEXT = "richtext";
const string::value_type* const TEXT_ENRICHED = "enriched";
+ const string::value_type* const TEXT_RFC822_HEADERS = "rfc822-headers"; // RFC-1892
const string::value_type* const MULTIPART_MIXED = "mixed";
const string::value_type* const MULTIPART_RELATED = "related";
const string::value_type* const MULTIPART_ALTERNATIVE = "alternative";
const string::value_type* const MULTIPART_PARALLEL = "parallel";
const string::value_type* const MULTIPART_DIGEST = "digest";
+ const string::value_type* const MULTIPART_REPORT = "report"; // RFC-1892
const string::value_type* const MESSAGE_RFC822 = "rfc822";
const string::value_type* const MESSAGE_PARTIAL = "partial";
diff --git a/src/contentTypeField.cpp b/src/contentTypeField.cpp
index 0f2dc81f..61b4e5e4 100644
--- a/src/contentTypeField.cpp
+++ b/src/contentTypeField.cpp
@@ -62,4 +62,16 @@ void contentTypeField::setCharset(const charset& ch)
}
+const string contentTypeField::getReportType() const
+{
+ return (dynamic_cast <const defaultParameter&>(*findParameter("report-type")).getValue());
+}
+
+
+void contentTypeField::setReportType(const string& reportType)
+{
+ dynamic_cast <defaultParameter&>(*getParameter("report-type")).setValue(reportType);
+}
+
+
} // vmime