Postie - Version 1.8.43

Version Description

(2017-05-10) = * Fix "postie-attachments" div to wrap the right content * Fix time zone adjustment

Download this release

Release Info

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

Code changes from version 1.8.42 to 1.8.43

Files changed (5) hide show
  1. docs/Changes.txt +4 -0
  2. docs/Postie.txt +1 -1
  3. postie-functions.php +11 -9
  4. postie.php +3 -3
  5. readme.txt +5 -1
docs/Changes.txt CHANGED
@@ -35,6 +35,10 @@ 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.42 (2017-05-10) =
39
  * Wrap all attachments in div with css class "postie-attachments"
40
  * Remove APOP authentication attempt as some servers disconnect on failure.
35
  Attachments are now processed in the order they were attached.
36
 
37
  == CHANGELOG ==
38
+ = 1.8.43 (2017-05-10) =
39
+ * Fix "postie-attachments" div to wrap the right content
40
+ * Fix time zone adjustment
41
+
42
  = 1.8.42 (2017-05-10) =
43
  * Wrap all attachments in div with css class "postie-attachments"
44
  * Remove APOP authentication attempt as some servers disconnect on failure.
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.4
9
- Stable tag: 1.8.42
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.4
9
+ Stable tag: 1.8.43
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 1653903 2017-05-09 22:46:20Z WayneAllen $
4
  */
5
 
6
  class PostiePostModifiers {
@@ -302,10 +302,12 @@ function filter_AttachmentTemplates($content, $mimeDecodedEmail, $post_id, $conf
302
  }
303
  }
304
 
305
- if ($config['images_append']) {
306
- $content = '<div class="postie-attachments">' . $content . '</div>' . $html;
307
- } else {
308
- $content = $html . '<div class="postie-attachments">' . $content . '</div>';
 
 
309
  }
310
 
311
 
@@ -1589,15 +1591,15 @@ function tag_Delay(&$content, $message_date, $config) {
1589
  DebugEcho("tag_Delay: timezone: $tzs");
1590
 
1591
  if ($config['ignore_email_date']) {
1592
- $dateInSeconds = new DateTime(current_time('mysql'));
1593
  DebugEcho("tag_Delay: ignoring date: " . $dateInSeconds->format(DATE_RFC2822));
1594
  } else {
1595
  if (empty($message_date)) {
1596
- $dateInSeconds = new DateTime(current_time('mysql'));
1597
  DebugEcho("tag_Delay: using current date: " . $dateInSeconds->format(DATE_RFC2822));
1598
  } else {
1599
  DebugEcho("tag_Delay: using message date(1): $message_date");
1600
- $dateInSeconds = new DateTime($message_date);
1601
  DebugEcho("tag_Delay: using message date(2): " . $dateInSeconds->format(DATE_RFC2822));
1602
  }
1603
  }
@@ -1611,7 +1613,7 @@ function tag_Delay(&$content, $message_date, $config) {
1611
  if ($delay == 0) {
1612
  $delayeddateInSeconds = clone $dateInSeconds;
1613
  }
1614
- $delayeddateInSeconds->setTimezone(new DateTimeZone($tzs));
1615
 
1616
  if ($offset > 0) {
1617
  $corrected_date = $delayeddateInSeconds->add(new DateInterval('PT' . $offset . 'H'));
1
  <?php
2
  /*
3
+ $Id: postie-functions.php 1654686 2017-05-10 23:24:36Z WayneAllen $
4
  */
5
 
6
  class PostiePostModifiers {
302
  }
303
  }
304
 
305
+ if (!empty($html)) {
306
+ if ($config['images_append']) {
307
+ $content = $content . '<div class="postie-attachments">' . $html . '</div>';
308
+ } else {
309
+ $content = '<div class="postie-attachments">' . $html . '</div>' . $content;
310
+ }
311
  }
312
 
313
 
1591
  DebugEcho("tag_Delay: timezone: $tzs");
1592
 
1593
  if ($config['ignore_email_date']) {
1594
+ $dateInSeconds = new DateTime(current_time('mysql'), new DateTimeZone($tzs));
1595
  DebugEcho("tag_Delay: ignoring date: " . $dateInSeconds->format(DATE_RFC2822));
1596
  } else {
1597
  if (empty($message_date)) {
1598
+ $dateInSeconds = new DateTime(current_time('mysql'), new DateTimeZone($tzs));
1599
  DebugEcho("tag_Delay: using current date: " . $dateInSeconds->format(DATE_RFC2822));
1600
  } else {
1601
  DebugEcho("tag_Delay: using message date(1): $message_date");
1602
+ $dateInSeconds = new DateTime($message_date, new DateTimeZone($tzs));
1603
  DebugEcho("tag_Delay: using message date(2): " . $dateInSeconds->format(DATE_RFC2822));
1604
  }
1605
  }
1613
  if ($delay == 0) {
1614
  $delayeddateInSeconds = clone $dateInSeconds;
1615
  }
1616
+ //$delayeddateInSeconds->setTimezone(new DateTimeZone($tzs));
1617
 
1618
  if ($offset > 0) {
1619
  $corrected_date = $delayeddateInSeconds->add(new DateInterval('PT' . $offset . 'H'));
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.42
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL2
@@ -28,7 +28,7 @@
28
  */
29
 
30
  /*
31
- $Id: postie.php 1654655 2017-05-10 21:43:19Z WayneAllen $
32
  */
33
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib/fException.php");
34
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib/fUnexpectedException.php");
@@ -62,7 +62,7 @@ if (!function_exists('file_get_html')) {
62
  require_once (plugin_dir_path(__FILE__) . 'lib/simple_html_dom.php');
63
  }
64
 
65
- define('POSTIE_VERSION', '1.8.42');
66
  define("POSTIE_ROOT", dirname(__FILE__));
67
  define("POSTIE_URL", WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
68
 
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.43
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL2
28
  */
29
 
30
  /*
31
+ $Id: postie.php 1654689 2017-05-10 23:26:11Z WayneAllen $
32
  */
33
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib/fException.php");
34
  require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lib/fUnexpectedException.php");
62
  require_once (plugin_dir_path(__FILE__) . 'lib/simple_html_dom.php');
63
  }
64
 
65
+ define('POSTIE_VERSION', '1.8.43');
66
  define("POSTIE_ROOT", dirname(__FILE__));
67
  define("POSTIE_URL", WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
68
 
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.4
9
- Stable tag: 1.8.42
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -242,6 +242,10 @@ 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.42 (2017-05-10) =
246
  * Wrap all attachments in div with css class "postie-attachments"
247
  * Remove APOP authentication attempt as some servers disconnect on failure.
6
  Tags: e-mail, email, post-by-email
7
  Requires at least: 3.3.0
8
  Tested up to: 4.7.4
9
+ Stable tag: 1.8.43
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.43 (2017-05-10) =
246
+ * Fix "postie-attachments" div to wrap the right content
247
+ * Fix time zone adjustment
248
+
249
  = 1.8.42 (2017-05-10) =
250
  * Wrap all attachments in div with css class "postie-attachments"
251
  * Remove APOP authentication attempt as some servers disconnect on failure.