@@ -270,7 +270,7 @@ public class MailingList implements MessageHandler, ProblemListener {
|
||||
var member = ListMember.load(this,user);
|
||||
return member.hasState(ListMember.STATE_OWNER|ListMember.STATE_SUBSCRIBER); // owners may subscribe their own mailing lists
|
||||
} catch (SQLException e) {
|
||||
LOG.warn("Was not able to load ListMember: ",e);
|
||||
LOG.warn("Was not able to load ListMember:",e);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -303,7 +303,7 @@ public class MailingList implements MessageHandler, ProblemListener {
|
||||
ml.lastError = rs.getString(LAST_ERROR);
|
||||
}
|
||||
} catch (SQLException e) {
|
||||
LOG.debug("Failed to load MailingList: ",e);
|
||||
LOG.debug("Failed to load MailingList:",e);
|
||||
}
|
||||
return ml;
|
||||
}
|
||||
@@ -325,7 +325,7 @@ public class MailingList implements MessageHandler, ProblemListener {
|
||||
.compile().exec();
|
||||
while (rs.next()) list.add(MailingList.from(rs));
|
||||
} catch (SQLException e) {
|
||||
LOG.debug("Failed to load MailingLists: ",e);
|
||||
LOG.debug("Failed to load MailingLists:",e);
|
||||
}
|
||||
return list;
|
||||
}
|
||||
@@ -671,11 +671,11 @@ public class MailingList implements MessageHandler, ProblemListener {
|
||||
try {
|
||||
var config = Configuration.instance();
|
||||
var url = new StringBuilder(config.baseUrl()).append("/web/confirm?token=").append(member.token()).toString();
|
||||
var subject = t("[{}] Please confirm your list subscription",name());
|
||||
var subject = t("[{}] Please confirm your list subscription!",name());
|
||||
var text = template.add(URL,url).add(LIST_NAME,name()).render();
|
||||
smtp.send(email(),name(),user.email(),subject,text);
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
throw new MessagingException(t("Failed to send email to {}",user.email()),e);
|
||||
throw new MessagingException(t("Failed to send email to {}!",user.email()),e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -711,7 +711,7 @@ public class MailingList implements MessageHandler, ProblemListener {
|
||||
* @throws UnsupportedEncodingException
|
||||
*/
|
||||
public void test(User user) throws MessagingException, UnsupportedEncodingException {
|
||||
var subject = t("[{}]: test mail",name());
|
||||
var subject = t("[{}] test mail",name());
|
||||
var text = "If you received this mail, the SMTP settings of your mailing list are correct.";
|
||||
smtp.login().send(email(),name(),user.email(),subject,text);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user