Changeset 6120
- Timestamp:
- 05/07/12 16:25:58 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r6058 r6120 4798 4798 $msg_user = "Sem mensagem!"; 4799 4799 4800 $toname 4800 $toname = $_SESSION['phpgw_info']['expressomail']['user']['fullname']; 4801 4801 4802 $exporteml 4802 $exporteml = new ExportEml(); 4803 4803 $mail_content = $exporteml->export_msg_data($id_msg, $msg_folder); 4804 4804 $this->open_mbox($msg_folder); … … 4806 4806 $body = "<body>O usuário <strong>$toname</strong> reportou um erro na tentativa de acesso ao conteúdo do email.<br><br>Segue em anexo o fonte da mensagem" . " reportada.<br><br><hr><strong><u>Mensagem do usuário:</strong></u><br><br><br>" . 4807 4807 "$msg_user</body><br><br><hr>"; 4808 4808 4809 4809 require_once dirname(__FILE__) . '/../../services/class.servicelocator.php'; 4810 4810 $mailService = ServiceLocator::getService('mail'); … … 5029 5029 5030 5030 function getaclfrombox($mail) 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5031 { 5032 $mailArray = explode('@', $mail); 5033 $boxacl = $mailArray[0]; 5034 $return = array(); 5035 5036 if(!$this->mbox) 5037 $this->open_mbox(); 5038 5039 $mbox_acl = imap_getacl($this->mbox, 'user' . $this->imap_delimiter . $boxacl); 5040 5041 foreach ($mbox_acl as $user => $acl) 5042 { 5043 if ($user != $boxacl ) 5044 $return[$user] = $acl; 5045 } 5046 return $return; 5047 } 5048 5048 5049 5049 … … 5195 5195 } 5196 5196 5197 5198 5199 /** 5200 * Método que aplica a ação do filtro nas mensagens da caixa de entrada 5201 * 5202 * @license http://www.gnu.org/copyleft/gpl.html GPL 5203 * @author Consórcio Expresso Livre - 4Linux (www.4linux.com.br) e Prognus Software Livre (www.prognus.com.br) 5204 * @sponsor Caixa Econômica Federal 5205 * @author Airton Bordin Junior <airton@prognus.com.br> 5206 * @author Gustavo Pereira dos Santos <gustavo@prognus.com.br> 5207 * @param <Array> <$msgs> <Mensagens da caixa de entrada> 5208 * @param <Array> <$proc> <ações do filtro> 5209 * @return <Regras do usuário em Array> 5210 * @access <public> 5211 */ 5197 5212 function apliSieveFilter($msgs , $proc) 5198 5213 { … … 5208 5223 /* Está sempre copiando a mensagem para a pasta destino */ 5209 5224 //$ret[$msg][] = imap_mail_move($imap,$msg,$proc['parameter'], CP_UID); 5210 $ret[$msg][] = imap_mail_move($imap,$msg,$proc['parameter'], CP_UID); 5225 $ret[$msg][] = imap_mail_move($imap,$msg,$proc['parameter'], CP_UID); 5211 5226 break; 5212 case 'redirect': 5213 /* TO-DO: Fix the problems of include serviceLocator file */ 5214 //foreach($msgs as $msg) 5215 //{ 5216 /* 5227 case 'redirect': 5228 foreach($msgs as $msg) 5229 { 5217 5230 $info = $this->get_info_msg(array('msg_folder' => 'INBOX','msg_number' => $msg)); 5218 //require_once $_SESSION['rootPath'] . '/API/class.servicelocator.php'; 5219 $mailService = ServiceLocator::getService('mail'); 5231 Controller::create( array( 'service' => 'SMTP' ), array( 'body' => $info['body'], 5232 'isHtml' => true, 5233 'subject' => $info['subject'], 5234 'from' => $info['from']['full'], 5235 'to' => $proc['parameter']) 5236 ); 5220 5237 5221 $ret[$msg][] = $mailService->sendMail( $proc['parameter'] , $info['from']['full'] , $info['subject'] ,$info['body'] );5222 5223 5238 if($proc['keep'] !== true) 5224 5239 $this->delete_msgs(array('msgs_number' => $msg , 'folder' => 'INBOX')); 5225 5226 */ 5227 //} 5240 } 5228 5241 break; 5229 5242
Note: See TracChangeset
for help on using the changeset viewer.