RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1168922 - mail_search_full function always returns false
Summary: mail_search_full function always returns false
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libc-client
Version: 6.6
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Joe Orton
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-28 12:32 UTC by jpswade
Modified: 2015-01-12 17:54 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-12 16:42:29 UTC
Target Upstream Version:
Embargoed:
jpswade: needinfo-


Attachments (Terms of Use)

Description jpswade 2014-11-28 12:32:20 UTC
Description of problem:
Using the implementation of the libc-client library in php-imap, the mail_search_full function always returns false.

Version-Release number of selected component (if applicable):
latest

How reproducible:
<?php
ini_set('display_errors', 'On');
error_reporting(E_ALL);
include 'settings.php';
echo '<pre>';
echo shell_exec('cat /etc/redhat-release') . "\n";
echo 'PHP ' . phpversion() . "\n";
$inbox = 'INBOX';
$_mailbox = '{%s/imap/notls/norsh/novalidate-cert/readonly}%s';
$mailbox = sprintf($_mailbox, $host, $inbox);
$stream = imap_open($mailbox, $user, $pass, OP_SILENT);
echo "imap_mailboxmsginfo->Nmsgs\n";
var_dump(imap_mailboxmsginfo($stream)->Nmsgs);
echo "\n";
$search = 'ALL';
echo "imap_search $search\n";
var_dump(imap_search($stream, $search)); //bool(false)
if (imap_last_error()) {
    echo 'Error: ' . imap_last_error() . "\n";
}
echo "\n";
echo "imap_alerts\n";
var_dump(imap_alerts());
echo "imap_errors\n";
var_dump(imap_errors());
?>

Actual results:
CentOS release 6.6 (Final)

PHP 5.4.33
imap_mailboxmsginfo->Nmsgs
int(100)

imap_search ALL
bool(false)
Error: SECURITY PROBLEM: insecure server advertised AUTH=PLAIN

imap_alerts
bool(false)
imap_errors
array(1) {
  [0]=>
  string(55) "SECURITY PROBLEM: insecure server advertised AUTH=PLAIN"
}

Expected results:
imap_search should return an array of message numbers or UIDs.

If it failed, I would expect there to be a fatal error.

Comment 2 Joe Orton 2014-11-28 13:20:50 UTC
Please show a reproduction recipe running on RHEL rather than CentOS.

If this issue is critical or in any way time sensitive, please raise a ticket
through your regular Red Hat support channels to make certain it receives the
proper attention and prioritization to assure a timely resolution.

For information on how to contact the Red Hat production support team, please
visit: https://www.redhat.com/support/process/production/#howto

Comment 3 jpswade 2014-12-08 13:25:44 UTC
Hi Joe,

Please provide access to a RHEL sandbox system for me to reproduce the bug.

Thanks.

Comment 4 Joe Orton 2015-01-12 16:42:29 UTC
jpswade, if you just want to report a bug in the upstream software please feel free to file it directly upstream.  This bugzilla instance is for tracking issues faced by Red Hat customers.

Comment 5 jpswade 2015-01-12 17:54:58 UTC
Thanks, opened here:
http://bugs.centos.org/view.php?id=8072


Note You need to log in before you can comment on or make changes to this bug.