-<?php /* Modified at 1 places by ri_once */ ?>
-<?php /* 'php' Added by ri_once */
+<?php
/**
- ** mail_fetch/setup.php
- **
- ** Copyright (c) 1999-2001 The Squirrelmail Development Team
- ** Licensed under the GNU GPL. For full terms see the file COPYING.
- **
- ** Copyright (c) 1999 - CDI (cdi@thewebmasters.net) All Rights Reserved
- ** Modified by Philippe Mingo 2001 mingo@rotedic.com
- ** An RFC 1939 compliant wrapper class for the POP3 protocol.
- **
- ** pop3 class
- **
- ** $Id$
- **/
+ * mail_fetch/setup.php
+ *
+ * Copyright (c) 1999-2002 The SquirrelMail Project Team
+ *
+ * Copyright (c) 1999 CDI (cdi@thewebmasters.net) All Rights Reserved
+ * Modified by Philippe Mingo 2001 mingo@rotedic.com
+ * An RFC 1939 compliant wrapper class for the POP3 protocol.
+ *
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * pop3 class
+ *
+ * $Id$
+ */
class POP3 {
var $ERROR = ''; // Error string.
var $BANNER = ''; // Holds the banner returned by the
// pop server - used for apop()
- var $RFC1939 = TRUE; // Set by noop(). See rfc1939.txt
- //
-
- var $ALLOWAPOP = FASLE; // Allow or disallow apop()
+ var $ALLOWAPOP = FALSE; // Allow or disallow apop()
// This must be set to true
// manually
}
$this->FP = $fp;
$this->BANNER = $this->parse_banner($reply);
- $this->RFC1939 = $this->noop();
- if($this->RFC1939) {
- $this->ERROR = _("POP3: premature NOOP OK, NOT an RFC 1939 Compliant server");
- $this->quit();
- return false;
- } else
- return true;
+ return true;
}
function noop () {
// Auth successful.
$count = $this->last("count");
$this->COUNT = $count;
- $this->RFC1939 = $this->noop();
- if(!$this->RFC1939) {
- $this->ERROR = _("POP3 pass:") . ' ' . _("NOOP failed. Server not RFC 1939 compliant");
- $this->quit();
- return false;
- } else
- return $count;
+ return $count;
}
}
}
// Auth successful.
$count = $this->last("count");
$this->COUNT = $count;
- $this->RFC1939 = $this->noop();
- if(!$this->RFC1939) {
- $this->ERROR = _("POP3 apop:") . ' ' . _("NOOP failed. Server not RFC 1939 compliant");
- $this->quit();
- return false;
- } else
- return $count;
+ return $count;
}
}
}