<?php
/**
* FS Storage Driver
* Proivdes mail storage functions for use within the filing system and IMAP
*
* @package phlyMail Nahariya 4.0+
* @subpackage handler email
* @author Matthias Sommerfeld
* @copyright 2003-2012 phlyLabs, Berlin (http://phlylabs.de)
* @version 4.6.8 2012-12-18 $Id: driver.php 991 2013-02-05 16:13:07Z mso $
*/
// Only valid within phlyMail
if (!defined('_IN_PHM_')) die();
class handler_email_driver {
public $pagesize = false;
private $error = array();
public $docroot = false;
public $userroot = false;
public $IDX = false;
protected $archive_nested = true;
protected $archive_years = true;
private $IMAP_Searched = array();
protected $streamType = false;
public $label2colour = array('$label1' => 'FF0000', '$label2' => 'FFFF00'
,'$label3' => '00FF00', '$label4' => '0000FF', '$label5' => 'FF00FF'
/*,'$label6' => '000000'*/, '$label7' => '800000', '$label8' => '008000'
,'$label9' => '000080', '$label10' => '808000', '$label11' => '008080'
,'$label12' => '800080', '$label13' => '808080', '$label14' => '00FFFF'
);
public $sysfolders = array
('mailbox' => array('root' => 1, 'msg' => 'EmailLocalsFolder', 'icon' => ':mailbox', 'imap' => false)
,'virtual' => array('root' => 1, 'msg' => 'EmailVirtualsFolder', 'icon' => ':virtual', 'imap' => false)
,'inbox' => array('root' => 0, 'msg' => 'EmailInboxFolder', 'icon' => ':inbox', 'imap' => false)
,'outbox' => array('root' => 0, 'msg' => 'EmailOutboxFolder', 'icon' => ':outbox', 'imap' => false)
,'sent' => array('root' => 0, 'msg' => 'EmailSentObjectsFolder', 'icon' => ':sent', 'imap' => 'Sent')
,'drafts' => array('root' => 0, 'msg' => 'EmailDraftsFolder', 'icon' => ':drafts', 'imap' => 'Drafts')
,'templates' => array('root' => 0, 'msg' => 'EmailTemplatesFolder', 'icon' => ':templates', 'imap' => 'Templates')
,'archive' => array('root' => 0, 'msg' => 'EmailArchiveFolder', 'icon' => ':archive', 'imap' => 'Archive')
,'waste' => array('root' => 0, 'msg' => 'EmailWasteFolder', 'icon' => ':waste', 'imap' => 'Waste')
,'junk' => array('root' => 0, 'msg' => 'EmailJunkFolder', 'icon' => ':junk', 'imap' => 'Junk')
);
// This holds all known names of system folders on IMAP servers, 'ÄÄ' serves as the placeholder for the delimiter
public $imaptranslate = array
('inbox' => array('fn' => 'Inbox', 'i' => ':inbox')
,'outbox' => array('fn' => 'Outbox', 'i' => ':outbox') // Special feature of Courier
,'inboxÄÄoutbox' => array('fn' => 'Outbox', 'i' => ':outbox') // Special feature of Courier
,'inboxÄÄsent' => array('fn' => 'Sent', 'i' => ':sent')
,'inboxÄÄsentmail' => array('fn' => 'Sent', 'i' => ':sent')
,'inboxÄÄsent items' => array('fn' => 'Sent', 'i' => ':sent')
,'inboxÄÄgesendet' => array('fn' => 'Sent', 'i' => ':sent')
,'inboxÄÄpostausgang' => array('fn' => 'Sent', 'i' => ':sent')
,'inboxÄÄgesendete emails' => array('fn' => 'Sent', 'i' => ':sent')
,'inboxÄÄgesendete objekte' => array('fn' => 'Sent', 'i' => ':sent')
,'[google mail]ÄÄgesendet' => array('fn' => 'Sent', 'i' => ':sent')
,'[google mail]ÄÄsent mail' => array('fn' => 'Sent', 'i' => ':sent')
,'sent' => array('fn' => 'Sent', 'i' => ':sent')
,'sent items' => array('fn' => 'Sent', 'i' => ':sent')
,'gesendet' => array('fn' => 'Sent', 'i' => ':sent')
,'postausgang' => array('fn' => 'Sent', 'i' => ':sent')
,'gesendete emails' => array('fn' => 'Sent', 'i' => ':sent')
,'gesendete objekte' => array('fn' => 'Sent', 'i' => ':sent')
,'inboxÄÄdrafts' => array('fn' => 'Drafts', 'i' => ':drafts')
,'inboxÄÄentw&apw-rfe' => array('fn' => 'Drafts', 'i' => ':drafts')
,'inboxÄÄentwuerfe' => array('fn' => 'Drafts', 'i' => ':drafts')
,'[google mail]ÄÄentw&apw-rfe' => array('fn' => 'Drafts', 'i' => ':drafts')
,'[google mail]ÄÄdrafts' => array('fn' => 'Drafts', 'i' => ':drafts')
,'drafts' => array('fn' => 'Drafts', 'i' => ':drafts')
,'entw&apw-rfe' => array('fn' => 'Drafts', 'i' => ':drafts')
,'entwuerfe' => array('fn' => 'Drafts', 'i' => ':drafts')
,'inboxÄÄtemplates' => array('fn' => 'Templates', 'i' => ':templates')
,'inboxÄÄvorlagen' => array('fn' => 'Templates', 'i' => ':templates')
,'[google mail]ÄÄvorlagen' => array('fn' => 'Templates', 'i' => ':templates')
,'[google mail]ÄÄtemplates' => array('fn' => 'Templates', 'i' => ':templates')
,'templates' => array('fn' => 'Templates', 'i' => ':templates')
,'vorlagen' => array('fn' => 'Templates', 'i' => ':templates')
,'inboxÄÄtrash' => array('fn' => 'Trash', 'i' => ':waste')
,'inboxÄÄdeleted items' => array('fn' => 'Trash', 'i' => ':waste')
,'inboxÄÄdeleted messages' => array('fn' => 'Trash', 'i' => ':waste')
,'inboxÄÄdeleted' => array('fn' => 'Trash', 'i' => ':waste')
,'inboxÄÄgel&apy-scht' => array('fn' => 'Trash', 'i' => ':waste')
,'inboxÄÄmuelleimer' => array('fn' => 'Trash', 'i' => ':waste')
,'inboxÄÄpapierkorb' => array('fn' => 'Trash', 'i' => ':waste')
,'[google mail]ÄÄpapierkorb' => array('fn' => 'Trash', 'i' => ':waste')
,'[google mail]ÄÄtrash' => array('fn' => 'Trash', 'i' => ':waste')
,'trash' => array('fn' => 'Trash', 'i' => ':waste')
,'deleted items' => array('fn' => 'Trash', 'i' => ':waste')
,'deleted messages' => array('fn' => 'Trash', 'i' => ':waste')
,'deleted' => array('fn' => 'Trash', 'i' => ':waste')
,'gel&apy-scht' => array('fn' => 'Trash', 'i' => ':waste')
,'muelleimer' => array('fn' => 'Trash', 'i' => ':waste')
,'papierkorb' => array('fn' => 'Trash', 'i' => ':waste')
,'inboxÄÄspam' => array('fn' => 'Junk', 'i' => ':junk')
,'inboxÄÄjunk' => array('fn' => 'Junk', 'i' => ':junk')
,'inboxÄÄspamverdacht' => array('fn' => 'Junk', 'i' => ':junk')
,'inboxÄÄjunk e-mail' => array('fn' => 'Junk', 'i' => ':junk')
,'[google mail]ÄÄspam' => array('fn' => 'Junk', 'i' => ':junk')
,'spam' => array('fn' => 'Junk', 'i' => ':junk')
,'junk' => array('fn' => 'Junk', 'i' => ':junk')
,'spamverdacht' => array('fn' => 'Junk', 'i' => ':junk')
,'junk e-mail' => array('fn' => 'Junk', 'i' => ':junk')
,'inboxÄÄarchiv' => array('fn' => 'Archive', 'i' => ':archive')
,'inboxÄÄarchive' => array('fn' => 'Archive', 'i' => ':archive')
,'archiv' => array('fn' => 'Archive', 'i' => ':archive')
,'archive' => array('fn' => 'Archive', 'i' => ':archive')
);
/**
* Constructor, expects to be given 2 parameters
* @param string Path to INI file
* @param int ID of the affected user
*[@param string Actual working dir within doc root]
*[@param boolean TRUE to create the user's doc root, FALSE otherwise; Default: FALSE]
* @return boolean false if either dir does not exist or UID not given, true otherwise
*/
public function __construct($uid = '', $dirname = '', $create = false)
{
if (false === $uid) return false;
// Load indexer driver, instantiate it
$this->IDX = new handler_email_indexer();
$this->uid = intval($uid);
$this->place = false;
$this->docroot = $GLOBALS['_PM_']['path']['storage'];
$this->userroot = $this->docroot.'/'.$this->uid.'/email';
$this->archive_nested = (!em
没有合适的资源?快使用搜索试试~ 我知道了~
基于PHP的PHlyMail邮件系统源码.zip
![preview](https://csdnimg.cn/release/downloadcmsfe/public/img/white-bg.ca8570fa.png)
共1828个文件
png:637个
php:440个
gif:404个
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 37 浏览量
2023-08-27
23:59:32
上传
评论
收藏 4.35MB ZIP 举报
温馨提示
基于PHP的PHlyMail邮件系统源码.zip
资源推荐
资源详情
资源评论
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083646.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
共 1828 条
- 1
- 2
- 3
- 4
- 5
- 6
- 19
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/d447968c226a4cefba6233e2f2a4df24_m0_62396648.jpg!1)
毕业_设计
- 粉丝: 1947
- 资源: 1万+
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)