Version Description
(2013.01.03) = * Fixed a bug where non image/video attachments were not getting added to the post.
Download this release
Release Info
Developer | WayneAllen |
Plugin | Postie |
Version | 1.4.17 |
Comparing to | |
See all releases |
Code changes from version 1.4.16 to 1.4.17
- docs/Changes.txt +3 -0
- docs/Postie.txt +1 -1
- postie-functions.php +14 -6
- postie.php +2 -2
- readme.txt +4 -1
docs/Changes.txt
CHANGED
@@ -3,6 +3,9 @@
|
|
3 |
* All script, style and body tags are stripped from html emails.
|
4 |
|
5 |
== CHANGELOG ==
|
|
|
|
|
|
|
6 |
= 1.4.16 (2013.01.03) =
|
7 |
* Fixed a bug where an extra div tag was getting added.
|
8 |
* Fixed a bug when linkifying URLs.
|
3 |
* All script, style and body tags are stripped from html emails.
|
4 |
|
5 |
== CHANGELOG ==
|
6 |
+
= 1.4.17 (2013.01.03) =
|
7 |
+
* Fixed a bug where non image/video attachments were not getting added to the post.
|
8 |
+
|
9 |
= 1.4.16 (2013.01.03) =
|
10 |
* Fixed a bug where an extra div tag was getting added.
|
11 |
* Fixed a bug when linkifying URLs.
|
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.5
|
9 |
-
Stable tag: 1.4.
|
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.5
|
9 |
+
Stable tag: 1.4.17
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
postie-functions.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
-
$Id: postie-functions.php
|
5 |
*/
|
6 |
|
7 |
/* TODO
|
@@ -867,21 +867,29 @@ function GetContent($part, &$attachments, $post_id, $poster, $config) {
|
|
867 |
break;
|
868 |
|
869 |
default:
|
|
|
870 |
if (in_array(strtolower($part->ctype_primary), $supported_file_types)) {
|
871 |
//pgp signature - then forget it
|
872 |
-
if ($part->ctype_secondary == 'pgp-signature')
|
|
|
873 |
break;
|
|
|
874 |
$file_id = postie_media_handle_upload($part, $post_id, $poster);
|
875 |
$file = wp_get_attachment_url($file_id);
|
|
|
|
|
|
|
876 |
if (array_key_exists('content-id', $part->headers)) {
|
877 |
$cid = trim($part->headers["content-id"], "<>");
|
878 |
-
//cids are in <cid>
|
879 |
-
$icon = chooseAttachmentIcon($file, $part->ctype_primary, $part->ctype_secondary, $icon_set, $icon_size);
|
880 |
-
$attachments["html"][$filename] = "<a href='$file'>" . $icon . $filename . '</a>' . "\n";
|
881 |
if ($cid) {
|
882 |
$attachments["cids"][$cid] = array($file, count($attachments["html"]) - 1);
|
883 |
}
|
|
|
|
|
884 |
}
|
|
|
|
|
|
|
885 |
}
|
886 |
break;
|
887 |
}
|
@@ -1526,7 +1534,7 @@ function FilterTextParts($mimeDecodedEmail, $preferTextType) {
|
|
1526 |
DebugEcho("FilterTextParts: begin " . count($mimeDecodedEmail->parts));
|
1527 |
$newParts = array();
|
1528 |
$found = false;
|
1529 |
-
|
1530 |
for ($i = 0; $i < count($mimeDecodedEmail->parts); $i++) {
|
1531 |
DebugEcho("part: $i " . $mimeDecodedEmail->parts[$i]->ctype_primary);
|
1532 |
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
+
$Id: postie-functions.php 647656 2013-01-04 00:20:35Z WayneAllen $
|
5 |
*/
|
6 |
|
7 |
/* TODO
|
867 |
break;
|
868 |
|
869 |
default:
|
870 |
+
DebugEcho("found file type: " . $part->ctype_primary);
|
871 |
if (in_array(strtolower($part->ctype_primary), $supported_file_types)) {
|
872 |
//pgp signature - then forget it
|
873 |
+
if ($part->ctype_secondary == 'pgp-signature') {
|
874 |
+
DebugEcho("found pgp-signature - done");
|
875 |
break;
|
876 |
+
}
|
877 |
$file_id = postie_media_handle_upload($part, $post_id, $poster);
|
878 |
$file = wp_get_attachment_url($file_id);
|
879 |
+
DebugEcho("uploaded $file_id ($file)");
|
880 |
+
$icon = chooseAttachmentIcon($file, $part->ctype_primary, $part->ctype_secondary, $icon_set, $icon_size);
|
881 |
+
$attachments["html"][$filename] = "<a href='$file'>" . $icon . $filename . '</a>' . "\n";
|
882 |
if (array_key_exists('content-id', $part->headers)) {
|
883 |
$cid = trim($part->headers["content-id"], "<>");
|
|
|
|
|
|
|
884 |
if ($cid) {
|
885 |
$attachments["cids"][$cid] = array($file, count($attachments["html"]) - 1);
|
886 |
}
|
887 |
+
} else {
|
888 |
+
DebugEcho("No content-id");
|
889 |
}
|
890 |
+
} else {
|
891 |
+
DebugEcho("Not in supported filetype list");
|
892 |
+
DebugDump($supported_file_types);
|
893 |
}
|
894 |
break;
|
895 |
}
|
1534 |
DebugEcho("FilterTextParts: begin " . count($mimeDecodedEmail->parts));
|
1535 |
$newParts = array();
|
1536 |
$found = false;
|
1537 |
+
|
1538 |
for ($i = 0; $i < count($mimeDecodedEmail->parts); $i++) {
|
1539 |
DebugEcho("part: $i " . $mimeDecodedEmail->parts[$i]->ctype_primary);
|
1540 |
|
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.
|
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
|
31 |
* -= Requests Pending =-
|
32 |
* Problem with some mail server
|
33 |
* Multiple emails should tie to a single account
|
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.17
|
8 |
Author: Wayne Allen
|
9 |
Author URI: http://allens-home.com/
|
10 |
License: GPL2
|
27 |
*/
|
28 |
|
29 |
/*
|
30 |
+
$Id: postie.php 647656 2013-01-04 00:20:35Z WayneAllen $
|
31 |
* -= Requests Pending =-
|
32 |
* Problem with some mail server
|
33 |
* Multiple emails should tie to a single account
|
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.5
|
9 |
-
Stable tag: 1.4.
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -370,6 +370,9 @@ It is also possible to turn the WordPress cron off. Please make sure something l
|
|
370 |
* All script, style and body tags are stripped from html emails.
|
371 |
|
372 |
== CHANGELOG ==
|
|
|
|
|
|
|
373 |
= 1.4.16 (2013.01.03) =
|
374 |
* Fixed a bug where an extra div tag was getting added.
|
375 |
* Fixed a bug when linkifying URLs.
|
6 |
Tags: e-mail, email
|
7 |
Requires at least: 3.0
|
8 |
Tested up to: 3.5
|
9 |
+
Stable tag: 1.4.17
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
370 |
* All script, style and body tags are stripped from html emails.
|
371 |
|
372 |
== CHANGELOG ==
|
373 |
+
= 1.4.17 (2013.01.03) =
|
374 |
+
* Fixed a bug where non image/video attachments were not getting added to the post.
|
375 |
+
|
376 |
= 1.4.16 (2013.01.03) =
|
377 |
* Fixed a bug where an extra div tag was getting added.
|
378 |
* Fixed a bug when linkifying URLs.
|