org/sonews/daemon/command/PostCommand.java
changeset 12 bb6990c0dd1a
parent 3 2fdc9cc89502
child 15 f2293e8566f5
     1.1 --- a/org/sonews/daemon/command/PostCommand.java	Mon Aug 17 11:00:51 2009 +0200
     1.2 +++ b/org/sonews/daemon/command/PostCommand.java	Thu Aug 20 14:31:19 2009 +0200
     1.3 @@ -21,12 +21,8 @@
     1.4  import java.io.IOException;
     1.5  import java.io.ByteArrayInputStream;
     1.6  import java.io.ByteArrayOutputStream;
     1.7 -import java.nio.charset.Charset;
     1.8 -import java.nio.charset.IllegalCharsetNameException;
     1.9 -import java.nio.charset.UnsupportedCharsetException;
    1.10  import java.sql.SQLException;
    1.11  import java.util.Arrays;
    1.12 -import java.util.Locale;
    1.13  import javax.mail.MessagingException;
    1.14  import javax.mail.internet.AddressException;
    1.15  import javax.mail.internet.InternetHeaders;
    1.16 @@ -303,7 +299,7 @@
    1.17          boolean success = false;
    1.18          String[] groupnames = article.getHeader(Headers.NEWSGROUPS)[0].split(",");
    1.19          for(String groupname : groupnames)
    1.20 -        {
    1.21 +        {          
    1.22            Group group = StorageManager.current().getGroup(groupname);
    1.23            if(group != null && !group.isDeleted())
    1.24            {
    1.25 @@ -311,7 +307,7 @@
    1.26              {
    1.27                // Send to mailing list; the Dispatcher writes 
    1.28                // statistics to database
    1.29 -              Dispatcher.toList(article);
    1.30 +              Dispatcher.toList(article, group.getName());
    1.31                success = true;
    1.32              }
    1.33              else