Postie - Version 1.5.7

Version Description

(2013.05.09) = * Fixed bug where the admin user was not getting set as author in some cases. * Fixed bug where file names were not being sanitized. * Added setting to disable thumbnail generation. * Updated the default signature patterns and help text.

Download this release

Release Info

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

Code changes from version 1.5.6 to 1.5.7

Files changed (7) hide show
  1. Revision +2 -0
  2. config_form.php +2 -1
  3. docs/Changes.txt +7 -1
  4. docs/Postie.txt +1 -1
  5. postie-functions.php +36 -28
  6. postie.php +3 -3
  7. readme.txt +8 -2
Revision CHANGED
@@ -0,0 +1,2 @@
 
 
1
+ Revision: 710089
2
+ Last Changed Date: 2013-05-07 19:19:03 -0700 (Tue, 07 May 2013)
config_form.php CHANGED
@@ -478,7 +478,7 @@
478
  <?php echo BuildTextArea("Supported MIME Types", "postie-settings[supported_file_types]", $supported_file_types, "Add just the type (not the subtype). Text, Video, Audio, Image and Multipart are always supported. Put each type on a single line."); ?>
479
  <?php echo BuildTextArea("Banned File Names", "postie-settings[banned_files_list]", $banned_files_list, "Put each file name on a single line.Files matching this list will never be posted to your blog. You can use wildcards such as *.xls, or *.* for all files"); ?>
480
  <?php echo BuildBooleanSelect("Drop The Signature From Mail", "postie-settings[drop_signature]", $drop_signature); ?>
481
- <?php echo BuildTextArea("Signature Patterns", "postie-settings[sig_pattern_list]", $sig_pattern_list, "Put each pattern on a separate line."); ?>
482
  <?php echo BuildTextArea("Allowed SMTP servers", "postie-settings[smtp]", $smtp, "Only allow messages which have been sent throught the following smtp servers. Put each server on a separate line. Leave blank to not check smtp servers."); ?>
483
  </table>
484
  </div>
@@ -490,6 +490,7 @@
490
  echo BuildBooleanSelect("Automatically insert image gallery", "postie-settings[auto_gallery]", $auto_gallery, "If any images are attached, they will automatically be inserted as a gallery");
491
  echo BuildBooleanSelect("Post Images At End", "postie-settings[images_append]", $images_append, "No means they will be put before the text of the message.");
492
  echo BuildBooleanSelect("Start Image Count At 0", "postie-settings[start_image_count_at_zero]", $start_image_count_at_zero);
 
493
  ?>
494
  <tr>
495
  <th width="33%" valign="top" scope="row"><?php _e('Image Place Holder Tag:', 'postie') ?> </th>
478
  <?php echo BuildTextArea("Supported MIME Types", "postie-settings[supported_file_types]", $supported_file_types, "Add just the type (not the subtype). Text, Video, Audio, Image and Multipart are always supported. Put each type on a single line."); ?>
479
  <?php echo BuildTextArea("Banned File Names", "postie-settings[banned_files_list]", $banned_files_list, "Put each file name on a single line.Files matching this list will never be posted to your blog. You can use wildcards such as *.xls, or *.* for all files"); ?>
480
  <?php echo BuildBooleanSelect("Drop The Signature From Mail", "postie-settings[drop_signature]", $drop_signature); ?>
481
+ <?php echo BuildTextArea("Signature Patterns", "postie-settings[sig_pattern_list]", $sig_pattern_list, "Put each pattern on a separate line. Patterns are <a href='http://regex101.com/' target='_blank'>regular expressions</a>."); ?>
482
  <?php echo BuildTextArea("Allowed SMTP servers", "postie-settings[smtp]", $smtp, "Only allow messages which have been sent throught the following smtp servers. Put each server on a separate line. Leave blank to not check smtp servers."); ?>
483
  </table>
484
  </div>
490
  echo BuildBooleanSelect("Automatically insert image gallery", "postie-settings[auto_gallery]", $auto_gallery, "If any images are attached, they will automatically be inserted as a gallery");
491
  echo BuildBooleanSelect("Post Images At End", "postie-settings[images_append]", $images_append, "No means they will be put before the text of the message.");
492
  echo BuildBooleanSelect("Start Image Count At 0", "postie-settings[start_image_count_at_zero]", $start_image_count_at_zero);
493
+ echo BuildBooleanSelect("Generate Thumbnails", "postie-settings[generate_thumbnails]", $generate_thumbnails, "Some hosts crash during thumbnail generation. Set this to 'No' if you have this issue.");
494
  ?>
