}
$body = sprintf(_("\nRead and respond to this message at: \n%s"), util_make_url ('/forum/message.php?msg_id='.$this->getID()));
- if (forge_get_config('use_mail')) {
+ if (forge_get_config('use_mail') && forge_get_config('use_forum_mail_replies')) {
$body .= stripcslashes(sprintf(_('
Or reply to this e-mail entering your response between the following markers:
%1$s
$extra_headers = "Return-Path: <noreply@".forge_get_config('web_host').">\n";
$extra_headers .= "Errors-To: <noreply@".forge_get_config('web_host').">\n";
$extra_headers .= "Sender: <noreply@".forge_get_config('web_host').">\n";
- if (forge_get_config('use_mail')) {
+ if (forge_get_config('use_mail') && forge_get_config('use_forum_mail_replies')) {
$extra_headers .= "Reply-To: ".$this->Forum->getReturnEmailAddress()."\n";
}
$extra_headers .= "Precedence: Bulk\n"
forge_set_config_item_bool ('use_docman', 'core') ;
forge_define_config_item ('use_diary', 'core', $GLOBALS['sys_use_diary']) ;
forge_set_config_item_bool ('use_diary', 'core') ;
+ // whether to generate the templates allowing to respond to forum notifications by mail
+ forge_define_config_item ('use_forum_mail_replies', 'core', $GLOBALS['sys_use_mail']) ;
+ forge_set_config_item_bool ('use_forum_mail_replies', 'core') ;
forge_define_config_item ('use_news', 'core', $GLOBALS['sys_use_news']) ;
forge_set_config_item_bool ('use_news', 'core') ;
forge_define_config_item ('use_mail', 'core', $GLOBALS['sys_use_mail']) ;