Bug #15536 Updated: Warning message generated on displaying a mail without a TO address

From: Date: Wed, 13 Feb 2002 23:36:59 +0000
Subject: Bug #15536 Updated: Warning message generated on displaying a mail without a TO address
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-280@lists.php.net to get a copy of this message
ID: 15536 Updated by: vikas@indiamart.com Reported By: vikas@indiamart.com -Status: Closed +Status: Open Bug Type: IMAP related Operating System: Sun Solaris PHP Version: 4.1.0 New Comment: 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; Previous Comments: ------------------------------------------------------------------------ [2002-02-13 17:34:37] mfischer@php.net 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] vikas@indiamart.com 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] mfischer@php.net Prefix the function in question with a '@', e.g. @imap_header() . ------------------------------------------------------------------------ [2002-02-13 05:55:16] vikas@indiamart.com Hi, I am using web-based interface to display mails using IMAP The module calls the function "imap_header" for each mail and then displays output in required format. But for few mails, which were sent without a TO address, and has only BCC address (can be done using Eudora), the interface shows the following warning ################## Warning: Unterminated mailbox: Undisclosed-Recipient@ho.trivenigroup.com (errflg=3) in Unknown on line 0 Warning: Unexpected characters at end of address: :;@vd1.vsnl.net.in;> (errflg=3) in Unknown on line 0 ##################### The mail that caused this, has the following headers ################## Reply-To: "Pramoda Kumar Rai" <pramod@texporttechnologies.com> From: "Pramoda Kumar Rai" <pramod@texporttechnologies.com> To: <Undisclosed-Recipient:;@vd1.vsnl.net.in;> Subject: Fw: McAfee Newsletter Date: Sat, 2 Feb 2002 22:17:37 +0530 Organization: Texport Technoligies Pvt. Ltd. MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 ################# I found the similar error at many places but no solutions. Is there any solution to atleast prevent the warning from being displayed.. Thanks Vikas Aggarwal ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15536&edit=1

« previous php.bugs (#280) next »