<?xml version="1.0"?>
<?xml-stylesheet
href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/search.php">
    <title>PEAR Bug Search Results</title>
    <link>http://pear.php.net/bugs/search.php?cmd=display&amp;package_name%5B0%5D=Mail_IMAP</link>
    <description>Search Results</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bug/14275" />

     </rdf:Seq>
    </items>
  </channel>

  <image rdf:about="http://pear.php.net/gifs/pearsmall.gif">
    <title>PEAR Bugs</title>
    <url>http://pear.php.net/gifs/pearsmall.gif</url>
    <link>http://pear.php.net/bugs</link>
  </image>

    <item rdf:about="http://pear.php.net/bug/14275">
      <title>Mail_IMAP: Bug 14275 [Open] getHeaders breaks using default values</title>
      <link>http://pear.php.net/bugs/14275</link>
      <content:encoded><![CDATA[<pre>Mail_IMAP Bug
Reported by brettjamin
2008-07-01T23:29:49+00:00
PHP: 5.2.6 OS: linux Package Version: 1.1.0RC2

Description:
------------
Using the default values for $from_length, and $subject_length in the function getHeaders breaks.  This is due to this php bug: http://bugs.php.net/bug.php?id=44613.  Changing the default values for these variables to 1023 solves this problem

Test script:
---------------
$imapObject =&amp; new IMAP();

$imapObject-&gt;connect( imaps://username:password@mailserver:993/INBOX#novalidate-cert )
$mid = 37
$pid = $imapObject-&gt;getDefaultPid( $mid );          
$imapObject-&gt;getHeaders( $mid, $pid);


Expected result:
----------------
$imapObject-&gt;headers array should have message header information

Actual result:
--------------
Returns false and does not fill out header array.  Also sets these warnings:
-imap_headerinfo() [&lt;a href='function.imap-headerinfo'&gt;function.imap-headerinfo&lt;/a&gt;]: From length has to be between 1 and 1024
-Mail_IMAP::getHeaders: Unable to retrieve header object, invalid part id: 1</pre>]]></content:encoded>
      <description><![CDATA[<pre>Mail_IMAP Bug
Reported by brettjamin
2008-07-01T23:29:49+00:00
PHP: 5.2.6 OS: linux Package Version: 1.1.0RC2

Description:
------------
Using the default values for $from_length, and $subject_length in the function getHeaders breaks.  This is due to this php bug: http://bugs.php.net/bug.php?id=44613.  Changing the default values for these variables to 1023 solves this problem

Test script:
---------------
$imapObject =&amp; new IMAP();

$imapObject-&gt;connect( imaps://username:password@mailserver:993/INBOX#novalidate-cert )
$mid = 37
$pid = $imapObject-&gt;getDefaultPid( $mid );          
$imapObject-&gt;getHeaders( $mid, $pid);


Expected result:
----------------
$imapObject-&gt;headers array should have message header information

Actual result:
--------------
Returns false and does not fill out header array.  Also sets these warnings:
-imap_headerinfo() [&lt;a href='function.imap-headerinfo'&gt;function.imap-headerinfo&lt;/a&gt;]: From length has to be between 1 and 1024
-Mail_IMAP::getHeaders: Unable to retrieve header object, invalid part id: 1</pre>]]></description>
      <dc:date>2008-07-01T23:29:49+00:00</dc:date>
      <dc:creator>ben &amp;#x64;&amp;#111;&amp;#x74; h &amp;#x61;&amp;#116; aptalaska &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Mail_IMAP Bug</dc:subject>
    </item>
</rdf:RDF>
