Postie - Version 1.8.28

Version Description

= 1.8.23 = Postie now respects the blog timezone, this may require you to change the "Postie Time Correction" setting.

= 1.8.0 = The php-imap library has been replaced with logic based on Flourish fMailbox et al, there are some differences in the structure of the mail header array. This affects the postie_filter_email3 and postie_post_before filters. See http://flourishlib.com/docs/fMailbox

= 1.6.0 = Remote cron jobs need to update the URL used to kick off a manual email check. The new URL is http:///?postie=get-mail Accessing http:///wp-content/plugins/postie/get_mail.php will now receive a 403 error and a message stating what the new URL should be. The Postie menu is now at the main level rather than a Settings submenu.

= 1.5.14 = The postie_post filter has be deprecated in favor of postie_post_before.

= 1.5.3 = Postie can now set the first image in an email to be the "Featured" image. There is a new setting "Use First Image as Featured Image" which is off by default. Postie now supports Use Transport Layer Security (TLS)

= 1.5.0 = New filter postie_filter_email. Used to map "from" to any other email. Allows custom user mapping.

= 1.4.41 = Post format is now supported. You can specify any of the WordPress supported post formats using the Post type syntax. Post status can now be specified using the status: tag. Post status setting was renamed to Default Post Status and moved to the Message tab.

= 1.4.10 = All script, style and body tags are stripped from html emails.

= 1.4.6 = Attachments are now processed in the order they were attached.

Download this release

Release Info

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

Code changes from version 1.8.27 to 1.8.28

Files changed (5) hide show
  1. docs/Changes.txt +3 -0
  2. docs/Postie.txt +2 -2
  3. postie-functions.php +4 -3
  4. postie.php +3 -3
  5. readme.txt +5 -2
docs/Changes.txt CHANGED
@@ -35,6 +35,9 @@ All script, style and body tags are stripped from html emails.
35
  Attachments are now processed in the order they were attached.
36
 
37
  == CHANGELOG ==
 
 
 
38
  = 1.8.27 (2017-01-26) =
39
  * Added postie_raw action
40
 
35
  Attachments are now processed in the order they were attached.
36
 
37
  == CHANGELOG ==
38
+ = 1.8.27 (2017-01-26) =
39
+ * Fixed bug where having ignored files can cause email body to be blank.
40
+
41
  = 1.8.27 (2017-01-26) =
42
  * Added postie_raw action
43
 
docs/Postie.txt CHANGED
@@ -5,8 +5,8 @@ Author URI: http://allens-home.com/
5
  Plugin URI: http://PostiePlugin.com/
6
  Tags: e-mail, email, post-by-email
7
  Requires at least: 3.3.0
8
- Tested up to: 4.7.1
9
- Stable tag: 1.8.27
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
5
  Plugin URI: http://PostiePlugin.com/
6
  Tags: e-mail, email, post-by-email
7
  Requires at least: 3.3.0
8
+ Tested up to: 4.7.2
9
+ Stable tag: 1.8.28
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
postie-functions.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /*
3
- $Id: postie-functions.php 1582221 2017-01-25 22:53:20Z WayneAllen $
4
  */
5
 
