Author: Michael Slusarz (slusarz@horde.org)
Author: Jan Schneider (jan@horde.org)
Example #1
0
 /**
  * Constructor.
  *
  * @param Horde_Mail_Transport $mail  The mail transport to use.
  * @param string $email               E-mail address to send reports to.
  * @param string $from                E-mail address to send reports from.
  * @param string $user                A user name for information purposes.
  * @param string $format              E-mail format. Either 'redirect' or
  *                                    'digest'.
  * @param array $opts                 Additional options:
  *   - digest_limit_msgs: (integer) Maximum number of messages allowed in
  *                        a digest.
  *   - digest_limit_size: (integer) Maximum size of a digest.
  */
 public function __construct($mail, $email, $from, $user, $format, array $opts = array())
 {
     parent::__construct();
     $this->_mail = $mail;
     $this->_email = $email;
     $this->_from_addr = $from;
     $this->_user = $user;
     $this->_format = $format;
     $this->_opts = $opts;
 }
Example #2
0
File: Null.php Project: horde/horde
 /**
  * Constructor.
  *
  * @param boolean $success  Success status.
  */
 public function __construct($success)
 {
     parent::__construct();
     $this->_success = $success;
 }
Example #3
0
 /**
  * Constructor.
  *
  * @param string $binary  Binary location.
  */
 public function __construct($binary)
 {
     parent::__construct();
     $this->_binary = $binary;
 }
Example #4
0
 public function _testReportHamSuccess(Horde_Spam_Base $spam, $stream = false)
 {
     $content = $stream ? fopen($this->ham_file, 'r') : $this->ham;
     $this->assertEquals(1, $spam->report(array($content), Horde_Spam::INNOCENT));
 }