[bugs] [Bug 1199] New - IMP fails message deletion with RH php 4.2.1 due pop3/notls

bugs at bugs.horde.org bugs at bugs.horde.org
Wed Mar 12 09:26:55 PST 2003


http://bugs.horde.org/show_bug.cgi?id=1199

*** shadow/1199	Wed Mar 12 09:26:55 2003
--- shadow/1199.tmp.25591	Wed Mar 12 09:26:55 2003
***************
*** 0 ****
--- 1,37 ----
+ Bug#: 1199
+ Product: Horde
+ Version: 2.0 Stable
+ Platform: PHP Code
+ OS/Version: other
+ Status: NEW   
+ Resolution: 
+ Severity: normal
+ Priority: P2
+ Component: IMP
+ Area: BUILD
+ AssignedTo: chuck at horde.org                            
+ ReportedBy: hordebugs at adt.nu               
+ URL: 
+ Summary: IMP fails message deletion with RH php 4.2.1 due pop3/notls
+ 
+ 
+ PHP 4.2.1 uses imap/pop3 SSL/TLS by default. This causes logins to fail with IMP
+ 3.0, but is easily fixed by disabling TLS in the protocol, by using "pop3/notls"
+ instead of "pop3".
+ 
+ However, when deleting messages over pop3, imap_expunge must be called directly
+ after imap_delete. This fails in IMP 3.0 and 3.2 (atleast) due to the following
+ code in imp/lib/Message.php:
+ 
+                 if (strstr($imp['protocol'], 'pop3')) {
+                     @imap_expunge($imp['stream']);
+                     @imap_close($imp['stream']);
+                     IMP::authenticate();
+                 }
+ 
+ However strstr should also match on pop3/notls?
+ 
+ The problem was temporarily fixed by adding an expunge above the conditional,
+ but a better solution should be done for the long term. Hence this report.
+ 
+ 


More information about the bugs mailing list