changed: notification's template

added: notifications in tickets


git-svn-id: svn://ttmath.org/publicrep/winix/trunk@650 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2010-09-07 23:54:01 +00:00
parent 81dd88d25a
commit f48f08a98b
14 changed files with 109 additions and 60 deletions

View File

@@ -108,7 +108,7 @@ void Notify::SendEmail(const std::string & email, const std::string & message)
if( !ValidateEmail(email) )
{
nlog << "Notify: email: " << email << " is not correct" << logend;
nlog << log1 << "Notify: email: " << email << " is not correct" << logend;
return;
}
@@ -117,14 +117,14 @@ void Notify::SendEmail(const std::string & email, const std::string & message)
if( !sendmail )
{
nlog << "Notify: can't run sendmail" << logend;
nlog << log1 << "Notify: can't run sendmail" << logend;
return;
}
SendMessage(sendmail, message);
pclose(sendmail);
nlog << "Notify: email to: " << email << " has been sent" << logend;
nlog << log1 << "Notify: email to: " << email << " has been sent" << logend;
nlog << logsave;
}
@@ -252,7 +252,7 @@ Users::Iterator i;
{
sending = false;
if( system->mounts.pmount->type == Mount::thread )
if( system->mounts.pmount->type == Mount::thread || system->mounts.pmount->type == Mount::ticket )
{
if( (i->thread_notify & notify_code) != 0 )
sending = true;