Version Description
(2016-10-31) = * Fix bug where inline images were not being found due to case differences, e.g. img_4180.jpg vs. IMG_4180.JPG
Download this release
Release Info
Developer | WayneAllen |
Plugin | Postie |
Version | 1.8.13 |
Comparing to | |
See all releases |
Code changes from version 1.8.12 to 1.8.13
- docs/Changes.txt +3 -0
- docs/Postie.txt +1 -1
- postie-functions.php +5 -5
- postie.php +3 -3
- readme.txt +4 -1
docs/Changes.txt
CHANGED
@@ -32,6 +32,9 @@ All script, style and body tags are stripped from html emails.
|
|
32 |
Attachments are now processed in the order they were attached.
|
33 |
|
34 |
== CHANGELOG ==
|
|
|
|
|
|
|
35 |
= 1.8.12 (2016-10-25) =
|
36 |
* Fix bug in postie_email_notify_body filter where the modified body is not used for the email.
|
37 |
|
32 |
Attachments are now processed in the order they were attached.
|
33 |
|
34 |
== CHANGELOG ==
|
35 |
+
= 1.8.13 (2016-10-31) =
|
36 |
+
* Fix bug where inline images were not being found due to case differences, e.g. img_4180.jpg vs. IMG_4180.JPG
|
37 |
+
|
38 |
= 1.8.12 (2016-10-25) =
|
39 |
* Fix bug in postie_email_notify_body filter where the modified body is not used for the email.
|
40 |
|
docs/Postie.txt
CHANGED
@@ -6,7 +6,7 @@ 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.6.1
|
9 |
-
Stable tag: 1.8.
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
6 |
Tags: e-mail, email, post-by-email
|
7 |
Requires at least: 3.3.0
|
8 |
Tested up to: 4.6.1
|
9 |
+
Stable tag: 1.8.13
|
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
|
4 |
*/
|
5 |
|
6 |
class PostiePostModifiers {
|
@@ -1240,7 +1240,7 @@ function ValidatePoster(&$mimeDecodedEmail, $config) {
|
|
1240 |
function filter_Start($content, $config) {
|
1241 |
$start = $config['message_start'];
|
1242 |
if (!empty($start)) {
|
1243 |
-
$pos =
|
1244 |
if ($pos === false) {
|
1245 |
return $content;
|
1246 |
}
|
@@ -1335,7 +1335,7 @@ function filter_RemoveSignatureWorker(&$html, $pattern) {
|
|
1335 |
function filter_End($content, $config) {
|
1336 |
$end = $config['message_end'];
|
1337 |
if (!empty($end)) {
|
1338 |
-
$pos =
|
1339 |
if ($pos === false) {
|
1340 |
return $content;
|
1341 |
}
|
@@ -2036,7 +2036,7 @@ function filter_ReplaceImageCIDs($content, &$email) {
|
|
2036 |
if (count($email['related'])) {
|
2037 |
DebugEcho("filter_ReplaceImageCIDs: # CID attachments: " . count($email['related']));
|
2038 |
foreach ($email['related'] as $cid => &$attachment) {
|
2039 |
-
if (false !==
|
2040 |
DebugEcho("filter_ReplaceImageCIDs: CID: $cid");
|
2041 |
$fileid = $attachment['wp_id'];
|
2042 |
$url = wp_get_attachment_url($fileid);
|
@@ -2063,7 +2063,7 @@ function filter_ReplaceInlineImage($content, &$email, $config) {
|
|
2063 |
$template = $inlineImage['template'];
|
2064 |
}
|
2065 |
$inlinemarker = '<:inline ' . $inlineImage['filename'] . ' inline:>';
|
2066 |
-
if (false !==
|
2067 |
DebugEcho('filter_ReplaceInlineImage: ' . $inlineImage['filename']);
|
2068 |
$content = str_ireplace($inlinemarker, $template, $content);
|
2069 |
$inlineImage['exclude'] = !empty($template); //don't exclude if we didn't add
|
1 |
<?php
|
2 |
/*
|
3 |
+
$Id: postie-functions.php 1525589 2016-10-31 21:10:30Z WayneAllen $
|
4 |
*/
|
5 |
|
6 |
class PostiePostModifiers {
|
1240 |
function filter_Start($content, $config) {
|
1241 |
$start = $config['message_start'];
|
1242 |
if (!empty($start)) {
|
1243 |
+
$pos = stripos($content, $start);
|
1244 |
if ($pos === false) {
|
1245 |
return $content;
|
1246 |
}
|
1335 |
function filter_End($content, $config) {
|
1336 |
$end = $config['message_end'];
|
1337 |
if (!empty($end)) {
|
1338 |
+
$pos = stripos($content, $end);
|
1339 |
if ($pos === false) {
|
1340 |
return $content;
|
1341 |
}
|
2036 |
if (count($email['related'])) {
|
2037 |
DebugEcho("filter_ReplaceImageCIDs: # CID attachments: " . count($email['related']));
|
2038 |
foreach ($email['related'] as $cid => &$attachment) {
|
2039 |
+
if (false !== stripos($content, $cid)) {
|
2040 |
DebugEcho("filter_ReplaceImageCIDs: CID: $cid");
|
2041 |
$fileid = $attachment['wp_id'];
|
2042 |
$url = wp_get_attachment_url($fileid);
|
2063 |
$template = $inlineImage['template'];
|
2064 |
}
|
2065 |
$inlinemarker = '<:inline ' . $inlineImage['filename'] . ' inline:>';
|
2066 |
+
if (false !== stripos($content, $inlinemarker)) {
|
2067 |
DebugEcho('filter_ReplaceInlineImage: ' . $inlineImage['filename']);
|
2068 |
$content = str_ireplace($inlinemarker, $template, $content);
|
2069 |
$inlineImage['exclude'] = !empty($template); //don't exclude if we didn't add
|
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.
|
8 |
Author: Wayne Allen
|
9 |
Author URI: http://PostiePlugin.com/
|
10 |
License: GPL2
|
@@ -28,7 +28,7 @@
|
|
28 |
*/
|
29 |
|
30 |
/*
|
31 |
-
$Id: postie.php
|
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.
|
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.13
|
8 |
Author: Wayne Allen
|
9 |
Author URI: http://PostiePlugin.com/
|
10 |
License: GPL2
|
28 |
*/
|
29 |
|
30 |
/*
|
31 |
+
$Id: postie.php 1525592 2016-10-31 21:19:50Z 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.13');
|
53 |
define("POSTIE_ROOT", dirname(__FILE__));
|
54 |
define("POSTIE_URL", WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
|
55 |
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ 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.6.1
|
9 |
-
Stable tag: 1.8.
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -240,6 +240,9 @@ All script, style and body tags are stripped from html emails.
|
|
240 |
Attachments are now processed in the order they were attached.
|
241 |
|
242 |
== CHANGELOG ==
|
|
|
|
|
|
|
243 |
= 1.8.12 (2016-10-25) =
|
244 |
* Fix bug in postie_email_notify_body filter where the modified body is not used for the email.
|
245 |
|
6 |
Tags: e-mail, email, post-by-email
|
7 |
Requires at least: 3.3.0
|
8 |
Tested up to: 4.6.1
|
9 |
+
Stable tag: 1.8.13
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
240 |
Attachments are now processed in the order they were attached.
|
241 |
|
242 |
== CHANGELOG ==
|
243 |
+
= 1.8.13 (2016-10-31) =
|
244 |
+
* Fix bug where inline images were not being found due to case differences, e.g. img_4180.jpg vs. IMG_4180.JPG
|
245 |
+
|
246 |
= 1.8.12 (2016-10-25) =
|
247 |
* Fix bug in postie_email_notify_body filter where the modified body is not used for the email.
|
248 |
|