Changeset 2296854
- Timestamp:
- 05/02/2020 10:40:58 PM (6 years ago)
- Location:
- wp-issues-crm
- Files:
-
- 7 edited
- 4 copied
-
tags/4.5.3.9 (copied) (copied from wp-issues-crm/trunk)
-
tags/4.5.3.9/php/db/class-wic-db-address-block-object.php (modified) (1 diff)
-
tags/4.5.3.9/php/db/class-wic-db-email-message-object.php (copied) (copied from wp-issues-crm/trunk/php/db/class-wic-db-email-message-object.php) (1 diff)
-
tags/4.5.3.9/php/entity/class-wic-entity-email-message.php (modified) (5 diffs)
-
tags/4.5.3.9/readme.txt (copied) (copied from wp-issues-crm/trunk/readme.txt) (2 diffs)
-
tags/4.5.3.9/wp-issues-crm.php (copied) (copied from wp-issues-crm/trunk/wp-issues-crm.php) (1 diff)
-
trunk/php/db/class-wic-db-address-block-object.php (modified) (1 diff)
-
trunk/php/db/class-wic-db-email-message-object.php (modified) (1 diff)
-
trunk/php/entity/class-wic-entity-email-message.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wp-issues-crm.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-issues-crm/tags/4.5.3.9/php/db/class-wic-db-address-block-object.php
r1948828 r2296854 375 375 $non_names = $this->form_variables_object->non_names; 376 376 377 // strip parenthetic expressions 378 $name_line = preg_replace( '#\s*\([\s\w,.]*\)\s*#u', '', $name_line ); 379 377 380 // make sure line as no padding 378 381 $name_line = trim ( $name_line, ',. '); -
wp-issues-crm/tags/4.5.3.9/php/db/class-wic-db-email-message-object.php
r2295516 r2296854 457 457 * 458 458 */ 459 $block_array = preg_split ( '# *\v*\v\s*#', $this->text_body, NULL, PREG_SPLIT_NO_EMPTY );459 $block_array = preg_split ( '#\h*\v\h*\v\s*#', $this->text_body, NULL, PREG_SPLIT_NO_EMPTY ); 460 460 $address_block_object_array = array(); 461 461 $non_address_block_array = array(); -
wp-issues-crm/tags/4.5.3.9/php/entity/class-wic-entity-email-message.php
r2146005 r2296854 127 127 * return all to client 128 128 * 129 */ 129 */ 130 130 131 $response = (object) array ( 131 132 'assigned_constituent_display' => $message->assigned_constituent ? self::get_constituent_title ($message->assigned_constituent) : '', … … 201 202 $used_addresses = array(); 202 203 $wic_option_array = get_option('wp_issues_crm_plugin_options_array'); 203 $my_mails = array ( $wic_option_array['user_name_for_email_imap_interface'], $wic_option_array['from_email'], $wic_option_array['smtp_reply'] ); 204 204 $my_mails = array ( 205 isset( $wic_option_array['user_name_for_email_imap_interface'] ) ? strtolower($wic_option_array['user_name_for_email_imap_interface']) : 'no_user_name_for_email_imap_interface', 206 isset( $wic_option_array['from_email'] ) ? strtolower($wic_option_array['from_email']) : 'no_from_email', 207 isset( $wic_option_array['smtp_reply'] ) ? strtolower($wic_option_array['smtp_reply']) : 'no_smtp_reply', 208 isset( $wic_option_array['activesync_email_address'] ) ? strtolower($wic_option_array['activesync_email_address']) : 'no_activesync_email_address', 209 ); 210 205 211 foreach ( $to_array as $to_address ) { 206 if ( !in_array ( $to_address[1], $used_addresses ) && !in_array ( $to_address[1], $my_mails) ) { 212 if ( !in_array ( $to_address[1], $used_addresses ) && !in_array ( strtolower($to_address[1]), $my_mails) ) { 213 $to_address[0] = self::clean_name( $to_address[0]); 207 214 array_push ( $merged_clean_array, $to_address ); 208 215 } … … 210 217 } 211 218 212 foreach ( $cc_array as $cc_address ) { 213 if ( !in_array ( $cc_address[1], $used_addresses ) && !in_array ( $cc_address[1], $my_mails) ) { 219 foreach ( $cc_array as $cc_address ) { 220 if ( !in_array ( $cc_address[1], $used_addresses ) && !in_array ( strtolower($cc_address[1]), $my_mails) ) { 221 $cc_address[0] = self::clean_name( $cc_address[0]); 214 222 array_push ( $merged_clean_array, $cc_address ); 215 223 } 216 224 array_push( $used_addresses, $cc_address[1] ); 217 225 } 218 219 226 return $merged_clean_array; 220 227 } 221 228 222 223 229 230 private static function clean_name ( $name_line ) { 231 $working_block_object = new WIC_DB_Address_Block_Object; 232 $name_array = $working_block_object->parse_name( $name_line ); 233 $clean_name = trim ( $name_array['first'] . ' ' . $name_array['middle'] . ( $name_array['middle'] ? ' ' : '') . $name_array['last'] ); 234 return $clean_name; 235 } 224 236 /* 225 237 * … … 405 417 ; 406 418 $sender_display_line = $sender_display_line ? $sender_display_line : 419 ( 407 420 isset ( $message->from_personal ) ? 408 421 ( … … 412 425 ) : 413 426 '' 427 ) 414 428 ; 415 429 return $sender_display_line; -
wp-issues-crm/tags/4.5.3.9/readme.txt
r2295516 r2296854 5 5 Requires at least: 5 6 6 Tested up to: 5.4.1 7 Stable tag: 4.5.3. 87 Stable tag: 4.5.3.9 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 108 108 109 109 == Changelog == 110 = 4.5.3.9 = 111 * Clean up to/reply names before offering to client for email reply use 110 112 = 4.5.3.8 = 111 113 * Add internet headers to standard stored email object (make available for add-on local spam processing) -
wp-issues-crm/tags/4.5.3.9/wp-issues-crm.php
r2295520 r2296854 4 4 * Plugin URI: http://wp-issues-crm.com 5 5 * Description: Constituent Relationship Management for organizations that respond to constituents. Organizes constituent contacts ( calls, etc. ) around Wordpress posts and categories. 6 * Version: 4.5.3. 86 * Version: 4.5.3.9 7 7 * Author: Will Brownsberger 8 8 * Author URI: http://willbrownsberger.com -
wp-issues-crm/trunk/php/db/class-wic-db-address-block-object.php
r1948828 r2296854 375 375 $non_names = $this->form_variables_object->non_names; 376 376 377 // strip parenthetic expressions 378 $name_line = preg_replace( '#\s*\([\s\w,.]*\)\s*#u', '', $name_line ); 379 377 380 // make sure line as no padding 378 381 $name_line = trim ( $name_line, ',. '); -
wp-issues-crm/trunk/php/db/class-wic-db-email-message-object.php
r2295516 r2296854 457 457 * 458 458 */ 459 $block_array = preg_split ( '# *\v*\v\s*#', $this->text_body, NULL, PREG_SPLIT_NO_EMPTY );459 $block_array = preg_split ( '#\h*\v\h*\v\s*#', $this->text_body, NULL, PREG_SPLIT_NO_EMPTY ); 460 460 $address_block_object_array = array(); 461 461 $non_address_block_array = array(); -
wp-issues-crm/trunk/php/entity/class-wic-entity-email-message.php
r2146005 r2296854 127 127 * return all to client 128 128 * 129 */ 129 */ 130 130 131 $response = (object) array ( 131 132 'assigned_constituent_display' => $message->assigned_constituent ? self::get_constituent_title ($message->assigned_constituent) : '', … … 201 202 $used_addresses = array(); 202 203 $wic_option_array = get_option('wp_issues_crm_plugin_options_array'); 203 $my_mails = array ( $wic_option_array['user_name_for_email_imap_interface'], $wic_option_array['from_email'], $wic_option_array['smtp_reply'] ); 204 204 $my_mails = array ( 205 isset( $wic_option_array['user_name_for_email_imap_interface'] ) ? strtolower($wic_option_array['user_name_for_email_imap_interface']) : 'no_user_name_for_email_imap_interface', 206 isset( $wic_option_array['from_email'] ) ? strtolower($wic_option_array['from_email']) : 'no_from_email', 207 isset( $wic_option_array['smtp_reply'] ) ? strtolower($wic_option_array['smtp_reply']) : 'no_smtp_reply', 208 isset( $wic_option_array['activesync_email_address'] ) ? strtolower($wic_option_array['activesync_email_address']) : 'no_activesync_email_address', 209 ); 210 205 211 foreach ( $to_array as $to_address ) { 206 if ( !in_array ( $to_address[1], $used_addresses ) && !in_array ( $to_address[1], $my_mails) ) { 212 if ( !in_array ( $to_address[1], $used_addresses ) && !in_array ( strtolower($to_address[1]), $my_mails) ) { 213 $to_address[0] = self::clean_name( $to_address[0]); 207 214 array_push ( $merged_clean_array, $to_address ); 208 215 } … … 210 217 } 211 218 212 foreach ( $cc_array as $cc_address ) { 213 if ( !in_array ( $cc_address[1], $used_addresses ) && !in_array ( $cc_address[1], $my_mails) ) { 219 foreach ( $cc_array as $cc_address ) { 220 if ( !in_array ( $cc_address[1], $used_addresses ) && !in_array ( strtolower($cc_address[1]), $my_mails) ) { 221 $cc_address[0] = self::clean_name( $cc_address[0]); 214 222 array_push ( $merged_clean_array, $cc_address ); 215 223 } 216 224 array_push( $used_addresses, $cc_address[1] ); 217 225 } 218 219 226 return $merged_clean_array; 220 227 } 221 228 222 223 229 230 private static function clean_name ( $name_line ) { 231 $working_block_object = new WIC_DB_Address_Block_Object; 232 $name_array = $working_block_object->parse_name( $name_line ); 233 $clean_name = trim ( $name_array['first'] . ' ' . $name_array['middle'] . ( $name_array['middle'] ? ' ' : '') . $name_array['last'] ); 234 return $clean_name; 235 } 224 236 /* 225 237 * … … 405 417 ; 406 418 $sender_display_line = $sender_display_line ? $sender_display_line : 419 ( 407 420 isset ( $message->from_personal ) ? 408 421 ( … … 412 425 ) : 413 426 '' 427 ) 414 428 ; 415 429 return $sender_display_line; -
wp-issues-crm/trunk/readme.txt
r2295516 r2296854 5 5 Requires at least: 5 6 6 Tested up to: 5.4.1 7 Stable tag: 4.5.3. 87 Stable tag: 4.5.3.9 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 108 108 109 109 == Changelog == 110 = 4.5.3.9 = 111 * Clean up to/reply names before offering to client for email reply use 110 112 = 4.5.3.8 = 111 113 * Add internet headers to standard stored email object (make available for add-on local spam processing) -
wp-issues-crm/trunk/wp-issues-crm.php
r2295520 r2296854 4 4 * Plugin URI: http://wp-issues-crm.com 5 5 * Description: Constituent Relationship Management for organizations that respond to constituents. Organizes constituent contacts ( calls, etc. ) around Wordpress posts and categories. 6 * Version: 4.5.3. 86 * Version: 4.5.3.9 7 7 * Author: Will Brownsberger 8 8 * Author URI: http://willbrownsberger.com
Note: See TracChangeset
for help on using the changeset viewer.