Postie - Version 1.8.38

Version Description

(2017-04-06) = * Update postie_notify_error to be less noisy.

Download this release

Release Info

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

Code changes from version 1.8.37 to 1.8.38

Files changed (5) hide show
  1. docs/Changes.txt +3 -0
  2. docs/Postie.txt +1 -1
  3. postie-functions.php +6 -2
  4. postie.php +3 -3
  5. readme.txt +4 -1
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.37 (2017-04-05) =
39
  * Remove DateTimeImmutable references to be compatible with old versions of PHP
40
 
35
  Attachments are now processed in the order they were attached.
36
 
37
  == CHANGELOG ==
38
+ = 1.8.38 (2017-04-06) =
39
+ * Update postie_notify_error to be less noisy.
40
+
41
  = 1.8.37 (2017-04-05) =
42
  * Remove DateTimeImmutable references to be compatible with old versions of PHP
43
 
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.7.3
9
- Stable tag: 1.8.37
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.7.3
9
+ Stable tag: 1.8.38
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 1630502 2017-04-05 20:24:37Z WayneAllen $
4
  */
5
 
6
  class PostiePostModifiers {
@@ -836,7 +836,6 @@ function postie_getemails($type, $server, $port, $email, $password, $protocol, $
836
  $mailbox->close();
837
  } catch (Exception $e) {
838
  EchoError("postie_getemails: " . $e->getMessage());
839
- postie_notify_error("Error: postie_getemails", $e->getMessage());
840
  }
841
 
842
  return $emails;
@@ -852,6 +851,9 @@ function postie_notify_error($subject, $message) {
852
  foreach (get_users(array('role' => 'administrator')) as $user) {
853
  $recipients[] = $user->user_email;
854
  }
 
 
 
855
  } else {
856
  $user = get_user_by('login', $config['postie_log_error_notify']);
857
  if ($user === false) {
@@ -859,6 +861,8 @@ function postie_notify_error($subject, $message) {
859
  }
860
  $recipients[] = $user->user_login;
861
  }
 
 
862
  wp_mail($recipients, $subject, $message);
863
  }
864
 
1
  <?php
2
  /*
3
+ $Id: postie-functions.php 1631197 2017-04-06 15:35:38Z WayneAllen $
4
  */
5
 
6
  class PostiePostModifiers {
836
  $mailbox->close();
837
  } catch (Exception $e) {
838
  EchoError("postie_getemails: " . $e->getMessage());
 
839
  }
840
 
841
  return $emails;
851
  foreach (get_users(array('role' => 'administrator')) as $user) {
852
  $recipients[] = $user->user_email;
853
  }
854
+ if (count($recipients) == 0) {
855
+ return;
856
+ }
857
  } else {
858
  $user = get_user_by('login', $config['postie_log_error_notify']);
859
  if ($user === false) {
861
  }
862
  $recipients[] = $user->user_login;
863
  }
864
+
865
+ $message = "This message has been sent from " . get_site_url() . ". You can disable or control who receives them by changing the Postie 'Notify on Error' setting.\n\n" . $message;
866
  wp_mail($recipients, $subject, $message);
867
  }
868
 
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.37
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL2
@@ -28,7 +28,7 @@
28
  */
29
 
30
  /*
31
- $Id: postie.php 1630502 2017-04-05 20:24:37Z WayneAllen $
32
  */
33
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib/fException.php");
34
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib/fUnexpectedException.php");
@@ -60,7 +60,7 @@ if (!function_exists('file_get_html')) {
60
  require_once (plugin_dir_path(__FILE__) . 'simple_html_dom.php');
61
  }
62
 
63
- define('POSTIE_VERSION', '1.8.37');
64
  define("POSTIE_ROOT", dirname(__FILE__));
65
  define("POSTIE_URL", WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
66
 
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.38
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL2
28
  */
29
 
30
  /*
31
+ $Id: postie.php 1631197 2017-04-06 15:35:38Z WayneAllen $
32
  */
33
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib/fException.php");
34
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib/fUnexpectedException.php");
60
  require_once (plugin_dir_path(__FILE__) . 'simple_html_dom.php');
61
  }
62
 
63
+ define('POSTIE_VERSION', '1.8.38');
64
  define("POSTIE_ROOT", dirname(__FILE__));
65
  define("POSTIE_URL", WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
66
 
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.7.3
9
- Stable tag: 1.8.37
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.37 (2017-04-05) =
246
  * Remove DateTimeImmutable references to be compatible with old versions of PHP
247
 
6
  Tags: e-mail, email, post-by-email
7
  Requires at least: 3.3.0
8
  Tested up to: 4.7.3
9
+ Stable tag: 1.8.38
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.38 (2017-04-06) =
246
+ * Update postie_notify_error to be less noisy.
247
+
248
  = 1.8.37 (2017-04-05) =
249
  * Remove DateTimeImmutable references to be compatible with old versions of PHP
250