Package org.sonews.mlgw
Class Dispatcher
java.lang.Object
org.sonews.mlgw.Dispatcher
Dispatches messages from mailing list to newsserver or vice versa.
- Since:
- sonews/0.5.0
- Author:
- Christian Lins
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Dispatcher
public Dispatcher()
-
-
Method Details
-
toGroup
public static boolean toGroup(javax.mail.Message msg) Posts a message that was received from a mailing list to the appropriate newsgroup. If the message already exists in the storage, this message checks if it must be posted in an additional group. This can happen for crosspostings in different mailing lists.- Parameters:
msg
-- Returns:
-
toList
public static boolean toList(Article article, String group) throws IOException, javax.mail.MessagingException, StorageBackendException Mails a message received through NNTP to the appropriate mailing list. This method MAY be called several times by Post- Parameters:
article
-group
-- Returns:
- Throws:
IOException
- article.javax.mail.MessagingException
StorageBackendException
-