495
  <tr>
496
  <th width="33%" valign="top" scope="row"><?php _e('Image Place Holder Tag:', 'postie') ?> </th>
docs/Changes.txt CHANGED
@@ -22,7 +22,13 @@ All script, style and body tags are stripped from html emails.
22
  Attachments are now processed in the order they were attached.
23
 
24
  == CHANGELOG ==
25
- = 1.5.6 (future) =
 
 
 
 
 
 
26
  * Fixed bug where default post format was empty when the theme didn't support any formats.
27
  * Removed all hard coded references to wp-content.
28
  * Fixed bug where caption wasn't being filled out in templates.
22
  Attachments are now processed in the order they were attached.
23
 
24
  == CHANGELOG ==
25
+ = 1.5.7 (2013.05.09) =
26
+ * Fixed bug where the admin user was not getting set as author in some cases.
27
+ * Fixed bug where file names were not being sanitized.
28
+ * Added setting to disable thumbnail generation.
29
+ * Updated the default signature patterns and help text.
30
+
31
+ = 1.5.6 (2013-05-07) =
32
  * Fixed bug where default post format was empty when the theme didn't support any formats.
33
  * Removed all hard coded references to wp-content.
34
  * Fixed bug where caption wasn't being filled out in templates.
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.1
9
- Stable tag: 1.5.6
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.1
9
+ Stable tag: 1.5.7
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 709665 2013-05-08 02:16:51Z WayneAllen $
5
  */
6
 
7
  //to turn on debug output add the following line to wp-config.php
