<?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=Net_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/16819" />
      <rdf:li rdf:resource="http://pear.php.net/bug/16576" />
      <rdf:li rdf:resource="http://pear.php.net/bug/16527" />
      <rdf:li rdf:resource="http://pear.php.net/bug/16297" />
      <rdf:li rdf:resource="http://pear.php.net/bug/16288" />

     </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/16819">
      <title>Net_IMAP: Bug 16819 [Open] IMAPProtocol::cmdStatus fails on error</title>
      <link>http://pear.php.net/bugs/16819</link>
      <content:encoded><![CDATA[<pre>Net_IMAP Bug
Reported by samwilson
2009-11-22T04:15:42+00:00
PHP: 5.2.5 OS: MacOS Package Version: 1.1.0

Description:
------------
The return value of $this-&gt;_genericCommand needs to be checked before it is used as an array (it might be a PEAR_Error).


Test script:
---------------
require_once 'Net/IMAP.php';
$imap = new Net_IMAP('mail.example.org');
$login = $imap-&gt;login('username', 'password');
$imap-&gt;numMsg();


Expected result:
----------------
[Nothing]

Actual result:
--------------
Fatal error: Cannot use object of type PEAR_Error as array in /home/user/pear/PEAR/Net/IMAPProtocol.php on line 1038</pre>]]></content:encoded>
      <description><![CDATA[<pre>Net_IMAP Bug
Reported by samwilson
2009-11-22T04:15:42+00:00
PHP: 5.2.5 OS: MacOS Package Version: 1.1.0

Description:
------------
The return value of $this-&gt;_genericCommand needs to be checked before it is used as an array (it might be a PEAR_Error).


Test script:
---------------
require_once 'Net/IMAP.php';
$imap = new Net_IMAP('mail.example.org');
$login = $imap-&gt;login('username', 'password');
$imap-&gt;numMsg();


Expected result:
----------------
[Nothing]

Actual result:
--------------
Fatal error: Cannot use object of type PEAR_Error as array in /home/user/pear/PEAR/Net/IMAPProtocol.php on line 1038</pre>]]></description>
      <dc:date>2009-11-22T04:15:42+00:00</dc:date>
      <dc:creator>sam &amp;#x61;&amp;#116; archives &amp;#x64;&amp;#111;&amp;#x74; org &amp;#x64;&amp;#111;&amp;#x74; au</dc:creator>
      <dc:subject>Net_IMAP Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/16576">
      <title>Net_IMAP: Bug 16576 [Open] error in bad address header</title>
      <link>http://pear.php.net/bugs/16576</link>
      <content:encoded><![CDATA[<pre>Net_IMAP Bug
Reported by woger
2009-09-07T19:17:27+00:00
PHP: 5.2.5 OS: Freebsd 7.2 Package Version: 1.1.0

Description:
------------
Got email with this mail addresses:
,&lt;cfitzpatrick@domain.nl&gt; , &quot;Camping Village \&quot;Villa al Mare\&quot; &amp; Residence \&quot;Le Dune\&quot;&quot; &lt;info@villaalmare.com&gt; ,&quot;camping il frantoio&quot; &lt;info@ilfrantoi0.it&gt; , &quot;Camping Edy - DIANO MARINA \(IM\)&quot; &lt;news@campingedddy.it&gt; , &quot;Brigit&quot; &lt;b.man@tiscali.nl&gt;

this resulted in the next error in the apache error.log:
[Mon Sep 07 19:57:30 2009] [error] [client 62.45.41.181] Net_IMAPProtocol::_advanceOverStr-&gt;Length: 14824; NumOfQuotes: 1106 - NumofMaskedQuotes:8 #({57}\r\nCamping Village \\&quot;Villa al Mare\\&quot; &amp; Residence \\&quot;Le Dune\\&quot; NIL &quot;info&quot; &quot;villaalmare.com&quot;)(&quot;camping il frantoio&quot; NIL &quot;info&quot; &quot;ilfrantoi0.it&quot;)({33}\r\nCamping  - DIANO MARINA \\(IM\\) NIL &quot;newsletter&quot; &quot;campingedddy.it&quot;)(&quot;Brigit&quot; NIL &quot;b.man&quot; &quot;tiscali.nl&quot;)(&quot;Brigit &quot; NIL &quot;brigitkooijman&quot; &quot;g</pre>]]></content:encoded>
      <description><![CDATA[<pre>Net_IMAP Bug
Reported by woger
2009-09-07T19:17:27+00:00
PHP: 5.2.5 OS: Freebsd 7.2 Package Version: 1.1.0

Description:
------------
Got email with this mail addresses:
,&lt;cfitzpatrick@domain.nl&gt; , &quot;Camping Village \&quot;Villa al Mare\&quot; &amp; Residence \&quot;Le Dune\&quot;&quot; &lt;info@villaalmare.com&gt; ,&quot;camping il frantoio&quot; &lt;info@ilfrantoi0.it&gt; , &quot;Camping Edy - DIANO MARINA \(IM\)&quot; &lt;news@campingedddy.it&gt; , &quot;Brigit&quot; &lt;b.man@tiscali.nl&gt;

this resulted in the next error in the apache error.log:
[Mon Sep 07 19:57:30 2009] [error] [client 62.45.41.181] Net_IMAPProtocol::_advanceOverStr-&gt;Length: 14824; NumOfQuotes: 1106 - NumofMaskedQuotes:8 #({57}\r\nCamping Village \\&quot;Villa al Mare\\&quot; &amp; Residence \\&quot;Le Dune\\&quot; NIL &quot;info&quot; &quot;villaalmare.com&quot;)(&quot;camping il frantoio&quot; NIL &quot;info&quot; &quot;ilfrantoi0.it&quot;)({33}\r\nCamping  - DIANO MARINA \\(IM\\) NIL &quot;newsletter&quot; &quot;campingedddy.it&quot;)(&quot;Brigit&quot; NIL &quot;b.man&quot; &quot;tiscali.nl&quot;)(&quot;Brigit &quot; NIL &quot;brigitkooijman&quot; &quot;g</pre>]]></description>
      <dc:date>2009-09-07T19:17:27+00:00</dc:date>
      <dc:creator>info &amp;#x61;&amp;#116; w4r &amp;#x64;&amp;#111;&amp;#x74; nl</dc:creator>
      <dc:subject>Net_IMAP Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/16527">
      <title>Net_IMAP: Bug 16527 [Open] missing parenthesis cause the last part of message to be parsed wrong</title>
      <link>http://pear.php.net/bugs/16527</link>
      <content:encoded><![CDATA[<pre>Net_IMAP Bug
Reported by amrnablus
2009-08-16T08:05:05+00:00
PHP: Irrelevant OS: all Package Version: 1.1.0

Description:
------------
when fetching a message part, the code that searches for the brace has missing parenthesis which causes size and the body to be parsed in a wrong way ...</pre>]]></content:encoded>
      <description><![CDATA[<pre>Net_IMAP Bug
Reported by amrnablus
2009-08-16T08:05:05+00:00
PHP: Irrelevant OS: all Package Version: 1.1.0

Description:
------------
when fetching a message part, the code that searches for the brace has missing parenthesis which causes size and the body to be parsed in a wrong way ...</pre>]]></description>
      <dc:date>2009-08-17T11:25:53+00:00</dc:date>
      <dc:creator>amrnablus &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Net_IMAP Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/16297">
      <title>Net_IMAP: Bug 16297 [Open] Last part in multipart mime ignored</title>
      <link>http://pear.php.net/bugs/16297</link>
      <content:encoded><![CDATA[<pre>Net_IMAP Bug
Reported by posterday
2009-06-05T23:08:59+00:00
PHP: Irrelevant OS: Linux Package Version: 1.1.0

Description:
------------
In multipart/mixed messages, the last part is being ignored.  It seems the tokenizer is looking at the last characters of the boundary as a token and then the last part gets truncated.

For example: with --46444222-29953-1244212036-2528--, 8-- becomes a token.

Snippet of raw email:

Content-Type: multipart/mixed; boundary=46444222-29953-1244212036-2528

--46444222-29953-1244212036-2528
...first part...

--46444222-29953-1244212036-2528
...second part...

--46444222-29953-1244212036-2528
...third part...

--46444222-29953-1244212036-2528--</pre>]]></content:encoded>
      <description><![CDATA[<pre>Net_IMAP Bug
Reported by posterday
2009-06-05T23:08:59+00:00
PHP: Irrelevant OS: Linux Package Version: 1.1.0

Description:
------------
In multipart/mixed messages, the last part is being ignored.  It seems the tokenizer is looking at the last characters of the boundary as a token and then the last part gets truncated.

For example: with --46444222-29953-1244212036-2528--, 8-- becomes a token.

Snippet of raw email:

Content-Type: multipart/mixed; boundary=46444222-29953-1244212036-2528

--46444222-29953-1244212036-2528
...first part...

--46444222-29953-1244212036-2528
...second part...

--46444222-29953-1244212036-2528
...third part...

--46444222-29953-1244212036-2528--</pre>]]></description>
      <dc:date>2009-06-07T21:28:21+00:00</dc:date>
      <dc:creator>posterday &amp;#x61;&amp;#116; intellitree &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Net_IMAP Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/16288">
      <title>Net_IMAP: Bug 16288 [Open] getMessagesList breaks if mailbox is empty</title>
      <link>http://pear.php.net/bugs/16288</link>
      <content:encoded><![CDATA[<pre>Net_IMAP Bug
Reported by jeichhor
2009-06-04T18:34:53+00:00
PHP: Irrelevant OS:  Package Version: 1.1.0

Description:
------------
when calling getMessagesList() on an empty mailbox - use expunge() to force - it will break 

 PHP Warning:  Invalid argument supplied for foreach() in /pear/Net/IMAP.php on line 400

also return value will be undefined/null

so far the following fix helped me:

$ diff IMAP.php~1~ IMAP.php
399a400,404
&gt;
&gt;         if (empty($ret['PARSED'])) {
&gt;               return array();
&gt;         }
&gt;


Expected result:
----------------
getMessagesList() should return an empty array</pre>]]></content:encoded>
      <description><![CDATA[<pre>Net_IMAP Bug
Reported by jeichhor
2009-06-04T18:34:53+00:00
PHP: Irrelevant OS:  Package Version: 1.1.0

Description:
------------
when calling getMessagesList() on an empty mailbox - use expunge() to force - it will break 

 PHP Warning:  Invalid argument supplied for foreach() in /pear/Net/IMAP.php on line 400

also return value will be undefined/null

so far the following fix helped me:

$ diff IMAP.php~1~ IMAP.php
399a400,404
&gt;
&gt;         if (empty($ret['PARSED'])) {
&gt;               return array();
&gt;         }
&gt;


Expected result:
----------------
getMessagesList() should return an empty array</pre>]]></description>
      <dc:date>2009-06-04T18:34:53+00:00</dc:date>
      <dc:creator>joerg &amp;#x64;&amp;#111;&amp;#x74; eichhorn &amp;#x61;&amp;#116; sys-mail &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>Net_IMAP Bug</dc:subject>
    </item>
</rdf:RDF>