6
  class PostiePostModifiers {
@@ -327,7 +327,7 @@ function postie_create_post($poster, $mimeDecodedEmail, $post_id, &$is_reply, $c
327
 
328
  $fulldebug = IsDebugMode();
329
  $fulldebugdump = false;
330
-
331
  if (array_key_exists('message-id', $mimeDecodedEmail['headers'])) {
332
  DebugEcho("Message Id is :" . htmlentities($mimeDecodedEmail['headers']['message-id']));
333
  if ($fulldebugdump) {
@@ -2095,6 +2095,7 @@ function filter_ReplaceImagePlaceHolders($content, &$email, $config, $post_id, $
2095
 
2096
  $i = 0;
2097
 
 
2098
  foreach ($email['attachment'] as &$attachment) {
2099
  $content = filter_ReplaceImagePlaceHolders_worker($content, $attachment, $image_pattern, $startIndex, $i);
2100
  $i++;
@@ -2119,7 +2120,7 @@ function filter_ReplaceImagePlaceHolders_worker($content, &$attachment, $imagePa
2119
 
2120
  if (empty($attachment['template'])) {
2121
  DebugEcho("filter_ReplaceImagePlaceHolders_worker: no template");
2122
- return;
2123
  }
2124
 
2125
  $matches = array();
1
  <?php
2
  /*
3
+ $Id: postie-functions.php 1582899 2017-01-26 19:46:46Z WayneAllen $
4
  */
5
 
6
  class PostiePostModifiers {
327
 
328
  $fulldebug = IsDebugMode();
329
  $fulldebugdump = false;
330
+
331
  if (array_key_exists('message-id', $mimeDecodedEmail['headers'])) {
332
  DebugEcho("Message Id is :" . htmlentities($mimeDecodedEmail['headers']['message-id']));
333
  if ($fulldebugdump) {
2095
 
2096
  $i = 0;
2097
 
2098
+ //TODO only call the worker if the attachment matches one of the images
2099
  foreach ($email['attachment'] as &$attachment) {
2100
  $content = filter_ReplaceImagePlaceHolders_worker($content, $attachment, $image_pattern, $startIndex, $i);
2101
  $i++;
2120
 
2121
  if (empty($attachment['template'])) {
2122
  DebugEcho("filter_ReplaceImagePlaceHolders_worker: no template");
2123
+ return $content;
2124
  }
2125
 
2126
  $matches = array();
postie.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Postie
5
  Plugin URI: http://PostiePlugin.com/
6
  Description: Create posts via email. Significantly upgrades the Post by Email features of WordPress.
7
- Version: 1.8.27
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL2
@@ -28,7 +28,7 @@
28
  */
29
 
30
  /*
31
- $Id: postie.php 1582794 2017-01-26 17:51:02Z WayneAllen $
32
  */
33
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib/fException.php");
34
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib/fUnexpectedException.php");
@@ -49,7 +49,7 @@ require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib/pPop3MailServer.php"
49
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib_autolink.php");
50
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "postie-functions.php");
51
 
52
- define('POSTIE_VERSION', '1.8.27');
53
  define("POSTIE_ROOT", dirname(__FILE__));
54
  define("POSTIE_URL", WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
55
 
4
  Plugin Name: Postie
5
  Plugin URI: http://PostiePlugin.com/
6
  Description: Create posts via email. Significantly upgrades the Post by Email features of WordPress.
7
+ Version: 1.8.28
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL2
28
  */
29
 
30
  /*
31
+ $Id: postie.php 1582901 2017-01-26 19:47:32Z WayneAllen $
32
  */
33
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib/fException.php");
34
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib/fUnexpectedException.php");
49
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib_autolink.php");
50
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "postie-functions.php");
51
 
52
+ define('POSTIE_VERSION', '1.8.28');
53
  define("POSTIE_ROOT", dirname(__FILE__));
54
  define("POSTIE_URL", WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
55
 
readme.txt CHANGED
@@ -5,8 +5,8 @@ Author URI: http://allens-home.com/
5
  Plugin URI: http://PostiePlugin.com/
6
  Tags: e-mail, email, post-by-email
7
  Requires at least: 3.3.0
8
- Tested up to: 4.7.1
9
- Stable tag: 1.8.27
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -242,6 +242,9 @@ All script, style and body tags are stripped from html emails.
242
  Attachments are now processed in the order they were attached.
243
 
244
  == CHANGELOG ==
 
 
 
245
  = 1.8.27 (2017-01-26) =
246
  * Added postie_raw action
247
 
5
  Plugin URI: http://PostiePlugin.com/
6
  Tags: e-mail, email, post-by-email
7
  Requires at least: 3.3.0
8
+ Tested up to: 4.7.2
9
+ Stable tag: 1.8.28
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
242
  Attachments are now processed in the order they were attached.
243
 
244
  == CHANGELOG ==
245
+ = 1.8.27 (2017-01-26) =
246
+ * Fixed bug where having ignored files can cause email body to be blank.
247
+
248
  = 1.8.27 (2017-01-26) =
249
  * Added postie_raw action
250