ID:               15536
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Bogus
 Bug Type:         IMAP related
 Operating System: Sun Solaris
 PHP Version:      4.1.0
 New Comment:

Well, look at the code yourself.  This error message comes from the
imap libraries and not from PHP.  It is displayed by PHP through the
mm_log() callback which is wrapped like this:
void mm_log(char *str, long errflg)
{
    ERRORLIST *cur = NIL;
    TSRMLS_FETCH();

    if (!(EG(error_reporting) & E_NOTICE)) {
        return;

ie. it will only display if E_NOTICE is turned on.  So PHP is correct
in that it only optionally displays these.  You must not have turned
E_NOTICE off correctly.


Previous Comments:
------------------------------------------------------------------------

[2002-02-18 03:29:31] [EMAIL PROTECTED]

Should i expect any feedback from you now ..
I had crosschecked everything with IMAP guys and here is what they said
in reply to my questions..

##################
> There is a bug (seems to be) in one of the function's library.
> The function is "imap_header".
There is no such function in the c-client library.  That must be a PHP
function.
I don't know if PHP is calling any c-client imap_???() functions
directly, but if it is, then it is very broken.  All c-client
imap_???() functions are internal to c-client and must not be calle
dexternally.


> Otherwise, is there any work around to atleast stop warning to
appear!!
It all depends upon what is displaying those warnings.
c-client displays nothing.  The display is being done by something
outside of c-client, and c-client gave it the information to know what
type of event it was.
If your application is displaying mm_log() events with no way to
suppress them even if errflg=3, then this is a bug in your application
and it's your bug to fix.
If PHP is displaying mm_log() events with no way to suppress them even
if errflg=3, then this is a bug in PHP and it's the PHP maintainers'
bug to fix.
##################




------------------------------------------------------------------------

[2002-02-13 18:36:59] [EMAIL PROTECTED]

Then can you please tell me how to do the required settings to compress
any warning from getting displayed.

For your reference, in the horde-imp script, i had already tried by
making changes as below. But can i do that somehow by some server
settings..!!

1. In the file /lib/imp.lib
var $error_level = E_ALL
changed to
var $error_level = 0;    

2. In the /config/defaults.php3.dist
$default->error_level = E_ALL;
changed to
$default->error_level = 0;

------------------------------------------------------------------------

[2002-02-13 17:34:37] [EMAIL PROTECTED]

Achso, ic. Well, this comes from the imap library itself, there's
nothing you can do about; complain to the imap developers. You can,
however, patch around it yourself if you're feeling brave (and know
what you're doing).

------------------------------------------------------------------------

[2002-02-13 13:10:11] [EMAIL PROTECTED]

Hi,

I am already using the function as

##############
for ($i = $begin, $j = $beginIndex; $i <= $end; $i++, $j++) {
$msgnum = $sorted[$i-1];
$h = @imap_header($imp->stream, imap_msgno($imp->stream, $msgnum));
... and further
}
##############

But for a mail message that is sent without any TO and only BCC, the
function returns a warning (as already shown in the message placed
initially) because such mails have TO field as
To: <Undisclosed-Recipient:;@vd1.vsnl.net.in;>

And the function is not able to handle it.
Please suggest what to do to overcome this.

To get this error, jsut send a mail to some account with email-address
in BCC field only and then see mails using some IMAP web interface.

Thanks
Vikas Aggarwal



------------------------------------------------------------------------

[2002-02-13 07:17:51] [EMAIL PROTECTED]

Prefix the function in question with a '@', e.g. @imap_header() .

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/15536

-- 
Edit this bug report at http://bugs.php.net/?id=15536&edit=1

Reply via email to