[Bug 876] New - Bug in IMAP function's library : "imap_header"
bugs@bugs.horde.org
bugs@bugs.horde.org
Thu, 14 Feb 2002 14:51:11 -0400
http://bugs.horde.org/show_bug.cgi?id=876
*** shadow/876 Thu Feb 14 14:51:06 2002
--- shadow/876.tmp.21881 Thu Feb 14 14:51:09 2002
***************
*** 0 ****
--- 1,71 ----
+ Bug#: 876
+ Product: Horde
+ Version: 2.2 Stable
+ Platform: All Browsers
+ OS/Version: Solaris
+ Status: NEW
+ Resolution:
+ Severity: critical
+ Priority: P1
+ Component: IMP
+ Area: BUILD
+ AssignedTo: chuck@horde.org
+ ReportedBy: vikas@indiamart.com
+ URL: indiamart.com/horde
+ Summary: Bug in IMAP function's library : "imap_header"
+
+ Hi,
+
+ There is a bug (seems to be) in one of the function's library.
+ The function is "imap_header".
+ Please see if you can get me to the remedy/patch or if you can suggest
+ alternative mailing-lists where i can report the bug.
+
+ The bug is that if a mail is sent using Eudora or from Outlook Express,
+ and you have only mentioned the email-id's in BCC field, the mail that is
+ stored in the mail file, has following format
+ ################
+ To: <Undisclosed-Recipient:;@vd1.vsnl.net.in;>
+ Subject: Fw:Newsletter
+ Date: Sat, 2 Feb 2002 22:17:37 +0530
+ ################
+
+ On using the web-based interface for displaying mails, the function
+ "imap_header" is used to read to read one mail at a time and show
+ information.
+
+ But if any mail has above header, the function starts displaying the warning
+ ##################
+ Warning: Unterminated mailbox: Undisclosed-Recipient@mydomain.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
+ #####################
+
+
+ I am 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
+ }
+ ##############
+
+
+
+ I asked the same problem on php.net site and the final answer that i got
+ says that the -> imap <- library generates this warning and that there
+ is -> nothing <- PHP can do about it. This has to be fixed in the imap
+ library.
+ You can see the conversation at http://bugs.php.net/bug.php?id=15536
+
+
+ Hope if i can get any sort of help in this regard.
+ Otherwise, is there any work around to atleast stop warning to appear!!
+
+
+ Thanks in advance.
+ Vikas Aggarwal
+