#include "config.h"
#include "emailer.h"
#include "compose.hpp"
-#include <boost/foreach.hpp>
#include <list>
#include "i18n.h"
using std::string;
using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
/** @param body Email body */
SendNotificationEmailJob::SendNotificationEmailJob (string body)
}
+SendNotificationEmailJob::~SendNotificationEmailJob ()
+{
+ stop_thread ();
+}
+
string
SendNotificationEmailJob::name () const
{
list<string> to;
to.push_back (config->notification_to ());
Emailer email (config->notification_from(), to, config->notification_subject(), _body);
- BOOST_FOREACH (string i, config->notification_cc()) {
+ for (auto i: config->notification_cc()) {
email.add_cc (i);
}
if (!config->notification_bcc().empty()) {