php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #22444 Expose NNTP functionality in the IMAP extension
Submitted: 2003-02-26 11:57 UTC Modified: 2017-10-24 02:06 UTC
From: nathan at dstatement dot com Assigned:
Status: Open Package: IMAP related
PHP Version: * OS: *
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-02-26 11:57 UTC] nathan at dstatement dot com
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-01 20:31 UTC] jani@php.net
-Summary: [IMAP] Implement c-client's nntp_mail +Summary: Add nntp_mail() -Package: Feature/Change Request +Package: IMAP related -Operating System: any +Operating System: * -PHP Version: 4.2.3 +PHP Version: *
 [2017-10-24 02:06 UTC] kalle@php.net
-Summary: Add nntp_mail() +Summary: Expose NNTP functionality in the IMAP extension
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Jun 27 06:01:31 2019 UTC