<?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_IMAPv2&amp;PHPSESSID=jfurjajqpt756h6fllnlhpl8t0</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/13557" />
      <rdf:li rdf:resource="http://pear.php.net/bug/8744" />
      <rdf:li rdf:resource="http://pear.php.net/bug/8328" />
      <rdf:li rdf:resource="http://pear.php.net/bug/7284" />
      <rdf:li rdf:resource="http://pear.php.net/bug/6493" />
      <rdf:li rdf:resource="http://pear.php.net/bug/6210" />
      <rdf:li rdf:resource="http://pear.php.net/bug/4551" />

     </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/13557">
      <title>Mail_IMAPv2: Bug 13557 [Open] UPPERCASE headers with getHeaders()</title>
      <link>http://pear.php.net/bugs/13557</link>
      <content:encoded><![CDATA[<pre>Mail_IMAPv2 Bug
Reported by samwilson
2008-04-01T16:25:04+00:00
PHP: 5.2.3 OS: Linux Package Version: 0.2.0

Description:
------------
The headers returned from Mail_IMAPv2::getHeaders() are all uppercase.  Is this a design feature?  I might just be missing something, but I've read the docs and can't figure out how to get the original casing of the subject etc. (other than by parsing the raw headers, which seems a little counter-productive).

This is a great class in every other way, I must add.

Thank you.

Test script:
---------------
$message_id = 1;
// $imap is a connected Mail_IMAPv2 object.
$imap-&gt;getHeaders($message_id);
$headers = $imap-&gt;header;
var_dump($headers);

Expected result:
----------------
array(1) {
  [1]=&gt;
  array(37) {
    ....
    [&quot;subject&quot;]=&gt;
    string(10) &quot;TEST EMAIL&quot;
    ....
    [&quot;toaddress&quot;]=&gt;
    string(32) &quot;SAM WILSON &lt;SAM@XXXXXXXXXXX.COM&gt;&quot;
    ...
  }
}

Actual result:
--------------
array(1) {
  [1]=&gt;
  array(37) {
    ....
    [&quot;subject&quot;]=&gt;
    string(10) &quot;Test eMail&quot;
    ....
    [&quot;toaddress&quot;]=&gt;
    string(32) &quot;Sam Wilson &lt;sam@xxxxxxxxxxx.com&gt;&quot;
    ...
  }
}</pre>]]></content:encoded>
      <description><![CDATA[<pre>Mail_IMAPv2 Bug
Reported by samwilson
2008-04-01T16:25:04+00:00
PHP: 5.2.3 OS: Linux Package Version: 0.2.0

Description:
------------
The headers returned from Mail_IMAPv2::getHeaders() are all uppercase.  Is this a design feature?  I might just be missing something, but I've read the docs and can't figure out how to get the original casing of the subject etc. (other than by parsing the raw headers, which seems a little counter-productive).

This is a great class in every other way, I must add.

Thank you.

Test script:
---------------
$message_id = 1;
// $imap is a connected Mail_IMAPv2 object.
$imap-&gt;getHeaders($message_id);
$headers = $imap-&gt;header;
var_dump($headers);

Expected result:
----------------
array(1) {
  [1]=&gt;
  array(37) {
    ....
    [&quot;subject&quot;]=&gt;
    string(10) &quot;TEST EMAIL&quot;
    ....
    [&quot;toaddress&quot;]=&gt;
    string(32) &quot;SAM WILSON &lt;SAM@XXXXXXXXXXX.COM&gt;&quot;
    ...
  }
}

Actual result:
--------------
array(1) {
  [1]=&gt;
  array(37) {
    ....
    [&quot;subject&quot;]=&gt;
    string(10) &quot;Test eMail&quot;
    ....
    [&quot;toaddress&quot;]=&gt;
    string(32) &quot;Sam Wilson &lt;sam@xxxxxxxxxxx.com&gt;&quot;
    ...
  }
}</pre>]]></description>
      <dc:date>2008-04-01T16:25:04+00:00</dc:date>
      <dc:creator>sam &amp;#x61;&amp;#116; co-operista &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Mail_IMAPv2 Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/8744">
      <title>Mail_IMAPv2: Bug 8744 [Assigned] manageMB method does not return actual result</title>
      <link>http://pear.php.net/bugs/8744</link>
      <content:encoded><![CDATA[<pre>Mail_IMAPv2 Bug
Reported by rix0r@...
2006-09-20T09:08:30+00:00
PHP: 5.1.4 OS: WinXP Package Version: 0.2.0

Description:
------------
A misplacement of the &quot;return $ret;&quot; statement in the manageMB() method causes the function never to return TRUE or FALSE, but always NULL.

Attached as test script is a unified diff that fixes this (and another perceived bug in that method), and replaces the &quot;$ret = ...; ....; return $ret;&quot; idiom with something a little more direct, namely a direct &quot;return ...;&quot;

Test script:
---------------
--- ManageMB.php	Wed Sep 20 15:19:27 2006
+++ Kopie van ManageMB.php	Wed Sep 20 15:20:37 2006
@@ -91 +91 @@
-                    $ret = TRUE;
+                    return true;
@@ -94 +94 @@
-                    $ret = FALSE;
+                    return false;
@@ -96 +95,0 @@
-                break;
@@ -102,0 +102 @@
+                else
@@ -104 +104 @@
-                    $ret = TRUE;
+                    return true;
@@ -107 +107 @@
-                    $ret = FALSE;
+                    return false;
@@ -109 +108,0 @@
-                break;
@@ -114 +113 @@
-                    $ret = TRUE;
+                    return true;
@@ -117 +116 @@
-                    $ret = FALSE;
+                    return false;
@@ -119 +117,0 @@
-                break;
@@ -124 +122 @@
-                $ret = FALSE;
+                return false;
@@ -126 +123,0 @@
-            return $ret;</pre>]]></content:encoded>
      <description><![CDATA[<pre>Mail_IMAPv2 Bug
Reported by rix0r@...
2006-09-20T09:08:30+00:00
PHP: 5.1.4 OS: WinXP Package Version: 0.2.0

Description:
------------
A misplacement of the &quot;return $ret;&quot; statement in the manageMB() method causes the function never to return TRUE or FALSE, but always NULL.

Attached as test script is a unified diff that fixes this (and another perceived bug in that method), and replaces the &quot;$ret = ...; ....; return $ret;&quot; idiom with something a little more direct, namely a direct &quot;return ...;&quot;

Test script:
---------------
--- ManageMB.php	Wed Sep 20 15:19:27 2006
+++ Kopie van ManageMB.php	Wed Sep 20 15:20:37 2006
@@ -91 +91 @@
-                    $ret = TRUE;
+                    return true;
@@ -94 +94 @@
-                    $ret = FALSE;
+                    return false;
@@ -96 +95,0 @@
-                break;
@@ -102,0 +102 @@
+                else
@@ -104 +104 @@
-                    $ret = TRUE;
+                    return true;
@@ -107 +107 @@
-                    $ret = FALSE;
+                    return false;
@@ -109 +108,0 @@
-                break;
@@ -114 +113 @@
-                    $ret = TRUE;
+                    return true;
@@ -117 +116 @@
-                    $ret = FALSE;
+                    return false;
@@ -119 +117,0 @@
-                break;
@@ -124 +122 @@
-                $ret = FALSE;
+                return false;
@@ -126 +123,0 @@
-            return $ret;</pre>]]></description>
      <dc:date>2008-03-23T00:15:01+00:00</dc:date>
      <dc:creator>rix0r &amp;#x61;&amp;#116; rix0r &amp;#x64;&amp;#111;&amp;#x74; nl</dc:creator>
      <dc:subject>Mail_IMAPv2 Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/8328">
      <title>Mail_IMAPv2: Bug 8328 [Open] Inline Parts show no Filename</title>
      <link>http://pear.php.net/bugs/8328</link>
      <content:encoded><![CDATA[<pre>Mail_IMAPv2 Bug
Reported by bj.blackowitz@...
2006-07-31T07:10:31+00:00
PHP: 4.4.2 OS: Windows 2000 Package Version: 0.2.0

Description:
------------
When attaching files to a RICHTEXT message, the code sees these as Inline attachements and looses the filenames

when looking manualy at the messages I see the file names and attachemnttypes correct 
messages created by Outlook 2003 and 2000

Content-class: urn:content-classes:message
Subject: Some kind of test
MIME-Version: 1.0
Content-Type: application/octet-stream;
        name=&quot;PocketController.log&quot;
Content-Transfer-Encoding: base64
Content-Description: PocketController.log
Content-Disposition: attachment;
        filename=&quot;PocketController.log&quot;
Date: Mon, 31 Jul 2006 11:02:58 +0200
X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0

whene attaching to HTML messages , the parts are being seen correct.



Test script:
---------------
e.g /IMAP.message_viewer.php</pre>]]></content:encoded>
      <description><![CDATA[<pre>Mail_IMAPv2 Bug
Reported by bj.blackowitz@...
2006-07-31T07:10:31+00:00
PHP: 4.4.2 OS: Windows 2000 Package Version: 0.2.0

Description:
------------
When attaching files to a RICHTEXT message, the code sees these as Inline attachements and looses the filenames

when looking manualy at the messages I see the file names and attachemnttypes correct 
messages created by Outlook 2003 and 2000

Content-class: urn:content-classes:message
Subject: Some kind of test
MIME-Version: 1.0
Content-Type: application/octet-stream;
        name=&quot;PocketController.log&quot;
Content-Transfer-Encoding: base64
Content-Description: PocketController.log
Content-Disposition: attachment;
        filename=&quot;PocketController.log&quot;
Date: Mon, 31 Jul 2006 11:02:58 +0200
X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0

whene attaching to HTML messages , the parts are being seen correct.



Test script:
---------------
e.g /IMAP.message_viewer.php</pre>]]></description>
      <dc:date>2006-07-31T07:10:31+00:00</dc:date>
      <dc:creator>bj &amp;#x64;&amp;#111;&amp;#x74; blackowitz &amp;#x61;&amp;#116; gmx &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>Mail_IMAPv2 Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/7284">
      <title>Mail_IMAPv2: Feature/Change Request 7284 [Open] Mailbox path in manageMB()</title>
      <link>http://pear.php.net/bugs/7284</link>
      <content:encoded><![CDATA[<pre>Mail_IMAPv2 Feature/Change Request
Reported by t.bruederli@...
2006-04-03T09:56:31+00:00
PHP: 4.3.10 OS:  Package Version: 0.2.0

Description:
------------
Mailbox names passed to Mail_IMAPv2_ManageMB::manageMB() are always translated to INBOX.{mailboxname}. This is not correct since there are IMAP servers that don't use these naming conventions. Mailbox names shouldn't be extended with the &quot;INBOX.&quot;-prefix. This isn't done in manageMail() either.</pre>]]></content:encoded>
      <description><![CDATA[<pre>Mail_IMAPv2 Feature/Change Request
Reported by t.bruederli@...
2006-04-03T09:56:31+00:00
PHP: 4.3.10 OS:  Package Version: 0.2.0

Description:
------------
Mailbox names passed to Mail_IMAPv2_ManageMB::manageMB() are always translated to INBOX.{mailboxname}. This is not correct since there are IMAP servers that don't use these naming conventions. Mailbox names shouldn't be extended with the &quot;INBOX.&quot;-prefix. This isn't done in manageMail() either.</pre>]]></description>
      <dc:date>2006-04-03T09:56:31+00:00</dc:date>
      <dc:creator>t &amp;#x64;&amp;#111;&amp;#x74; bruederli &amp;#x61;&amp;#116; nexbyte &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Mail_IMAPv2 Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/6493">
      <title>Mail_IMAPv2: Bug 6493 [Open] delete() sometimes fails without errors but delete did not occur</title>
      <link>http://pear.php.net/bugs/6493</link>
      <content:encoded><![CDATA[<pre>Mail_IMAPv2 Bug
Reported by wim.delvaux@...
2006-01-14T19:19:40+00:00
PHP: 5.1.0 OS: linux Package Version: 

Description:
------------
Calling 
$IMap-&gt;delete($ID) 
and then 
$IMap-&gt;expunge() 
sometimes does not delete the message on the server. 
I notice this because I poll a POP server every 5 seconds 
and notice that sometimes the messages that should have 
been deleted in the previous loop still exist in the next 
loop. 
 
I have added $IMap-&gt;errors-&gt;hasErrors() but that 
does not produce TRUE so there are not errors, right ?</pre>]]></content:encoded>
      <description><![CDATA[<pre>Mail_IMAPv2 Bug
Reported by wim.delvaux@...
2006-01-14T19:19:40+00:00
PHP: 5.1.0 OS: linux Package Version: 

Description:
------------
Calling 
$IMap-&gt;delete($ID) 
and then 
$IMap-&gt;expunge() 
sometimes does not delete the message on the server. 
I notice this because I poll a POP server every 5 seconds 
and notice that sometimes the messages that should have 
been deleted in the previous loop still exist in the next 
loop. 
 
I have added $IMap-&gt;errors-&gt;hasErrors() but that 
does not produce TRUE so there are not errors, right ?</pre>]]></description>
      <dc:date>2006-01-14T19:19:40+00:00</dc:date>
      <dc:creator>wim &amp;#x64;&amp;#111;&amp;#x74; delvaux &amp;#x61;&amp;#116; adaptiveplanet &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Mail_IMAPv2 Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/6210">
      <title>Mail_IMAPv2: Bug 6210 [Open] examples not in pear package</title>
      <link>http://pear.php.net/bugs/6210</link>
      <content:encoded><![CDATA[<pre>Mail_IMAPv2 Bug
Reported by fsteinel
2005-12-09T09:02:35+00:00
PHP: Irrelevant OS: linux Package Version: 

Description:
------------
the examples mentioned on http://www.spicypeanut.net/index.html?content=Mail_IMAP/index are not included in the Mail_IMAPv2-0.2.0 pear package.
see also Bug #923

Test script:
---------------
ls /usr/share/php/doc/Mail_IMAPv2

Expected result:
----------------
. .. examples

Actual result:
--------------
/bin/ls: /usr/share/php/doc/Mail_IMAPv2/: No such file or directory</pre>]]></content:encoded>
      <description><![CDATA[<pre>Mail_IMAPv2 Bug
Reported by fsteinel
2005-12-09T09:02:35+00:00
PHP: Irrelevant OS: linux Package Version: 

Description:
------------
the examples mentioned on http://www.spicypeanut.net/index.html?content=Mail_IMAP/index are not included in the Mail_IMAPv2-0.2.0 pear package.
see also Bug #923

Test script:
---------------
ls /usr/share/php/doc/Mail_IMAPv2

Expected result:
----------------
. .. examples

Actual result:
--------------
/bin/ls: /usr/share/php/doc/Mail_IMAPv2/: No such file or directory</pre>]]></description>
      <dc:date>2005-12-09T09:02:35+00:00</dc:date>
      <dc:creator>fsteinel &amp;#x61;&amp;#116; flonet &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>Mail_IMAPv2 Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/4551">
      <title>Mail_IMAPv2: Bug 4551 [Open] message parsing fails with complex multipart/alternative structure</title>
      <link>http://pear.php.net/bugs/4551</link>
      <content:encoded><![CDATA[<pre>Mail_IMAPv2 Bug
Reported by david@...
2005-06-08T09:27:24+00:00
PHP: 4.3.9 OS: Fedora Core2 / RHES 3 Package Version: 

Description:
------------
Im in the process of building a mail engine, I wanted to test out the setup with various potential 'problematic' emails that have proven to be ...interesting... to deal with in previous versions, mostly Outlook/Word created HTML emails, and multipart alternative (HTML and plain format) in Thunderbird.

IMAPv2 was able to diaplay most of the difficult mails until the multipart alternative test from Thunderbird which resulted in the attached text/plain (at not il) part being displayed as the main body and no other parts being displayed at all.

I am about to send a copy of this email to mail-imap (at) smilingsouls (dot) net and demo (at) smilingsouls (dot) net to give you a copy to look at.

The output from dumping $msg shows that no parts are being detected (as opposed to the non-multipart ones). message 5 was the culprit whereas message worked perfectly :)

hope this wasnt too long, and thanks for a great mail handler


Reproduce code:
---------------
[msg] =&gt; Array
        (
            [3] =&gt; Array
                (
                    [pid] =&gt; 1.2
                    [at] =&gt; Array
                        (
                            [fname] =&gt; Array
                                (
                                    [0] =&gt; mysql stuff
                                    [1] =&gt; ca header2.gif
                                )

                            [pid] =&gt; Array
                                (
                                    [0] =&gt; 2
                                    [1] =&gt; 3
                                )

                            [ftype] =&gt; Array
                                (
                                    [0] =&gt; text/plain
                                    [1] =&gt; image/gif
                                )

                            [fsize] =&gt; Array
                                (
                                    [0] =&gt; 270
                                    [1] =&gt; 8832
                                )

                            [charset] =&gt; Array
                                (
                                    [0] =&gt; us-ascii
                                )

                        )

                )

            [5] =&gt; Array
                (
                    [pid] =&gt; 2
                )

         
        )

Expected result:
----------------
message parts to be listed in the array

Actual result:
--------------
single message part listed which proved to be the first non-alternative part, the attached text/plain file</pre>]]></content:encoded>
      <description><![CDATA[<pre>Mail_IMAPv2 Bug
Reported by david@...
2005-06-08T09:27:24+00:00
PHP: 4.3.9 OS: Fedora Core2 / RHES 3 Package Version: 

Description:
------------
Im in the process of building a mail engine, I wanted to test out the setup with various potential 'problematic' emails that have proven to be ...interesting... to deal with in previous versions, mostly Outlook/Word created HTML emails, and multipart alternative (HTML and plain format) in Thunderbird.

IMAPv2 was able to diaplay most of the difficult mails until the multipart alternative test from Thunderbird which resulted in the attached text/plain (at not il) part being displayed as the main body and no other parts being displayed at all.

I am about to send a copy of this email to mail-imap (at) smilingsouls (dot) net and demo (at) smilingsouls (dot) net to give you a copy to look at.

The output from dumping $msg shows that no parts are being detected (as opposed to the non-multipart ones). message 5 was the culprit whereas message worked perfectly :)

hope this wasnt too long, and thanks for a great mail handler


Reproduce code:
---------------
[msg] =&gt; Array
        (
            [3] =&gt; Array
                (
                    [pid] =&gt; 1.2
                    [at] =&gt; Array
                        (
                            [fname] =&gt; Array
                                (
                                    [0] =&gt; mysql stuff
                                    [1] =&gt; ca header2.gif
                                )

                            [pid] =&gt; Array
                                (
                                    [0] =&gt; 2
                                    [1] =&gt; 3
                                )

                            [ftype] =&gt; Array
                                (
                                    [0] =&gt; text/plain
                                    [1] =&gt; image/gif
                                )

                            [fsize] =&gt; Array
                                (
                                    [0] =&gt; 270
                                    [1] =&gt; 8832
                                )

                            [charset] =&gt; Array
                                (
                                    [0] =&gt; us-ascii
                                )

                        )

                )

            [5] =&gt; Array
                (
                    [pid] =&gt; 2
                )

         
        )

Expected result:
----------------
message parts to be listed in the array

Actual result:
--------------
single message part listed which proved to be the first non-alternative part, the attached text/plain file</pre>]]></description>
      <dc:date>2005-06-09T23:07:49+00:00</dc:date>
      <dc:creator>david &amp;#x61;&amp;#116; chipaddiction &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Mail_IMAPv2 Bug</dc:subject>
    </item>
</rdf:RDF>
