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: 2020-10-09 14:56 UTC
From: nathan at dstatement dot com Assigned:
Status: Suspended Package: IMAP related
PHP Version: * OS: *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nathan at dstatement dot com
New email:
PHP Version: OS:

 

 [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
 [2020-10-09 14:56 UTC] cmb@php.net
-Status: Open +Status: Suspended
 [2020-10-09 14:56 UTC] cmb@php.net
If you (or anybody) else is still interested in this feature,
please forward your request to the internals mailing list[1],
since it appears to be very controversial to add new features to
the IMAP extension at this time, given that libc-client is
unmaintained for years.  At least that requires discussion for
which this bugtracker is not suitable.

For the time being, I'm suspending this ticket.

[1] <https://www.php.net/mailing-lists.php#internals>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 22:01:29 2024 UTC