Exemple #1
0
        protected static bool GetArticleByMessageID(INntpConnection connection, NntpSession session, string id, out KeyValuePair <int, INntpArticle> pair)
        {
            pair = new KeyValuePair <int, INntpArticle>(0, connection.GetArticle(id));

            if (pair.Value == null)
            {
                session.Connection.SendLine("430 No article with that message-id");
                return(false);
            }

            return(true);
        }