当前位置: 首页>>代码示例>>PHP>>正文


PHP User::getEmailFolderId方法代码示例

本文整理汇总了PHP中CB\User::getEmailFolderId方法的典型用法代码示例。如果您正苦于以下问题:PHP User::getEmailFolderId方法的具体用法?PHP User::getEmailFolderId怎么用?PHP User::getEmailFolderId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CB\User的用法示例。


在下文中一共展示了User::getEmailFolderId方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: mail

     if (empty($test_user_id)) {
         $delete_ids[] = $mailbox->getUniqueId($k);
         mail($mail->from, 'Error processing your email: ' . $subject, '. We didn\'t find your' . ' email address in our users database, please update your email ' . 'address in your user profile of casebox and resend your mail. ' . 'Wrong messages are deleted automatically.' . $mail_requirements, 'From: ' . $core['mail_user'] . "\n\r");
         echo "\rcannot find corresponding user in our database '.\n                'for email {$email} from message: {$subject} ... skipping";
         continue;
     } else {
         $user_id = $test_user_id;
     }
 }
 /* end of try to find user from database that corresponds to this mail */
 if (preg_match('/(\\([\\s]*(.+)[\\s]*\\))\\s*$/i', $subject, $matches)) {
     $subject = str_replace($matches[0], '', $subject);
     $path = $matches[2];
 } else {
     /*STORE IN /<USER_ID>/Emails folder*/
     $pid = User::getEmailFolderId($user_id);
 }
 /* end of try to get target folder from subject*/
 /* locate the corresponding folder in our database */
 if (empty($pid)) {
     echo 'processing path ' . $path;
     $path = explode('/', $path);
     $rootFolderId = Browser::getRootFolderId();
     $rootFolderName = null;
     $sql = 'SELECT name FROM tree WHERE id = $1';
     $res = DB\dbQuery($sql, $rootFolderId) or die(DB\dbQueryError());
     if ($r = $res->fetch_assoc()) {
         $rootFolderName = $r['name'];
     }
     $res->close();
     while (!empty($path) && empty($path[0])) {
开发者ID:austinvernsonger,项目名称:casebox,代码行数:31,代码来源:cron_check_mail.php


注:本文中的CB\User::getEmailFolderId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。