| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
public function __construct($dir) {
$this->_dir = $dir;
- $this->_ignored = $this->maildir(implode(DIRECTORY_SEPARATOR, array('CiviMail.ignored', date('Y'), date('m'), date('d'))));
- $this->_processed = $this->maildir(implode(DIRECTORY_SEPARATOR, array('CiviMail.processed', date('Y'), date('m'), date('d'))));
+ $this->_ignored = $this->maildir(implode(DIRECTORY_SEPARATOR, array(
+ 'CiviMail.ignored',
+ date('Y'),
+ date('m'),
+ date('d'),
+ )));
+ $this->_processed = $this->maildir(implode(DIRECTORY_SEPARATOR, array(
+ 'CiviMail.processed',
+ date('Y'),
+ date('m'),
+ date('d'),
+ )));
}
/**
*/
public function fetchNext($count = 0) {
$mails = array();
- $parser = new ezcMailParser;
+ $parser = new ezcMailParser();
//set property text attachment as file CRM-5408
$parser->options->parseTextAttachmentsAsFiles = TRUE;
foreach (array(
- 'cur', 'new') as $subdir) {
+ 'cur',
+ 'new',
+ ) as $subdir) {
$dir = $this->_dir . DIRECTORY_SEPARATOR . $subdir;
foreach (scandir($dir) as $file) {
if ($file == '.' or $file == '..') {
}
- $set = new ezcMailFileSet(array($path));
- $single = $parser->parseMail($set);
+ $set = new ezcMailFileSet(array($path));
+ $single = $parser->parseMail($set);
$mails[$path] = $single[0];
}
}
throw new Exception("Could not rename $file to $target");
}
}
+
}