Postie - Version 1.4.8

Version Description

(2012.12.09) = * fix collisions with simple_html_dom * fix bug when trying to get file name from MIME part * fix bug causing Cannot modify header information warning

Download this release

Release Info

Developer WayneAllen
Plugin Icon 128x128 Postie
Version 1.4.8
Comparing to
See all releases

Code changes from version 1.4.7 to 1.4.8

Files changed (8) hide show
  1. Revision +0 -2
  2. docs/Changes.txt +6 -1
  3. docs/Postie.txt +1 -1
  4. get_mail.php +3 -2
  5. postie-functions.php +3 -4
  6. postie.php +3 -3
  7. postieIMAP.php +1 -1
  8. readme.txt +6 -1
Revision CHANGED
@@ -1,2 +0,0 @@
1
- Revision: 634996
2
- Last Changed Date: 2012-12-03 16:37:08 -0800 (Mon, 03 Dec 2012)
 
 
docs/Changes.txt CHANGED
@@ -4,7 +4,12 @@
4
 
5
  == CHANGELOG ==
6
 
7
- = 1.4.7 (2012.12.07)
 
 
 
 
 
8
  * Fixed bug in cron setup that was preventing Weekly, twice an hour and every ten minute schedules from running.
9
 
10
  = 1.4.6 (2012.12.06) =
4
 
5
  == CHANGELOG ==
6
 
7
+ = 1.4.8 (2012.12.09) =
8
+ * fix collisions with simple_html_dom
9
+ * fix bug when trying to get file name from MIME part
10
+ * fix bug causing Cannot modify header information warning
11
+
12
+ = 1.4.7 (2012.12.07) =
13
  * Fixed bug in cron setup that was preventing Weekly, twice an hour and every ten minute schedules from running.
14
 
15
  = 1.4.6 (2012.12.06) =
docs/Postie.txt CHANGED
@@ -6,7 +6,7 @@ Plugin URI: http://PostiePlugin.com/
6
  Tags: e-mail, email
7
  Requires at least: 3.0
8
  Tested up to: 3.4.2
9
- Stable tag: 1.4.7
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
6
  Tags: e-mail, email
7
  Requires at least: 3.0
8
  Tested up to: 3.4.2
