Hi!
Currently the imap_* functions do not have any way to post a article to a newsgroup/NNTP stream even though the library supports reading NNTP groups and is quite good at it.
The UW c-client library (on which the php imap_* functions are based) provides a function for this called nntp_mail, documentation of which can be found at: http://www.washington.edu/imap/documentation/internal.txt.html)
The specific reference is:
--- SNIP
long nntp_mail (NNTPSTREAM *stream,ENVELOPE *msg,BODY *body);
stream stream to transmit mail
msg message envelope
body message body
This function negotiates an NNTP posting transaction to deliver the specified news message. This function returns T if success or NIL if there is any failure. The text reason for the failure is in stream->reply item; if it is associated with a recipient it is also in that address' address->error item.
--- PINS
I humbly ask that this function be implemented. Currently the only way to post is by fsockopen()'ing a connection to the news server which is contradictory to using the imap_* functions in the first place.
Thanks!
-n