# HG changeset patch # User cli # Date 1283120406 -7200 # Node ID 73b21e9f395846963b41e45c0df7a8e204085e4f # Parent fdfc7225f799cc35f7b8c191202407cde035859a Some work on XDAEMON command. diff -r fdfc7225f799 -r 73b21e9f3958 src/org/sonews/daemon/command/XDaemonCommand.java --- a/src/org/sonews/daemon/command/XDaemonCommand.java Sun Aug 29 23:23:15 2010 +0200 +++ b/src/org/sonews/daemon/command/XDaemonCommand.java Mon Aug 30 00:20:06 2010 +0200 @@ -127,6 +127,16 @@ group.update(); conn.println("200 group " + commands[2] + " marked as deleted"); } + } else if(commands.length == 5 && commands[1].equalsIgnoreCase("GROUPFLAG")) { + Group group = StorageManager.current().getGroup(commands[2]); + String flagName = commands[4]; + if(commands[3].equalsIgnoreCase("SET")) { + + } else if(commands[3].equalsIgnoreCase("UNSET")) { + + } else { + conn.println("500 invalid command usage"); + } } else if (commands.length == 4 && commands[1].equalsIgnoreCase("SET")) { String key = commands[2]; String val = commands[3]; @@ -194,6 +204,7 @@ conn.println("401 unknown sub command"); } } else if (commands.length >= 3 && commands[1].equalsIgnoreCase("PLUGIN")) { + conn.println("400 invalid command usage"); } else { conn.println("400 invalid command usage"); } diff -r fdfc7225f799 -r 73b21e9f3958 src/org/sonews/storage/Channel.java --- a/src/org/sonews/storage/Channel.java Sun Aug 29 23:23:15 2010 +0200 +++ b/src/org/sonews/storage/Channel.java Mon Aug 30 00:20:06 2010 +0200 @@ -39,12 +39,14 @@ * the mailing list gateway. */ public static final int MAILINGLIST = 0x1; + /** * If this flag is set the Group is marked as readonly and the posting * is prohibited. This can be useful for groups that are synced only in * one direction. */ public static final int READONLY = 0x2; + /** * If this flag is set the Group is marked as deleted and must not occur * in any output. The deletion is done lazily by a low priority daemon.