aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/rfc822/MCAttachment.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/rfc822/MCAttachment.cc')
-rw-r--r--src/core/rfc822/MCAttachment.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/rfc822/MCAttachment.cc b/src/core/rfc822/MCAttachment.cc
index c75e689a..b6167941 100644
--- a/src/core/rfc822/MCAttachment.cc
+++ b/src/core/rfc822/MCAttachment.cc
@@ -247,6 +247,17 @@ Data * Attachment::data()
return mData;
}
+String * Attachment::decodedString()
+{
+ if (mData) {
+ return decodedStringForData(mData);
+ }
+ else {
+ return NULL;
+ }
+}
+
+
AbstractPart * Attachment::attachmentsWithMIME(struct mailmime * mime)
{
return attachmentsWithMIMEWithMain(mime, true);