From: Ondrej B. <squ...@br...> - 2003-10-10 08:16:36
|
I subscribe to the squirrelmail-users mailing list. [x] True - No need to CC me when replying [ ] False - Please CC me when replying This bug occurs when I ... New mail arrives to INBOX. The description of the bug: Newmail plugin does not show when new mail arrives to INBOX on IMAP servers that do not have INBOX in capital letters. When checking of all folders will be switched on then strange results appear (new message is shown but not visible for example). I can reproduce the bug by: Sending new mail to my account. (Optional) I got bored and found the bug occurs in: (Optional) I got really bored and here's a fix: Sorry no patch format because CVS does not work. The solutions are two: 1) Straightforward: plugins/newmail/setup.php,v 1.17.2.1 line 46 and 48: strtoupper($realbox) or other way of case insensitive comparison. 2) General: some servers have INBOX not in capital, it breaks couple of other things. What about to uppercase formatted name of inbox in functions/imap_mailbox.php line 586 and use consitently this name in the rest of application. The newmail plugin will then work on more servers. If unformatted name will be uppercased as well or src/folders.php will use formatted name instead of unformatted then the INBOX folder will no more occur as a candidate folder for subscription in the folder list. Generally the handling of INBOX is not consistent. ---------------------------------------------- My browser information: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) get_browser() information (List) * browser_name_pattern = IE 6\.0 * browser = IE * version = 6 * majorver = 6 * minorver = 0 * css = 2 * frames = 1 * iframes = 1 * tables = 1 * cookies = 1 * backgroundsounds = 1 * vbscript = 1 * javascript = 1 * javaapplets = 1 * activexcontrols = 1 * cdf = 1 My web server information: PHP Version 4.3.2 PHP Extensions (List) * 0 = xslt * 1 = xml * 2 = wddx * 3 = tokenizer * 4 = sysvshm * 5 = sysvsem * 6 = standard * 7 = sockets * 8 = session * 9 = posix * 10 = pgsql * 11 = pcre * 12 = overload * 13 = openssl * 14 = mysql * 15 = mhash * 16 = mcrypt * 17 = ldap * 18 = imap * 19 = iconv * 20 = gmp * 21 = gettext * 22 = gd * 23 = ftp * 24 = filepro * 25 = exif * 26 = dbx * 27 = dbase * 28 = dba * 29 = db * 30 = curl * 31 = ctype * 32 = calendar * 33 = bz2 * 34 = bcmath * 35 = zlib * 36 = apache * 37 = Zend Optimizer SquirrelMail-specific information: Version: 1.4.3 [CVS] Plugins (List) * 0 = delete_move_next * 1 = listcommands * 2 = newmail * 3 = bug_report * 4 = abook_take * 5 = message_details * 6 = compatibility * 7 = custom_from * 8 = msg_flags * 9 = quicksave * 10 = view_as_html * 11 = multilogin My IMAP server information: Server type: other Server info: * OK [HIDDEN] Server (IMail 6.04) Cabailities: IMAP4 IMAP4rev1 AUTH=CRAM-MD5 AUTH=PLAIN AUTH=LOGIN Ondrej --- Family Homepage: http://brablc.com Bookmark Server: http://sitebar.org |