Ejemplo n.º 1
0
 /// <summary>
 /// The <a href="https://tools.ietf.org/html/rfc3977#section-7.4">NEWNEWS</a>
 /// command returns a list of message-ids of articles posted or
 /// received on the server, in the newsgroups whose names match the
 /// wildmat, since the specified date and time.
 /// </summary>
 /// <param name="wildmat">The wildmat to use for filtering the group names.</param>
 /// <param name="sinceDateTime">List all newsgroups that have new articles
 /// posted or received since this date and time.</param>
 /// <returns>A multi-line response containing a list of message-ids.</returns>
 public NntpMultiLineResponse NewNews(string wildmat, NntpDateTime sinceDateTime) =>
 connection.MultiLineCommand($"NEWNEWS {sinceDateTime}", new MultiLineResponseParser(230));
Ejemplo n.º 2
0
 /// <summary>
 /// The <a href="https://tools.ietf.org/html/rfc3977#section-7.3">NEWGROUPS</a>
 /// command returns a list of newsgroups created on the server since
 /// the specified date and time.
 /// </summary>
 /// <param name="sinceDateTime">List all newsgroups created since this date and time.</param>
 /// <returns>A groups response object.</returns>
 public NntpGroupsResponse NewGroups(NntpDateTime sinceDateTime) =>
 connection.MultiLineCommand($"NEWGROUPS {sinceDateTime}", new GroupsResponseParser(231, GroupStatusRequestType.Basic));