Skip to content

Commit

Permalink
SAK-27978 Use service name in List-ID header.
Browse files Browse the repository at this point in the history
Uses localhost in the List-ID headers means it's not possible to tell apart emails from different Sakai services if the mailing list name is the same.

git-svn-id: https://source.sakaiproject.org/svn/mailarchive/trunk@314218 66ffb92e-73f9-0310-93c1-f5514f145a0a
  • Loading branch information
buckett committed Oct 13, 2014
1 parent 2023221 commit a45c474
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,8 @@ public void service(Mail mail) throws MessagingException
M_log.warn("IOException: service(): msg.getContent() threw: " + e, e);
}

mailHeaders.add("List-Id: <"+ channel.getId()+ ".localhost>");
mailHeaders.add("List-Id: <"+ channel.getId()+ "."+ serverConfigurationService.getServerName()+ ">");

// post the message to the group's channel
String body[] = new String[2];
body[0] = bodyBuf[0].toString(); // plain/text
Expand Down

0 comments on commit a45c474

Please sign in to comment.