1.1 --- a/org/sonews/daemon/command/PostCommand.java Wed Jul 22 14:04:05 2009 +0200
1.2 +++ b/org/sonews/daemon/command/PostCommand.java Thu Aug 20 16:57:38 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