added: Q encoding in misc: QEncode()
for mails headers encoding git-svn-id: svn://ttmath.org/publicrep/winix/trunk@711 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -110,4 +110,4 @@ templatesnotify.o: ../templates/indexpatterns.h ../templates/localefilter.h
|
||||
templatesnotify.o: ../templates/locale.h ../templates/htmltextstream.h
|
||||
templatesnotify.o: ../core/sessionmanager.h ../core/sessioncontainer.h
|
||||
templatesnotify.o: ../core/session.h ../core/user.h ../core/cur.h
|
||||
templatesnotify.o: ../core/lastcontainer.h
|
||||
templatesnotify.o: ../core/lastcontainer.h ../core/misc.h
|
||||
|
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "templatesnotify.h"
|
||||
#include "core/plugin.h"
|
||||
#include "core/misc.h"
|
||||
|
||||
|
||||
|
||||
@@ -22,7 +23,8 @@ Ezc::Functions<NotifyStream> ezc_functions;
|
||||
NotifyUserMsg notify_user_msg;
|
||||
NotifyMsg notify_msg;
|
||||
|
||||
|
||||
// name in qencoding
|
||||
static std::string name_q;
|
||||
|
||||
|
||||
void notify_file_added(Info & i)
|
||||
@@ -71,19 +73,17 @@ void notify_thread_post_changed(Info & i)
|
||||
|
||||
|
||||
|
||||
void notify_to(Info & i)
|
||||
void notify_to_email(Info & i)
|
||||
{
|
||||
i.out << notify_user_msg.email;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
void notify_doc_base_url(Info & i)
|
||||
void notify_to_name(Info & i)
|
||||
{
|
||||
i.out << notify_user_msg.doc_base_url;
|
||||
QEncode(notify_user_msg.name, name_q);
|
||||
i.out << name_q;
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
void notify_item_link(Info & i)
|
||||
@@ -98,6 +98,8 @@ void notify_dir_link(Info & i)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void CreateFunctions()
|
||||
{
|
||||
ezc_functions.Clear();
|
||||
@@ -111,8 +113,8 @@ void CreateFunctions()
|
||||
ezc_functions.Insert("notify_thread_replayed", notify_thread_replayed);
|
||||
ezc_functions.Insert("notify_thread_post_changed", notify_thread_post_changed);
|
||||
|
||||
ezc_functions.Insert("notify_to", notify_to);
|
||||
//ezc_functions.Insert("notify_doc_base_url", notify_doc_base_url);
|
||||
ezc_functions.Insert("notify_to_email", notify_to_email);
|
||||
ezc_functions.Insert("notify_to_name", notify_to_name);
|
||||
ezc_functions.Insert("notify_item_link", notify_item_link);
|
||||
ezc_functions.Insert("notify_dir_link", notify_dir_link);
|
||||
|
||||
|
Reference in New Issue
Block a user