@@ -147,7 +147,7 @@ function tag_Date(&$content, $message_date, $time_offset) {
147
 
148
  function CreatePost($poster, $mimeDecodedEmail, $post_id, &$is_reply, $config, $postmodifiers) {
149
 
150
- $fulldebug = false;
151
 
152
  extract($config);
153
 
@@ -900,12 +900,11 @@ function GetContent($part, &$attachments, $post_id, $poster, $config) {
900
  } else {
901
  $filename = "";
902
  if (property_exists($part, 'ctype_parameters') && is_array($part->ctype_parameters) && array_key_exists('name', $part->ctype_parameters)) {
903
- // fix filename (remove non-standard characters)
904
- //$filename = preg_replace("/[^\x9\xA\xD\x20-\x7F]/", "", $part->ctype_parameters['name']);
905
  $filename = $part->ctype_parameters['name'];
906
  } elseif (property_exists($part, 'd_parameters') && is_array($part->d_parameters) && array_key_exists('filename', $part->d_parameters)) {
907
  $filename = $part->d_parameters['filename'];
908
  }
 
909
  $fileext = strtolower(pathinfo($filename, PATHINFO_EXTENSION));
910
 
911
  DebugEcho("GetContent: file name '$filename'");
@@ -976,7 +975,7 @@ function GetContent($part, &$attachments, $post_id, $poster, $config) {
976
  if (array_key_exists('disposition', $part) && $part->disposition == 'attachment') {
977
  DebugEcho("text Attachement: $filename");
978
  if (!preg_match('/ATT\d\d\d\d\d.txt/i', $filename)) {
979
- $file_id = postie_media_handle_upload($part, $post_id, $poster);
980
  if (!is_wp_error($file_id)) {
981
  $file = wp_get_attachment_url($file_id);
982
  $icon = chooseAttachmentIcon($file, $mimetype_primary, $mimetype_secondary, $icon_set, $icon_size);
@@ -1030,7 +1029,7 @@ function GetContent($part, &$attachments, $post_id, $poster, $config) {
1030
 
1031
  case 'image':
1032
  DebugEcho("image Attachement: $filename");
1033
- $file_id = postie_media_handle_upload($part, $post_id, $poster);
1034
  if (!is_wp_error($file_id)) {
1035
  //featured image logic
1036
  //set the first image we come across as the featured image
@@ -1060,7 +1059,7 @@ function GetContent($part, &$attachments, $post_id, $poster, $config) {
1060
  case 'audio':
1061
  //DebugDump($part->headers);
1062
  DebugEcho("audio Attachement: $filename");
1063
- $file_id = postie_media_handle_upload($part, $post_id, $poster);
1064
  if (!is_wp_error($file_id)) {
1065
  $file = wp_get_attachment_url($file_id);
1066
  $cid = "";
@@ -1084,7 +1083,7 @@ function GetContent($part, &$attachments, $post_id, $poster, $config) {
1084
 
1085
  case 'video':
1086
  DebugEcho("video Attachement: $filename");
1087
- $file_id = postie_media_handle_upload($part, $post_id, $poster);
1088
  if (!is_wp_error($file_id)) {
1089
  $file = wp_get_attachment_url($file_id);
1090
  $cid = "";
@@ -1119,13 +1118,12 @@ function GetContent($part, &$attachments, $post_id, $poster, $config) {
1119
  DebugEcho("found pgp-signature - done");
1120
  break;
1121
  }
1122
- $file_id = postie_media_handle_upload($part, $post_id, $poster);
1123
  if (!is_wp_error($file_id)) {
1124
  $file = wp_get_attachment_url($file_id);
1125
  DebugEcho("uploaded $file_id ($file)");
1126
  $icon = chooseAttachmentIcon($file, $mimetype_primary, $mimetype_secondary, $icon_set, $icon_size);
1127
  DebugEcho("default: $icon $filename");
1128
- //$attachments["html"][$filename] = "<div class='postie-attachment-general'><a href='$file'>" . $icon . $filename . '</a></div>' . "\n";
1129
  $attachments["html"][$filename] = parseTemplate($file_id, $mimetype_primary, $generaltemplate, $filename, $icon);
1130
  if (array_key_exists('content-id', $part->headers)) {
1131
  $cid = trim($part->headers["content-id"], "<>");
@@ -1286,6 +1284,9 @@ function ValidatePoster(&$mimeDecodedEmail, $config) {
1286
  if ($user === false) {
1287
  EchoInfo("Your 'Admin username' setting '$admin_username' is not a valid WordPress user (1)");
1288
  $poster = 1;
 
 
 
1289
  }
1290
  }
1291
  } elseif ($turn_authorization_off || isEmailAddressAuthorized($from, $authorized_addresses) || isEmailAddressAuthorized($resentFrom, $authorized_addresses)) {
@@ -1366,7 +1367,7 @@ function filter_RemoveSignature(&$content, $config) {
1366
  }
1367
  //DebugEcho("looking for signature in: $content");
1368
 
1369
- $pattern = '/^(' . implode('|', $config['sig_pattern_list']) . ')\s?$/m';
1370
  DebugEcho("filter_RemoveSignature: pattern: $pattern");
1371
 
1372
  $html = LoadDOM($content);
@@ -1395,19 +1396,22 @@ function filter_RemoveSignature(&$content, $config) {
1395
  function filter_RemoveSignatureWorker(&$html, $pattern) {
1396
  $found = false;
1397
  if (preg_match($pattern, trim($html->plaintext), $matches)) {
1398
- DebugEcho("signature found in base: removing");
1399
  DebugDump($matches);
1400
  $found = true;
1401
  $i = stripos($html->innertext, $matches[1]);
1402
  $presig = substr($html->innertext, 0, $i);
1403
- DebugEcho("sig new text: '$presig'");
1404
  $html->innertext = $presig;
 
 
 
1405
  }
1406
 
1407
  foreach ($html->children() as $e) {
1408
  //DebugEcho("sig: " . $e->plaintext);
1409
  if (!$found && preg_match($pattern, trim($e->plaintext))) {
1410
- DebugEcho("signature found: removing");
1411
  $found = true;
1412
  }
1413
  if ($found) {
@@ -1639,7 +1643,8 @@ function filter_AppleFile(&$mimeDecodedEmail) {
1639
  }
1640
  }
1641
 
1642
- function postie_media_handle_upload($part, $post_id, $poster, $post_data = array()) {
 
1643
  $overrides = array('test_form' => false);
1644
 
1645
  $tmpFile = tempnam(get_temp_dir(), 'postie');
@@ -1670,7 +1675,9 @@ function postie_media_handle_upload($part, $post_id, $poster, $post_data = array
1670
  if (property_exists($part, 'd_parameters') && is_array($part->d_parameters) && array_key_exists('filename', $part->d_parameters) && $part->d_parameters['filename'] != '') {
1671
  $name = $part->d_parameters['filename'];
1672
  }
1673
- DebugEcho("name: $name, size: " . filesize($tmpFile));
 
 
1674
  //DebugDump($part);
1675
 
1676
  $the_file = array('name' => $name,
@@ -1741,11 +1748,15 @@ function postie_media_handle_upload($part, $post_id, $poster, $post_data = array
1741
  $id = wp_insert_attachment($attachment, $file, $post_id);
1742
  DebugEcho("attachement id: $id");
1743
  if (!is_wp_error($id)) {
1744
- $amd = wp_generate_attachment_metadata($id, $file);
1745
- DebugEcho("wp_generate_attachment_metadata");
1746
- //DebugDump($amd);
1747
- wp_update_attachment_metadata($id, $amd);
1748
- DebugEcho("wp_update_attachment_metadata complete");
 
 
 
 
1749
  } else {
1750
  EchoInfo("There was an error adding the attachement: " . $id->get_error_message());
1751
  }
@@ -2648,7 +2659,7 @@ function config_GetDefaults() {
2648
  'selected_video1template' => 'simple_link',
2649
  'selected_video2template' => 'simple_link',
2650
  'shortcode' => false,
2651
- 'sig_pattern_list' => array('--', '---'),
2652
  'smtp' => array(),
2653
  'start_image_count_at_zero' => false,
2654
  'supported_file_types' => array('application'),
@@ -2667,7 +2678,8 @@ function config_GetDefaults() {
2667
  'post_type' => 'post',
2668
  'generaltemplates' => $generalTemplates,
2669
  'generaltemplate' => $postie_default,
2670
- 'selected_generaltemplate' => 'postie_default'
 
2671
  );
2672
  }
2673
 
@@ -3043,10 +3055,6 @@ function IsDebugMode() {
3043
  return (defined('POSTIE_DEBUG') && POSTIE_DEBUG == true);
3044
  }
3045
 
3046
- function SafeFileName($filename) {
3047
- return str_replace(array('\\', '/', ':', '*', '?', '"', '<', '>', '|'), array('', '', '', '', '', '', '', '', ''), $filename);
3048
- }
3049
-
3050
  function DebugEmailOutput($email, $mimeDecodedEmail) {
3051
  if (IsDebugMode()) {
3052
  //DebugDump($email);
@@ -3054,7 +3062,7 @@ function DebugEmailOutput($email, $mimeDecodedEmail) {
3054
 
3055
  $dname = POSTIE_ROOT . DIRECTORY_SEPARATOR . "test_emails" . DIRECTORY_SEPARATOR;
3056
  if (is_dir($dname)) {
3057
- $fname = $dname . SafeFileName($mimeDecodedEmail->headers["message-id"]);
3058
  $file = fopen($fname . ".txt ", "w");
3059
  fwrite($file, $email);
3060
  fclose($file);
1
  <?php
2
 
3
  /*
4
+ $Id: postie-functions.php 710554 2013-05-09 19:28:59Z WayneAllen $
5
  */
6
 
7
  //to turn on debug output add the following line to wp-config.php
147
 
148
  function CreatePost($poster, $mimeDecodedEmail, $post_id, &$is_reply, $config, $postmodifiers) {
149
 
150
+ $fulldebug = true;
151
 
152
  extract($config);
153
 
900
  } else {
901
  $filename = "";
902
  if (property_exists($part, 'ctype_parameters') && is_array($part->ctype_parameters) && array_key_exists('name', $part->ctype_parameters)) {
 
 
903
  $filename = $part->ctype_parameters['name'];
904
  } elseif (property_exists($part, 'd_parameters') && is_array($part->d_parameters) && array_key_exists('filename', $part->d_parameters)) {
905
  $filename = $part->d_parameters['filename'];
906
  }
907
+ $filename = sanitize_file_name($filename);
908
  $fileext = strtolower(pathinfo($filename, PATHINFO_EXTENSION));
909
 
910
  DebugEcho("GetContent: file name '$filename'");
975
  if (array_key_exists('disposition', $part) && $part->disposition == 'attachment') {
976
  DebugEcho("text Attachement: $filename");
977
  if (!preg_match('/ATT\d\d\d\d\d.txt/i', $filename)) {
978
+ $file_id = postie_media_handle_upload($part, $post_id, $poster, $generate_thumbnails);
979
  if (!is_wp_error($file_id)) {
980
  $file = wp_get_attachment_url($file_id);
981
  $icon = chooseAttachmentIcon($file, $mimetype_primary, $mimetype_secondary, $icon_set, $icon_size);
1029
 
1030
  case 'image':
1031
  DebugEcho("image Attachement: $filename");
1032
+ $file_id = postie_media_handle_upload($part, $post_id, $poster, $generate_thumbnails);
1033
  if (!is_wp_error($file_id)) {
1034
  //featured image logic
1035
  //set the first image we come across as the featured image
1059
  case 'audio':
1060
  //DebugDump($part->headers);
1061
  DebugEcho("audio Attachement: $filename");
1062
+ $file_id = postie_media_handle_upload($part, $post_id, $poster, $generate_thumbnails);
1063
  if (!is_wp_error($file_id)) {
1064
  $file = wp_get_attachment_url($file_id);
1065
  $cid = "";
1083
 
1084
  case 'video':
1085
  DebugEcho("video Attachement: $filename");
1086
+ $file_id = postie_media_handle_upload($part, $post_id, $poster, $generate_thumbnails);
1087
  if (!is_wp_error($file_id)) {
1088
  $file = wp_get_attachment_url($file_id);
1089
  $cid = "";
1118
  DebugEcho("found pgp-signature - done");
1119
  break;
1120
  }
1121
+ $file_id = postie_media_handle_upload($part, $post_id, $poster, $generate_thumbnails);
1122
  if (!is_wp_error($file_id)) {
1123
  $file = wp_get_attachment_url($file_id);
1124
  DebugEcho("uploaded $file_id ($file)");
1125
  $icon = chooseAttachmentIcon($file, $mimetype_primary, $mimetype_secondary, $icon_set, $icon_size);
1126
  DebugEcho("default: $icon $filename");
 
1127
  $attachments["html"][$filename] = parseTemplate($file_id, $mimetype_primary, $generaltemplate, $filename, $icon);
1128
  if (array_key_exists('content-id', $part->headers)) {
1129
  $cid = trim($part->headers["content-id"], "<>");
1284
  if ($user === false) {
1285
  EchoInfo("Your 'Admin username' setting '$admin_username' is not a valid WordPress user (1)");
1286
  $poster = 1;
1287
+ } else {
1288
+ $poster = $user->ID;
1289
+ DebugEcho("posting as admin user $admin_username");
1290
  }
1291
  }
1292
  } elseif ($turn_authorization_off || isEmailAddressAuthorized($from, $authorized_addresses) || isEmailAddressAuthorized($resentFrom, $authorized_addresses)) {
1367
  }
1368
  //DebugEcho("looking for signature in: $content");
1369
 
1370
+ $pattern = '/^(' . implode('|', $config['sig_pattern_list']) . ')\s?$/mi';
1371
  DebugEcho("filter_RemoveSignature: pattern: $pattern");
1372
 
1373
  $html = LoadDOM($content);
1396
  function filter_RemoveSignatureWorker(&$html, $pattern) {
1397
  $found = false;
1398
  if (preg_match($pattern, trim($html->plaintext), $matches)) {
1399
+ DebugEcho("filter_RemoveSignatureWorker: signature found in base, removing");
1400
  DebugDump($matches);
1401
  $found = true;
1402
  $i = stripos($html->innertext, $matches[1]);
1403
  $presig = substr($html->innertext, 0, $i);
1404
+ DebugEcho("filter_RemoveSignatureWorker sig new text: '$presig'");
1405
  $html->innertext = $presig;
1406
+ } else {
1407
+ DebugEcho("filter_RemoveSignatureWorker: no matches {preg_last_error()} '$pattern' $html->plaintext");
1408
+ DebugDump($matches);
1409
  }
1410
 
1411
  foreach ($html->children() as $e) {
1412
  //DebugEcho("sig: " . $e->plaintext);
1413
  if (!$found && preg_match($pattern, trim($e->plaintext))) {
1414
+ DebugEcho("filter_RemoveSignatureWorker signature found: removing");
1415
  $found = true;
1416
  }
1417
  if ($found) {
1643
  }
1644
  }
1645
 
1646
+ function postie_media_handle_upload($part, $post_id, $poster, $generate_thubnails = true) {
1647
+ $post_data = array();
1648
  $overrides = array('test_form' => false);
1649
 
1650
  $tmpFile = tempnam(get_temp_dir(), 'postie');
1675
  if (property_exists($part, 'd_parameters') && is_array($part->d_parameters) && array_key_exists('filename', $part->d_parameters) && $part->d_parameters['filename'] != '') {
1676
  $name = $part->d_parameters['filename'];
1677
  }
1678
+ DebugEcho("pre-sanitize name: $name, size: " . filesize($tmpFile));
1679
+ $name = sanitize_file_name($name);
1680
+ DebugEcho("post sanitize name: $name");
1681
  //DebugDump($part);
1682
 
1683
  $the_file = array('name' => $name,
1748
  $id = wp_insert_attachment($attachment, $file, $post_id);
1749
  DebugEcho("attachement id: $id");
1750
  if (!is_wp_error($id)) {
1751
+ if ($generate_thubnails) {
1752
+ $amd = wp_generate_attachment_metadata($id, $file);
1753
+ DebugEcho("wp_generate_attachment_metadata");
1754
+ //DebugDump($amd);
1755
+ wp_update_attachment_metadata($id, $amd);
1756
+ DebugEcho("wp_update_attachment_metadata complete");
1757
+ } else {
1758
+ DebugEcho("thumbnail generation disabled");
1759
+ }
1760
  } else {
1761
  EchoInfo("There was an error adding the attachement: " . $id->get_error_message());
1762
  }
2659
  'selected_video1template' => 'simple_link',
2660
  'selected_video2template' => 'simple_link',
2661
  'shortcode' => false,
2662
+ 'sig_pattern_list' => array('--\s?[\r\n]?', '---'),
2663
  'smtp' => array(),
2664
  'start_image_count_at_zero' => false,
2665
  'supported_file_types' => array('application'),
2678
  'post_type' => 'post',
2679
  'generaltemplates' => $generalTemplates,
2680
  'generaltemplate' => $postie_default,
2681
+ 'selected_generaltemplate' => 'postie_default',
2682
+ 'generate_thumbnails' => true
2683
  );
2684
  }
2685
 
3055
  return (defined('POSTIE_DEBUG') && POSTIE_DEBUG == true);
3056
  }
3057
 
 
 
 
 
3058
  function DebugEmailOutput($email, $mimeDecodedEmail) {
3059
  if (IsDebugMode()) {
3060
  //DebugDump($email);
3062
 
3063
  $dname = POSTIE_ROOT . DIRECTORY_SEPARATOR . "test_emails" . DIRECTORY_SEPARATOR;
3064
  if (is_dir($dname)) {
3065
+ $fname = $dname . sanitize_file_name($mimeDecodedEmail->headers["message-id"]);
3066
  $file = fopen($fname . ".txt ", "w");
3067
  fwrite($file, $email);
3068
  fclose($file);
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.5.6
8
  Author: Wayne Allen
9
  Author URI: http://allens-home.com/
10
  License: GPL2
@@ -27,10 +27,10 @@
27
  */
28
 
29
  /*
30
- $Id: postie.php 709665 2013-05-08 02:16:51Z WayneAllen $
31
  */
32
 
33
- define('POSTIE_VERSION', '1.5.6');
34
  define("POSTIE_ROOT", dirname(__FILE__));
35
  define("POSTIE_URL", WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
36
 
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.5.7
8
  Author: Wayne Allen
9
  Author URI: http://allens-home.com/
10
  License: GPL2
27
  */
28
 
29
  /*
30
+ $Id: postie.php 710554 2013-05-09 19:28:59Z WayneAllen $
31
  */
32
 
33
+ define('POSTIE_VERSION', '1.5.7');
34
  define("POSTIE_ROOT", dirname(__FILE__));
35
  define("POSTIE_URL", WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
36
 
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.1
9
- Stable tag: 1.5.6
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -444,7 +444,13 @@ All script, style and body tags are stripped from html emails.
444
  Attachments are now processed in the order they were attached.
445
 
446
  == CHANGELOG ==
447
- = 1.5.6 (future) =
 
 
 
 
 
 
448
  * Fixed bug where default post format was empty when the theme didn't support any formats.
449
  * Removed all hard coded references to wp-content.
450
  * Fixed bug where caption wasn't being filled out in templates.
6
  Tags: e-mail, email
7
  Requires at least: 3.0
8
  Tested up to: 3.5.1
9
+ Stable tag: 1.5.7
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
444
  Attachments are now processed in the order they were attached.
445
 
446
  == CHANGELOG ==
447
+ = 1.5.7 (2013.05.09) =
448
+ * Fixed bug where the admin user was not getting set as author in some cases.
449
+ * Fixed bug where file names were not being sanitized.
450
+ * Added setting to disable thumbnail generation.
451
+ * Updated the default signature patterns and help text.
452
+
453
+ = 1.5.6 (2013-05-07) =
454
  * Fixed bug where default post format was empty when the theme didn't support any formats.
455
  * Removed all hard coded references to wp-content.
456
  * Fixed bug where caption wasn't being filled out in templates.