-
- //public static class Filter {
- // public class EmergencyModerationFilter { }
- // public class MaximumLengthFilter { }
- // public class SpamFilter { }
- // public class MIMETypes { }
- // public class MungeReplyTo { }
- // public class AnonymizeSender { public boolean uncorrelated; }
- //}
-
-
- public void accept(Message m) throws IOException, MailException {
- try {
- m = Message.newMessage(new Fountain.StringFountain("List-Id: " + one_line_description + "<"+address+">\r\n" +
- m.toString() +
- "--\r\n" +
- message_footer + "\r\n" +
- "to unsubscribe, go to " + homepage + "\r\n"));
- } catch (Exception e2) {
- Log.error("[list]", e2);
- throw new IOException(e2.toString());
- }
- Log.warn(MailingList.class, "got message " + m.subject);
- archive.accept(m);
- try {
- String[] subscribers = (String[])p.execute(subscribers());
- Log.warn("**", "length is " + subscribers.length);
- for(int i=0; i<subscribers.length; i++) {
- String s = subscribers[i];
- try {
- Log.warn(MailingList.class, " trying " + s);
- /* FIXME
- SMTP.Outgoing.accept(Message.newMessage(new Fountain.StringFountain(m.toString()),
- address, Address.parse(s)));
- */
- Log.warn("[list]", "successfully sent to " + s);
- } catch (Exception e2) {
- Log.error("[list]", e2);
- }
- }
- } catch (Exception e2) {
- Log.error("[list]", e2);
- }
- }
-
-
- // Transactions ///////////////////////////////////////////////////////////////////////////