summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/Mailx.cpp
diff options
context:
space:
mode:
authorZdenek Prikryl <zprikryl@redhat.com>2009-08-14 20:59:43 +0200
committerZdenek Prikryl <zprikryl@redhat.com>2009-08-14 20:59:43 +0200
commit3c226c987f5015e8184bfc4293ee9f9b2f7b8f67 (patch)
treeb2ec9e8f5ec3140008a15cccea4030c438dbe72e /lib/Plugins/Mailx.cpp
parent15e44fefb8e0ce093e91bc0fd96302c6b77bf92a (diff)
downloadabrt-3c226c987f5015e8184bfc4293ee9f9b2f7b8f67.tar.gz
abrt-3c226c987f5015e8184bfc4293ee9f9b2f7b8f67.tar.xz
abrt-3c226c987f5015e8184bfc4293ee9f9b2f7b8f67.zip
added support for storing results from reporters (used from gui)
Diffstat (limited to 'lib/Plugins/Mailx.cpp')
-rw-r--r--lib/Plugins/Mailx.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Plugins/Mailx.cpp b/lib/Plugins/Mailx.cpp
index 5ee6b65..6daf8eb 100644
--- a/lib/Plugins/Mailx.cpp
+++ b/lib/Plugins/Mailx.cpp
@@ -61,7 +61,7 @@ void CMailx::SendEmail(const std::string& pSubject, const std::string& pText)
}
-void CMailx::Report(const map_crash_report_t& pCrashReport, const std::string& pArgs)
+std::string CMailx::Report(const map_crash_report_t& pCrashReport, const std::string& pArgs)
{
comm_layer_inner_status("Creating a report...");
@@ -135,6 +135,7 @@ void CMailx::Report(const map_crash_report_t& pCrashReport, const std::string& p
{
SendEmail(m_sSubject, emailBody.str());
}
+ return "Email was send to :" + m_sEmailTo;
}
void CMailx::SetSettings(const map_plugin_settings_t& pSettings)