Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Saturday, October 17, 2026

Diff for mylist/backend/shared/emailMessage.php between version 1.2 and 1.3

version 1.2, 2005/03/25 23:32:47 version 1.3, 2005/03/30 12:52:42
Line 1 
Line 1 
 <?  <?
   
 // $Platon$  // $Platon: mylist/backend/shared/emailMessage.php,v 1.2 2005/03/25 23:32:47 nepto Exp $
   
 class CEmailMessage  class CEmailMessage
 {  {
   
         // file containing email message          // file containing email message
         var $filename;          var $filename;
   
         // content of email message          // content of email message
         var $content;          var $content;
   
         // structure of parsed email message          // structure of parsed email message
         var $structure;          var $structure;
   
         // senders email address in regular format          // senders email address in regular format
         // <username> @ <domain> . <suffix>          // <username> @ <domain> . <suffix>
         var $sender;          var $sender;
   
         // array of recievers address in regular format          // array of recievers address in regular format
         var $arrRecievers = Array();          var $arrRecievers = Array();
           
         // array of CC recievers address in regular format          // array of CC recievers address in regular format
         var $arrCCRecievers = Array();          var $arrCCRecievers = Array();
   
         // is true, if x_original_to header is set in appropriate message          // is true, if x_original_to header is set in appropriate message
         var $X_ORIGINAL_TO;          var $X_ORIGINAL_TO;
   
         var $header;          var $header;
   
         var $body;          var $body;
   
         var $messageSize;          var $messageSize;
   
         // opens the file containing email message          // opens the file containing email message
         // and reads all its contant as RAW into $this->content          // and reads all its contant as RAW into $this->content
         function readEmailFile()          function readEmailFile()
         {          {
                 @$fp  = fopen($this->filename, "r");                  @$fp  = fopen($this->filename, "r");
                 if (!$fp)                  if (!$fp)
                 {                  {
                         echo "Error: unable to open file '".$filename."'\n";                          echo "Error: unable to open file '".$filename."'\n";
                         exit;                          exit;
                 }                  }
   
                 $this->messageSize = filesize($this->filename);                  $this->messageSize = filesize($this->filename);
                 @$this->content = fread( $fp, $this->messageSize);                  @$this->content = fread( $fp, $this->messageSize);
                 if (!$this->content)                  if (!$this->content)
                 {                  {
                         echo "Error: unable to read file '".$this->filename."'\n";                          echo "Error: unable to read file '".$this->filename."'\n";
                         exit;                          exit;
                 }                  }
                   
                 fclose($fp);                  fclose($fp);
         }          }
   
   
                           
 }  }
   
 ?>  // temporary object used by CReceiver
   // contains modified headers (prefixed subject, attached signature, etc)
   // stores all necessary datas for archivation (mylist_messages table), inserting into queue (mylist_queue_messages table), indexing (mylist_search_index table)
   class CModifiedEmailMessage
   {
           var $header;    // queue
           var $body;      // queue
   
           var $messageID; // archive
           var $dt_received; // archive
           var $dt_header; // archive
           var $from;      // archive
           var $subject;   // archive
   
   }
   
   
   
   ?>

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top