Changeset 2295516
- Timestamp:
- 04/30/2020 04:08:57 PM (6 years ago)
- Location:
- wp-issues-crm
- Files:
-
- 5 edited
- 2 copied
-
tags/4.5.3.8 (copied) (copied from wp-issues-crm/trunk)
-
tags/4.5.3.8/php/db/class-wic-db-email-message-object.php (modified) (4 diffs)
-
tags/4.5.3.8/readme.txt (copied) (copied from wp-issues-crm/trunk/readme.txt) (2 diffs)
-
tags/4.5.3.8/wp-issues-crm.php (modified) (2 diffs)
-
trunk/php/db/class-wic-db-email-message-object.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wp-issues-crm.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-issues-crm/tags/4.5.3.8/php/db/class-wic-db-email-message-object.php
r2170600 r2295516 63 63 public $subject = ''; // The message subject 64 64 public $message_id = ''; // Unique identifier (permanent unique identifier -- retained only for research purposes) 65 // key value header array for use only by locally-defined tab functions 66 public $internet_headers; 65 67 // structure parts accessed through imap body fetch functions 66 68 protected $text_body; // stripped for parsing -- prefer to generate from raw text body but can strip from raw html body … … 93 95 $header = false; 94 96 $header = @imap_fetchheader ( $IMAP_stream, $UID, FT_UID ); 97 95 98 if ( ! $header ) { 96 99 $this->uid_still_valid = false; 97 100 return; 98 101 } 102 103 $this->internet_headers = self::convert_internet_headers_to_key_value_array ( $header ); 99 104 self::populate_header_info( imap_rfc822_parse_headers( $header ) ); 100 105 /* … … 234 239 * 235 240 */ 236 protected function populate_header_info ( $imap_headerinfo ) { 241 protected function populate_header_info ( $imap_headerinfo ) { 237 242 238 243 // load properties from header info -- note that all the non-address fields can be encoded, so decode them all … … 1173 1178 } 1174 1179 1180 private function convert_internet_headers_to_key_value_array( $raw_header ) { 1181 1182 $unfolded_header = preg_replace( '#\r\n( |\t)+#', ' ', $raw_header); 1183 $header_array = preg_split ( '#\r\n#', $unfolded_header ); 1184 $header_key_value = array(); 1185 foreach ( $header_array as $header ) { 1186 $key_value = preg_split ('#:( |\t)*#', $header, 2); 1187 if ( isset ( $key_value[0] ) && isset ( $key_value[1] ) ) { 1188 $header_key_value[$key_value[0]] = trim($key_value[1]); 1189 } 1190 } 1191 return $header_key_value; 1192 } 1193 1175 1194 } // class -
wp-issues-crm/tags/4.5.3.8/readme.txt
r2291658 r2295516 4 4 Tags: contact, crm, constituent, customer, issues, list, email, forms, database, upload 5 5 Requires at least: 5 6 Tested up to: 5.4 7 Stable tag: 4.5.3. 76 Tested up to: 5.4.1 7 Stable tag: 4.5.3.8 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.8 = 111 * Add internet headers to standard stored email object (make available for add-on local spam processing) 110 112 = 4.5.3.7 = 111 113 * Fix bug -- vestigial assignment of case on send of email -
wp-issues-crm/tags/4.5.3.8/wp-issues-crm.php
r2190225 r2295516 39 39 // set database version global; 40 40 global $wp_issues_crm_db_version; 41 $wp_issues_crm_db_version = '4.5.3. 7';41 $wp_issues_crm_db_version = '4.5.3.8'; 42 42 /* 43 43 * set js_css version global -- three possibilities: … … 48 48 */ 49 49 global $wp_issues_crm_js_css_version; 50 $wp_issues_crm_js_css_version = '4.5.3. 7'; // may or not be set at release time50 $wp_issues_crm_js_css_version = '4.5.3.8'; // may or not be set at release time 51 51 if ( '' == $wp_issues_crm_js_css_version ) { 52 52 if ( strpos ( site_url(), 'localhost' ) > 0 ) { -
wp-issues-crm/trunk/php/db/class-wic-db-email-message-object.php
r2170600 r2295516 63 63 public $subject = ''; // The message subject 64 64 public $message_id = ''; // Unique identifier (permanent unique identifier -- retained only for research purposes) 65 // key value header array for use only by locally-defined tab functions 66 public $internet_headers; 65 67 // structure parts accessed through imap body fetch functions 66 68 protected $text_body; // stripped for parsing -- prefer to generate from raw text body but can strip from raw html body … … 93 95 $header = false; 94 96 $header = @imap_fetchheader ( $IMAP_stream, $UID, FT_UID ); 97 95 98 if ( ! $header ) { 96 99 $this->uid_still_valid = false; 97 100 return; 98 101 } 102 103 $this->internet_headers = self::convert_internet_headers_to_key_value_array ( $header ); 99 104 self::populate_header_info( imap_rfc822_parse_headers( $header ) ); 100 105 /* … … 234 239 * 235 240 */ 236 protected function populate_header_info ( $imap_headerinfo ) { 241 protected function populate_header_info ( $imap_headerinfo ) { 237 242 238 243 // load properties from header info -- note that all the non-address fields can be encoded, so decode them all … … 1173 1178 } 1174 1179 1180 private function convert_internet_headers_to_key_value_array( $raw_header ) { 1181 1182 $unfolded_header = preg_replace( '#\r\n( |\t)+#', ' ', $raw_header); 1183 $header_array = preg_split ( '#\r\n#', $unfolded_header ); 1184 $header_key_value = array(); 1185 foreach ( $header_array as $header ) { 1186 $key_value = preg_split ('#:( |\t)*#', $header, 2); 1187 if ( isset ( $key_value[0] ) && isset ( $key_value[1] ) ) { 1188 $header_key_value[$key_value[0]] = trim($key_value[1]); 1189 } 1190 } 1191 return $header_key_value; 1192 } 1193 1175 1194 } // class -
wp-issues-crm/trunk/readme.txt
r2291658 r2295516 4 4 Tags: contact, crm, constituent, customer, issues, list, email, forms, database, upload 5 5 Requires at least: 5 6 Tested up to: 5.4 7 Stable tag: 4.5.3. 76 Tested up to: 5.4.1 7 Stable tag: 4.5.3.8 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.8 = 111 * Add internet headers to standard stored email object (make available for add-on local spam processing) 110 112 = 4.5.3.7 = 111 113 * Fix bug -- vestigial assignment of case on send of email -
wp-issues-crm/trunk/wp-issues-crm.php
r2190225 r2295516 39 39 // set database version global; 40 40 global $wp_issues_crm_db_version; 41 $wp_issues_crm_db_version = '4.5.3. 7';41 $wp_issues_crm_db_version = '4.5.3.8'; 42 42 /* 43 43 * set js_css version global -- three possibilities: … … 48 48 */ 49 49 global $wp_issues_crm_js_css_version; 50 $wp_issues_crm_js_css_version = '4.5.3. 7'; // may or not be set at release time50 $wp_issues_crm_js_css_version = '4.5.3.8'; // may or not be set at release time 51 51 if ( '' == $wp_issues_crm_js_css_version ) { 52 52 if ( strpos ( site_url(), 'localhost' ) > 0 ) {
Note: See TracChangeset
for help on using the changeset viewer.