<?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
共1828个文件
png:637个
php:440个
gif:404个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 68 浏览量
2022-11-12
11:41:07
上传
评论
收藏 4.35MB ZIP 举报
温馨提示
PHP实例开发源码—PHlyMail 邮件系统.zip
资源推荐
资源详情
资源评论
收起资源包目录
PHP实例开发源码—PHlyMail 邮件系统.zip (1828个子文件)
current.build 5B
style.css 55KB
jquery.mobile.structure.css 46KB
editor.css 35KB
editor.css 31KB
editor.css 30KB
phlymail.css 30KB
mobile.css 19KB
style.css 18KB
dialog.css 18KB
dialog.css 16KB
dialog.css 15KB
default.css 10KB
colourmark.css 6KB
thickbox.css 4KB
yui.css 3KB
templates.css 2KB
templates.css 1KB
templates.css 1KB
toolbar.css 1KB
wsc.css 1004B
ui.notify.css 993B
contents.css 559B
theme.engine 3B
ajax-loader.gif 8KB
busy.gif 2KB
busy.gif 2KB
contactsfolder_global_big.gif 1KB
contactsfolder_global_big.gif 1KB
contactsfolder_personal_big.gif 1KB
contactsfolder_personal_big.gif 1KB
files_big.gif 1KB
files_big.gif 1KB
rssfolder_big.gif 1KB
rssfolder_big.gif 1KB
sharedbox_big.gif 1KB
sharedbox_big.gif 1KB
uicolor.gif 1KB
virtualfolder_big.gif 1KB
virtualfolder_big.gif 1KB
imapbox_stale_big.gif 1KB
imapbox_stale_big.gif 1KB
sent_big.gif 1KB
sent_big.gif 1KB
folder_def_big.gif 1KB
folder_def_big.gif 1KB
contacts_big.gif 1KB
contacts_big.gif 1KB
listheadback.gif 1015B
email_big.gif 1008B
email_big.gif 1008B
popwin_titlebar.gif 1007B
files_sendto.gif 1000B
files_sendto.gif 1000B
pleasewait.gif 999B
pleasewait.gif 999B
files_upload.gif 994B
files_upload.gif 994B
files_download.gif 989B
files_download.gif 989B
groupadd_men.gif 967B
groupadd_men.gif 967B
groupadd_men.gif 967B
public_contact.gif 962B
public_contact.gif 962B
movetofolder_ctx.gif 959B
movetofolder_ctx.gif 959B
rss_big.gif 958B
rss_big.gif 958B
copytofolder_ctx.gif 951B
copytofolder_ctx.gif 951B
fish.gif 950B
group_men.gif 949B
calendar_men.gif 948B
calendar_men.gif 948B
junk_big.gif 944B
junk_big.gif 944B
markread_ctx.gif 938B
calendar_sendto.gif 938B
markread_ctx.gif 938B
calendar_sendto.gif 938B
folder_men.gif 934B
folder_men.gif 934B
marknospam_ctx.gif 927B
marknospam_ctx.gif 927B
markspam_ctx.gif 926B
mail_forwardedanswered.gif 926B
markspam_ctx.gif 926B
waste.gif 923B
waste.gif 923B
waste_big.gif 920B
waste_big.gif 920B
archive_men.gif 917B
templates_big.gif 917B
templates_big.gif 917B
archive_men.gif 917B
mail_readbounced.gif 916B
mail_answer.gif 915B
mail_forward.gif 914B
play_sound.gif 913B
共 1828 条
- 1
- 2
- 3
- 4
- 5
- 6
- 19
资源评论
毕业_设计
- 粉丝: 1935
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功