public int bounceThreshhold = 10;
public static class Subscriber {
+ public Subscriber(Address a) { this.address = a; }
public Address address;
- public Action posting;
- public UserType type;
- public SubscriptionType subscription;
- public boolean send_copy_of_own_post;
- public boolean filter_duplicates_when_ccd;
+ public Action posting = Action.Accept;
+ public UserType type = UserType.Member;
+ public SubscriptionType subscription = SubscriptionType.All;
+ public boolean send_copy_of_own_post = false;
+ public boolean filter_duplicates_when_ccd = true;
}
public static MailingList getMailingList(String path) { return getMailingList(new File(path)); }
public static MailingList getMailingList(File path) {
if (!path.exists()) path.mkdirs();
- File f = new File(path.getAbsolutePath() + File.separatorChar + ".mailinglist");
+ path = new File(path.getAbsolutePath() + File.separatorChar + ".mailinglist");
try {
- if (f.exists()) return (MailingList)Persistent.read(f);
+ if (path.exists()) return (MailingList)Persistent.read(path);
MailingList ret = new MailingList(path);
ret.write();
return ret;
// Methods //////////////////////////////////////////////////////////////////////////////
- public Mailbox getArchive() { return FileBasedMailbox.getFileBasedMailbox(path, true); }
+ public Mailbox getArchive() { return FileBasedMailbox.getFileBasedMailbox(file.getParent(), true); }
public void accept(Message m) throws IOException, MailException {
StringBuffer buf = new StringBuffer();