9
+ Stable tag: 1.4.8
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
get_mail.php CHANGED
@@ -10,7 +10,8 @@ if (file_exists($wp_config_path . DIRECTORY_SEPARATOR . "wp-config.php")) {
10
 
11
  require_once (dirname(__FILE__) . DIRECTORY_SEPARATOR . 'mimedecode.php');
12
  require_once (dirname(__FILE__) . DIRECTORY_SEPARATOR . 'postie-functions.php');
13
- require_once (dirname(__FILE__) . DIRECTORY_SEPARATOR . 'simple_html_dom.php');
 
14
 
15
  if (!ini_get('safe_mode')) {
16
  $original_mem_limit = ini_get('memory_limit');
@@ -71,4 +72,4 @@ EchoInfo($message);
71
  if (!ini_get('safe_mode')) {
72
  ini_set('memory_limit', $original_mem_limit);
73
  }
74
- ?>
10
 
11
  require_once (dirname(__FILE__) . DIRECTORY_SEPARATOR . 'mimedecode.php');
12
  require_once (dirname(__FILE__) . DIRECTORY_SEPARATOR . 'postie-functions.php');
13
+ if(!function_exists('file_get_html'))
14
+ require_once (dirname(__FILE__) . DIRECTORY_SEPARATOR . 'simple_html_dom.php');
15
 
16
  if (!ini_get('safe_mode')) {
17
  $original_mem_limit = ini_get('memory_limit');
72
  if (!ini_get('safe_mode')) {
73
  ini_set('memory_limit', $original_mem_limit);
74
  }
75
+ ?>
postie-functions.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  /*
4
- $Id: postie-functions.php 635465 2012-12-07 17:38:23Z WayneAllen $
5
  */
6
 
7
  /* TODO
@@ -664,7 +664,7 @@ function GetContent($part, &$attachments, $post_id, $poster, $config) {
664
  } else {
665
  // fix filename (remove non-standard characters)
666
  $filename = "";
667
- if (array_key_exists('name', $part->ctype_parameters)) {
668
  $filename = preg_replace("/[^\x9\xA\xD\x20-\x7F]/", "", $part->ctype_parameters['name']);
669
  }
670
  switch (strtolower($part->ctype_primary)) {
@@ -1333,7 +1333,6 @@ function postie_handle_upload(&$file, $overrides = false, $time = null) {
1333
  function wp_handle_upload_error(&$file, $message) {
1334
  return array('error' => $message);
1335
  }
1336
-
1337
  }
1338
 
1339
  // You may define your own function and pass the name in $overrides['upload_error_handler']
@@ -2626,4 +2625,4 @@ function VodafoneHandler(&$content, &$attachments) {
2626
  }
2627
  }
2628
 
2629
- ?>
1
  <?php
2
 
3
  /*
4
+ $Id: postie-functions.php 636381 2012-12-10 02:23:45Z WayneAllen $
5
  */
6
 
7
  /* TODO
664
  } else {
665
  // fix filename (remove non-standard characters)
666
  $filename = "";
667
+ if (is_array($part->ctype_parameters) && array_key_exists('name', $part->ctype_parameters)) {
668
  $filename = preg_replace("/[^\x9\xA\xD\x20-\x7F]/", "", $part->ctype_parameters['name']);
669
  }
670
  switch (strtolower($part->ctype_primary)) {
1333
  function wp_handle_upload_error(&$file, $message) {
1334
  return array('error' => $message);
1335
  }
 
1336
  }
1337
 
1338
  // You may define your own function and pass the name in $overrides['upload_error_handler']
2625
  }
2626
  }
2627
 
2628
+ ?>
postie.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Postie
5
  Plugin URI: http://PostiePlugin.com/
6
  Description: Signifigantly upgrades the posting by mail features of Word Press (See <a href='options-general.php?page=postie/postie.php'>Settings and options</a>) to configure your e-mail settings. See the <a href='http://wordpress.org/extend/plugins/postie/other_notes'>Readme</a> for usage. Visit the <a href='http://wordpress.org/support/plugin/postie'>postie forum</a> for support.
7
- Version: 1.4.7
8
  Author: Wayne Allen
9
  Author URI: http://allens-home.com/
10
  License: GPL2
@@ -27,7 +27,7 @@
27
  */
28
 
29
  /*
30
- $Id: postie.php 635465 2012-12-07 17:38:23Z WayneAllen $
31
  * -= Requests Pending =-
32
  * German Umlats don't work
33
  * Problems under PHP5
@@ -250,4 +250,4 @@ add_filter('cron_schedules', 'postie_more_reccurences');
250
  register_activation_hook(__FILE__, 'postie_cron');
251
  register_deactivation_hook(__FILE__, 'postie_decron');
252
  add_action('check_postie_hook', 'check_postie');
253
- ?>
4
  Plugin Name: Postie
5
  Plugin URI: http://PostiePlugin.com/
6
  Description: Signifigantly upgrades the posting by mail features of Word Press (See <a href='options-general.php?page=postie/postie.php'>Settings and options</a>) to configure your e-mail settings. See the <a href='http://wordpress.org/extend/plugins/postie/other_notes'>Readme</a> for usage. Visit the <a href='http://wordpress.org/support/plugin/postie'>postie forum</a> for support.
7
+ Version: 1.4.8
8
  Author: Wayne Allen
9
  Author URI: http://allens-home.com/
10
  License: GPL2
27
  */
28
 
29
  /*
30
+ $Id: postie.php 636393 2012-12-10 03:02:12Z WayneAllen $
31
  * -= Requests Pending =-
32
  * German Umlats don't work
33
  * Problems under PHP5
250
  register_activation_hook(__FILE__, 'postie_cron');
251
  register_deactivation_hook(__FILE__, 'postie_decron');
252
  add_action('check_postie_hook', 'check_postie');
253
+ ?>
postieIMAP.php CHANGED
@@ -210,4 +210,4 @@ class PostiePOP3SSL Extends PostieIMAP {
210
 
211
  }
212
 
213
- ?>
210
 
211
  }
212
 
213
+ ?>
readme.txt CHANGED
@@ -6,7 +6,7 @@ Plugin URI: http://PostiePlugin.com/
6
  Tags: e-mail, email
7
  Requires at least: 3.0
8
  Tested up to: 3.4.2
9
- Stable tag: 1.4.7
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -359,6 +359,11 @@ It is also possible to turn the WordPress cron off. Please make sure something l
359
 
360
  == CHANGELOG ==
361
 
 
 
 
 
 
362
  = 1.4.7 (2012.12.07) =
363
  * Fixed bug in cron setup that was preventing Weekly, twice an hour and every ten minute schedules from running.
364
 
6
  Tags: e-mail, email
7
  Requires at least: 3.0
8
  Tested up to: 3.4.2
9
+ Stable tag: 1.4.8
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
359
 
360
  == CHANGELOG ==
361
 
362
+ = 1.4.8 (2012.12.09) =
363
+ * fix collisions with simple_html_dom
364
+ * fix bug when trying to get file name from MIME part
365
+ * fix bug causing Cannot modify header information warning
366
+
367
  = 1.4.7 (2012.12.07) =
368
  * Fixed bug in cron setup that was preventing Weekly, twice an hour and every ten minute schedules from running.
369