[ Index ] |
MailPress 7.2 |
[ Index ] [ Classes ] [ Functions ] [ Variables ] [ Constants ] [ Statistics ] |
[Summary view] [Print] [Text view]
1 <?php 2 class MP_Privacy extends MP_privacy_ 3 { 4 public $option_name = MailPress_privacy::option_name; 5 6 public $class = __CLASS__; 7 public $log_name = 'mp_process_privacy'; 8 public $log_option_name = 'privacy'; 9 public $log_title = 'Privacy Report ( Request in mailbox : %1$s )'; 10 11 public $cron_name = 'MailPress_schedule_privacy'; 12 13 const headers = array( 'From', 'Subject' ); 14 15 function is_request() 16 { 17 $this->pop3->get_headers( $this->message_id, self::headers ); 18 19 $this->action_name = false; 20 21 // subject 22 $subject = $this->pop3->get_header( 'Subject' ); 23 24 if ( empty( $subject ) ) 25 { 26 $bm = ' ! ** ERROR ** empty header : Subject (?) '; 27 $this->local_log[] = '!' . $bm . str_repeat( ' ', $this->bt - strlen( $bm ) ) . '!'; 28 return false; 29 } 30 31 $bm = ' Subject ! ==> ' . $subject; 32 $this->local_log[] = '!' . $bm . str_repeat( ' ', $this->bt - strlen( $bm ) ) . '!'; 33 34 /* looking for data in subject */ 35 36 foreach( $this->requests as $request => $word ) 37 { 38 if ( $this->compare( $subject, $word ) ) 39 { 40 $this->action_name = $request; 41 break; 42 } 43 } 44 45 if ( !$this->action_name ) return false; 46 47 // from 48 $this->has_email(); 49 50 if ( !$this->email_address ) return false; 51 52 return ( $this->action_name && $this->email_address ); 53 } 54 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue May 19 15:55:14 2020 | Cross-referenced by PHPXref 0.7.1 |