"Arief S Fitrianto" <arief@gurame.fisika.ui.ac.id>
[squirrelmail.git] / plugins / mail_fetch / class.POP3.php
index ba8cd77b613e74e19409c6ec417f2422601c5ae3..a8691c54e68e04adc6c08fba4b32f99d68557957 100644 (file)
@@ -1,14 +1,23 @@
-<?
-
-/*
-    class.POP3.php3 v1.0    99/03/24 CDI cdi@thewebmasters.net
-    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.
-*/
+<?php 
+
+   /**
+    * 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 $ERROR      = '';       //  Error string.
 
     var $TIMEOUT    = 60;       //  Default timeout before giving up on a
                                 //  network operation.
@@ -19,26 +28,26 @@ class POP3 {
                                 //  Per RFC 1939 the returned line a POP3
                                 //  server can send is 512 bytes.
 
-    var $FP         = "";       //  The connection to the server's
+    var $FP         = '';       //  The connection to the server's
                                 //  file descriptor
 
-    var $MAILSERVER = "";       // Set this to hard code the server name
+    var $MAILSERVER = '';       // Set this to hard code the server name
 
-    var $DEBUG      = false;    // set to true to echo pop3
+    var $DEBUG      = FALSE;    // set to true to echo pop3
                                 // commands and responses to error_log
                                 // this WILL log passwords!
 
-    var $BANNER     = "";       //  Holds the banner returned by the
+    var $BANNER     = '';       //  Holds the banner returned by the
                                 //  pop server - used for apop()
 
-    var $RFC1939    = true;     //  Set by noop(). See rfc1939.txt
+    var $RFC1939    = TRUE;     //  Set by noop(). See rfc1939.txt
                                 //
 
-    var $ALLOWAPOP  = false;    //  Allow or disallow apop()
+    var $ALLOWAPOP  = FALSE;    //  Allow or disallow apop()
                                 //  This must be set to true
                                 //  manually
 
-    function POP3 ( $server = "", $timeout = "" ) {
+    function POP3 ( $server = '', $timeout = '' ) {
         settype($this->BUFFER,"integer");
         if( !empty($server) ) {
             // Do not allow programs to alter MAILSERVER
@@ -583,7 +592,7 @@ class POP3 {
                 }
                 else
                 {
-                    $UIDLArray[$count] = "deleted";
+                    $UIDLArray[$count] = 'deleted';
                 }
                 $count++;
                 $line = fgets($fp,$buffer);