diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-01-19 17:33:57 +0100 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-01-19 17:33:57 +0100 |
| commit | 811e5d7e9917558b9529c42a9cc86a773b31c0c2 (patch) | |
| tree | 8b62f6718e1bbcd997530a9e38fe57046af302c7 /lib/Plugins/Mailx.cpp | |
| parent | 186bde035d2789a0067d8137bdb9afde635802c8 (diff) | |
| parent | 764c3a1e4f21c635c565cf5c20c480dbf48d1599 (diff) | |
| download | abrt-811e5d7e9917558b9529c42a9cc86a773b31c0c2.tar.gz abrt-811e5d7e9917558b9529c42a9cc86a773b31c0c2.tar.xz abrt-811e5d7e9917558b9529c42a9cc86a773b31c0c2.zip | |
Merge branch 'master' of ssh://git.fedorahosted.org/git/abrt
Diffstat (limited to 'lib/Plugins/Mailx.cpp')
| -rw-r--r-- | lib/Plugins/Mailx.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Plugins/Mailx.cpp b/lib/Plugins/Mailx.cpp index 2f8448f..ae8c2dc 100644 --- a/lib/Plugins/Mailx.cpp +++ b/lib/Plugins/Mailx.cpp @@ -65,7 +65,7 @@ static char** append_str_to_vector(char **vec, unsigned &size, const char *str) return vec; } -std::string CMailx::Report(const map_crash_report_t& pCrashReport, +std::string CMailx::Report(const map_crash_data_t& pCrashData, const map_plugin_settings_t& pSettings, const char *pArgs) { @@ -75,8 +75,8 @@ std::string CMailx::Report(const map_crash_report_t& pCrashReport, //TODO: move email body generation to make_descr.cpp std::string binaryFiles, commonFiles, additionalFiles, UUIDFile; - map_crash_report_t::const_iterator it; - for (it = pCrashReport.begin(); it != pCrashReport.end(); it++) + map_crash_data_t::const_iterator it; + for (it = pCrashData.begin(); it != pCrashData.end(); it++) { if (it->second[CD_TYPE] == CD_TXT) { @@ -135,7 +135,7 @@ std::string CMailx::Report(const map_crash_report_t& pCrashReport, args = append_str_to_vector(args, arg_size, m_sEmailTo.c_str()); update_client(_("Sending an email...")); - const char *uid_str = pCrashReport.find(CD_MWUID)->second[CD_CONTENT].c_str(); + const char *uid_str = get_crash_data_item_content(pCrashData, CD_MWUID).c_str(); exec_and_feed_input(xatoi_u(uid_str), emailBody.c_str(), args); while (*args) |
