[dev] fetchmail patch...

Marc Jauvin marc at register4less.com
Sat Feb 14 10:15:04 PST 2004


The attached patch fixes a variable name problem within the fetchmail code.

--
Marc Jauvin
http://register4less.com
450-441-5458
-------------- next part --------------
Index: fetchmail_login.php
===================================================================
RCS file: /repository/imp/lib/Maintenance/Task/fetchmail_login.php,v
retrieving revision 1.3
diff -u -r1.3 fetchmail_login.php
--- fetchmail_login.php 14 Feb 2004 08:26:29 -0000      1.3
+++ fetchmail_login.php 14 Feb 2004 18:13:22 -0000
@@ -39,7 +39,7 @@
             $fm_account = &new IMP_Fetchmail_Account();
             $fm_list = array();

-            foreach ($account->getAll('loginfetch') as $id => $val) {
+            foreach ($fm_account->getAll('loginfetch') as $id => $val) {
                 if ($val) {
                     $fm_list[] = $id;
                 }
@@ -66,7 +66,7 @@
         if ($GLOBALS['prefs']->getValue('accounts')) {
             require_once IMP_BASE . '/lib/Fetchmail.php';
             $fm_account = &new IMP_Fetchmail_Account();
-            foreach ($account->getAll('loginfetch') as $id => $val) {
+            foreach ($fm_account->getAll('loginfetch') as $id => $val) {
                 if ($val) {
                     $str .= " - " . $fm_account->getValue('id', $id) . "<br />\n";
                 }


More information about the dev mailing list