Skip to content
Snippets Groups Projects
Commit 49651e23 authored by rswindell's avatar rswindell
Browse files

Remove [listname] from imported subjects (list contributions).

parent 8b7984e3
No related branches found
No related tags found
No related merge requests found
......@@ -507,6 +507,9 @@ function process_contribution(header, body, list)
if(msg_area.sub[list.sub.toLowerCase()].is_moderated)
header.attr |= MSG_MODERATED;
// Remove [listname] from imported subject
header.subject=header.subject.replace(RegExp("\\["+listname+"\\]\\s*"), "");
if(!msgbase.save_msg(header, body.join('\r\n'))) {
log(LOG_ERR,format("ListServer: %s !ERROR %s saving message to sub: %s"
,list.name, msgbase.error, list.sub));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment