<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
require_once 'ezc/Base/src/ezc_bootstrap.php';
require_once 'ezc/autoload/mail_autoload.php';
+
+/**
+ * Class CRM_Mailing_MailStore_Mbox
+ */
class CRM_Mailing_MailStore_Mbox extends CRM_Mailing_MailStore {
/**
* Connect to and lock the supplied file and make sure the two mail dirs exist
*
- * @param string $file mbox to operate upon
+ * @param string $file mbox to operate upon
*
- * @return void
+ * @return \CRM_Mailing_MailStore_Mbox
*/
- function __construct($file) {
+ public function __construct($file) {
$this->_transport = new ezcMailMboxTransport($file);
flock($this->_transport->fh, LOCK_EX);
*
* @return void
*/
- function __destruct() {
+ public function __destruct() {
if ($this->_leftToProcess === 0) {
// FIXME: the ftruncate() call does not work for some reason
if ($this->_debug) {
*
* @return void
*/
- function markIgnored($nr) {
+ public function markIgnored($nr) {
if ($this->_debug) {
print "copying message $nr to ignored folder\n";
}
*
* @return void
*/
- function markProcessed($nr) {
+ public function markProcessed($nr) {
if ($this->_debug) {
print "copying message $nr to processed folder\n";
}
$this->_leftToProcess--;
}
}
-