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://
= 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.
Release Info
Developer | WayneAllen |
Plugin | Postie |
Version | 1.9.22 |
Comparing to | |
See all releases |
Code changes from version 1.9.21 to 1.9.22
- css/Thumbs.db +0 -0
- docs/Changes.txt +3 -0
- docs/Postie.txt +1 -1
- docs/TODO.txt +1 -1
- lib/fMailbox.php +3 -2
- postie.class.php +1 -0
- postie.php +3 -3
- readme.txt +3 -0
Binary file
|
@@ -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.9.21 (2018-04-11) =
|
39 |
* Fix: Compatibility with PHP 5.2-5.4
|
40 |
|
35 |
Attachments are now processed in the order they were attached.
|
36 |
|
37 |
== CHANGELOG ==
|
38 |
+
= 1.9.21 (2018-05-08) =
|
39 |
+
* Fix: WP is removing backslashes so double them up before saving
|
40 |
+
|
41 |
= 1.9.21 (2018-04-11) =
|
42 |
* Fix: Compatibility with PHP 5.2-5.4
|
43 |
|
@@ -7,7 +7,7 @@ Tags: e-mail, email, post-by-email
|
|
7 |
Requires PHP: 5.3
|
8 |
Requires at least: 4.0
|
9 |
Tested up to: 4.9
|
10 |
-
Stable tag: 1.9.
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
7 |
Requires PHP: 5.3
|
8 |
Requires at least: 4.0
|
9 |
Tested up to: 4.9
|
10 |
+
Stable tag: 1.9.22
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
@@ -24,7 +24,7 @@ For IMAP mailboxes allow the user to choose the folder.
|
|
24 |
Check to see if post already exists. Store hash in custom field.
|
25 |
Verify that WP is honoring the wp_set_current_user() call. I.e. if the user is not an "author" role can they publish?
|
26 |
Add Message-ID header value to custom field (postie_message_id?) to both posts and comments.
|
27 |
-
Use In-Reply-To header value as a better way to detect replies
|
28 |
date: tag is being detected in body when not wanted
|
29 |
dynamically determine video size (height/width) - https://code.google.com/p/phpvideotoolkit/
|
30 |
readme tips http://wp.smashingmagazine.com/2011/11/23/improve-wordpress-plugins-readme-txt/
|
24 |
Check to see if post already exists. Store hash in custom field.
|
25 |
Verify that WP is honoring the wp_set_current_user() call. I.e. if the user is not an "author" role can they publish?
|
26 |
Add Message-ID header value to custom field (postie_message_id?) to both posts and comments.
|
27 |
+
Use In-Reply-To/Message-ID header value as a better way to detect replies
|
28 |
date: tag is being detected in body when not wanted
|
29 |
dynamically determine video size (height/width) - https://code.google.com/p/phpvideotoolkit/
|
30 |
readme tips http://wp.smashingmagazine.com/2011/11/23/improve-wordpress-plugins-readme-txt/
|
@@ -585,7 +585,7 @@ class fMailbox {
|
|
585 |
$value = $pieces[0];
|
586 |
//DebugEcho("parseHeaders: additional_info: $value");
|
587 |
//DebugDump($pieces);
|
588 |
-
|
589 |
$headers[$header] = array('value' => self::decodeHeader($value));
|
590 |
|
591 |
$fields = array();
|
@@ -792,7 +792,8 @@ class fMailbox {
|
|
792 |
'subtype' => $subtype,
|
793 |
'parts' => array()
|
794 |
);
|
795 |
-
|
|
|
796 |
$start_pos = strpos($data, '--' . $boundary) + strlen($boundary) + 4;
|
797 |
$end_pos = strrpos($data, '--' . $boundary . '--') - 2;
|
798 |
$sub_contents = explode("\r\n--" . $boundary . "\r\n", substr(
|
585 |
$value = $pieces[0];
|
586 |
//DebugEcho("parseHeaders: additional_info: $value");
|
587 |
//DebugDump($pieces);
|
588 |
+
|
589 |
$headers[$header] = array('value' => self::decodeHeader($value));
|
590 |
|
591 |
$fields = array();
|
792 |
'subtype' => $subtype,
|
793 |
'parts' => array()
|
794 |
);
|
795 |
+
//Some email clients use boundary vs Boundary and PHP's array access is case sensitive so we have to check bothÏ
|
796 |
+
$boundary = isset($headers['content-type']['fields']['boundary']) ? $headers['content-type']['fields']['boundary'] : $headers['content-type']['fields']['Boundary'];
|
797 |
$start_pos = strpos($data, '--' . $boundary) + strlen($boundary) + 4;
|
798 |
$end_pos = strrpos($data, '--' . $boundary . '--') - 2;
|
799 |
$sub_contents = explode("\r\n--" . $boundary . "\r\n", substr(
|
@@ -839,6 +839,7 @@ class Postie {
|
|
839 |
|
840 |
function save_post($details, $isReply) {
|
841 |
$post_ID = 0;
|
|
|
842 |
if (!$isReply) {
|
843 |
$post_ID = wp_insert_post($details, true);
|
844 |
if (is_wp_error($post_ID)) {
|
839 |
|
840 |
function save_post($details, $isReply) {
|
841 |
$post_ID = 0;
|
842 |
+
$details['post_content'] = str_replace('\\', '\\\\', $details['post_content']);//replace all backslashs with double backslashes since WP will remove single backslash
|
843 |
if (!$isReply) {
|
844 |
$post_ID = wp_insert_post($details, true);
|
845 |
if (is_wp_error($post_ID)) {
|
@@ -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.9.
|
8 |
Author: Wayne Allen
|
9 |
Author URI: http://PostiePlugin.com/
|
10 |
License: GPL3
|
@@ -28,14 +28,14 @@
|
|
28 |
*/
|
29 |
|
30 |
/*
|
31 |
-
$Id: postie.php
|
32 |
*/
|
33 |
|
34 |
if (!defined('WPINC')) {
|
35 |
die; // Exit if accessed directly
|
36 |
}
|
37 |
|
38 |
-
define('POSTIE_VERSION', '1.9.
|
39 |
define('POSTIE_ROOT', dirname(__FILE__));
|
40 |
define('POSTIE_URL', WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
|
41 |
|
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.9.22
|
8 |
Author: Wayne Allen
|
9 |
Author URI: http://PostiePlugin.com/
|
10 |
License: GPL3
|
28 |
*/
|
29 |
|
30 |
/*
|
31 |
+
$Id: postie.php 1871161 2018-05-09 03:15:56Z WayneAllen $
|
32 |
*/
|
33 |
|
34 |
if (!defined('WPINC')) {
|
35 |
die; // Exit if accessed directly
|
36 |
}
|
37 |
|
38 |
+
define('POSTIE_VERSION', '1.9.22');
|
39 |
define('POSTIE_ROOT', dirname(__FILE__));
|
40 |
define('POSTIE_URL', WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
|
41 |
|
@@ -107,6 +107,9 @@ All script, style and body tags are stripped from html emails.
|
|
107 |
Attachments are now processed in the order they were attached.
|
108 |
|
109 |
== CHANGELOG ==
|
|
|
|
|
|
|
110 |
= 1.9.21 (2018-04-11) =
|
111 |
* Fix: Compatibility with PHP 5.2-5.4
|
112 |
|
107 |
Attachments are now processed in the order they were attached.
|
108 |
|
109 |
== CHANGELOG ==
|
110 |
+
= 1.9.21 (2018-05-05) =
|
111 |
+
* Fix: WP is removing backslashes so double them up before saving
|
112 |
+
|
113 |
= 1.9.21 (2018-04-11) =
|
114 |
* Fix: Compatibility with PHP 5.2-5.4
|
115 |
|