diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-02-26 16:29:37 +0100 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-02-26 16:29:37 +0100 |
| commit | efdfd9ce551dde9707d0fe2ed1108a43369d835e (patch) | |
| tree | 56a92ca234c972e76624061ca0962eb6ac03d3db /lib/Plugins/Mailx.cpp | |
| parent | 5dc43e9595943ab5a1e8045ced5f6040f94e1180 (diff) | |
| parent | db760442ecdbf776648fbd19aa32083722e5b10f (diff) | |
| download | abrt-efdfd9ce551dde9707d0fe2ed1108a43369d835e.tar.gz abrt-efdfd9ce551dde9707d0fe2ed1108a43369d835e.tar.xz abrt-efdfd9ce551dde9707d0fe2ed1108a43369d835e.zip | |
Merge branch 'master' of git://git.fedorahosted.org/git/crash-catcher
Diffstat (limited to 'lib/Plugins/Mailx.cpp')
| -rw-r--r-- | lib/Plugins/Mailx.cpp | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/lib/Plugins/Mailx.cpp b/lib/Plugins/Mailx.cpp index a320d3e..0f0922f 100644 --- a/lib/Plugins/Mailx.cpp +++ b/lib/Plugins/Mailx.cpp @@ -31,7 +31,8 @@ CMailx::CMailx() : m_sEmailFrom("user@localhost"), m_sEmailTo("root@localhost"), m_sParameters(""), - m_sAttachments("") + m_sAttachments(""), + m_bSendBinaryData(false) {} @@ -102,13 +103,16 @@ void CMailx::Report(const crash_report_t& pReport) ss << "==============" << std::endl; ss << "See the attachment[s]" << std::endl; - if (pReport.m_sBinaryData1 != "") + if (m_bSendBinaryData) { - m_sAttachments = " -a " + pReport.m_sBinaryData1; - } - if (pReport.m_sBinaryData2 != "") - { - m_sAttachments = " -a " + pReport.m_sBinaryData2; + if (pReport.m_sBinaryData1 != "") + { + m_sAttachments = " -a " + pReport.m_sBinaryData1; + } + if (pReport.m_sBinaryData2 != "") + { + m_sAttachments = " -a " + pReport.m_sBinaryData2; + } } SendEmail(ss.str()); @@ -128,4 +132,8 @@ void CMailx::SetSettings(const map_settings_t& pSettings) { m_sParameters = pSettings.find("Parameters")->second; } + if (pSettings.find("SendBinaryData")!= pSettings.end()) + { + m_bSendBinaryData = pSettings.find("SendBinaryData")->second == "yes"; + } } |
