Postie - Version 1.5.3

Version Description

  • Postie can now set the first image in an email to be the "Featured" image. There is a new setting "Use First Image as Featured Image" which is off by default.
  • Postie now supports Use Transport Layer Security (TLS)
Download this release

Release Info

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

Code changes from version 1.5.2 to 1.5.3

config_form.php CHANGED
@@ -127,6 +127,9 @@
127
  <?php endif; ?>
128
  </td>
129
  </tr>
 
 
 
130
  <tr>
131
  <th scope="row"><?php _e('Port:', 'postie') ?><br />
132
  <span class='recommendation'><?php _e("Standard Ports:", 'postie'); ?><br />
@@ -416,6 +419,7 @@
416
  <table class='form-table'>
417
 
418
  <?php
 
419
  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");
420
  echo BuildBooleanSelect("Post Images At End", "postie-settings[images_append]", $images_append, "No means they will be put before the text of the message.");
421
  echo BuildBooleanSelect("Start Image Count At 0", "postie-settings[start_image_count_at_zero]", $start_image_count_at_zero);
127
  <?php endif; ?>
128
  </td>
129
  </tr>
130
+
131
+ <?php echo BuildBooleanSelect(__("Use Transport Layer Security (TLS)"), 'postie-settings[email_tls]', $email_tls, __("Choose Yes if your server requres TLS")); ?>
132
+
133
  <tr>
134
  <th scope="row"><?php _e('Port:', 'postie') ?><br />
135
  <span class='recommendation'><?php _e("Standard Ports:", 'postie'); ?><br />
419
  <table class='form-table'>
420
 
421
  <?php
422
+ echo BuildBooleanSelect("Use First Image as Featured Image", "postie-settings[featured_image]", $featured_image, "If any images are attached, the first one will be the featured image for the post");
423
  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");
424
  echo BuildBooleanSelect("Post Images At End", "postie-settings[images_append]", $images_append, "No means they will be put before the text of the message.");
425
  echo BuildBooleanSelect("Start Image Count At 0", "postie-settings[start_image_count_at_zero]", $start_image_count_at_zero);
docs/Changes.txt CHANGED
@@ -1,5 +1,9 @@
1
  == Upgrade Notice ==
2
 
 
 
 
 
3
  = 1.5.0 =
4
  * New filter postie_filter_email. Used to map "from" to any other email. Allows custom user mapping.
5
 
@@ -18,12 +22,17 @@ All script, style and body tags are stripped from html emails.
18
  Attachments are now processed in the order they were attached.
19
 
20
  == CHANGELOG ==
21
- = 1.5.2 (2013.04.12)
 
 
 
 
 
22
  * Fixed bug in post type/format detection when no valid post type/format was found
23
  * Workaround for WP bug when POP3 account has no waiting messages
24
  * Fixed bug where cron was running postie_check on every page load
25
 
26
- = 1.5.1 (2013.04.10)
27
  * Turned on POP3 debug logging if POSTIE_DEBUG is TRUE.
28
  * Disable autocomplete on some setup fields
29
  * Fixed bug where confirmation emails were not being sent to authors
1
  == Upgrade Notice ==
2
 
3
+ = 1.5.3 =
4
+ * Postie can now set the first image in an email to be the "Featured" image. There is a new setting "Use First Image as Featured Image" which is off by default.
5
+ * Postie now supports Use Transport Layer Security (TLS)
6
+
7
  = 1.5.0 =
8
  * New filter postie_filter_email. Used to map "from" to any other email. Allows custom user mapping.
9
 
22
  Attachments are now processed in the order they were attached.
23
 
24
  == CHANGELOG ==
25
+ = 1.5.3 (2013.04.13) =
26
+ * Added support for Featured Images
27
+ * Added support for Use Transport Layer Security (TLS)
28
+ * Updated postie_filter_email filter to get unprocessed email address
29
+
30
+ = 1.5.2 (2013.04.12) =
31
  * Fixed bug in post type/format detection when no valid post type/format was found
32
  * Workaround for WP bug when POP3 account has no waiting messages
33
  * Fixed bug where cron was running postie_check on every page load
34
 
35
+ = 1.5.1 (2013.04.10) =
36
  * Turned on POP3 debug logging if POSTIE_DEBUG is TRUE.
37
  * Disable autocomplete on some setup fields
38
  * Fixed bug where confirmation emails were not being sent to authors
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.2
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.3
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
docs/TODO.txt CHANGED
@@ -1,8 +1,7 @@
1
  provide a location for custom icons. update docs about location.
2
  hide/disable config options that don't apply
3
  handle condition where only one of text/plain & text/html is supplied, but Preferred Text Type is set to the opposite.
4
- replace native imap with flourish - http://flourishlib.com/docs/fMailbox
5
- replace MIME parser
6
  automatically create category if it doesn't exist. new option to allow this feature?
7
  WP MU support
8
  Add setting for category detection. I.e. checkboxes for [], -- and : styles. Default to all on.
@@ -10,12 +9,12 @@ setting for default post type/post format
10
  Make sure all failures are sent to admin (option?) failed attachments, etc.
11
  debug assistance
12
  Comment not being created when subject contains category command []. I.e. listserv subject lines
13
- code to set featured image. Global setting (first picture is featured). Featured tag to enable per email. Enhance #img# http://codex.wordpress.org/Function_Reference/set_post_thumbnail
14
  reply logic not adding to comments
15
  rework attachment logic. video files can come through as application/octect-stream. Mail parsing should separate attachments
16
  into buckets? i.e. video, image, other. Each gets processed differently. I.e. when gallery in turned on images don't get embedded
17
  but videos do.
18
  date: tag is being detected in body when not wanted
 
19
 
20
  standardize tags
21
  fix postie settings http://alisothegeek.com/2011/01/wordpress-settings-api-tutorial-1/
1
  provide a location for custom icons. update docs about location.
2
  hide/disable config options that don't apply
3
  handle condition where only one of text/plain & text/html is supplied, but Preferred Text Type is set to the opposite.
4
+ replace native imap MIME parser with flourish - http://flourishlib.com/docs/fMailbox
 
5
  automatically create category if it doesn't exist. new option to allow this feature?
6
  WP MU support
7
  Add setting for category detection. I.e. checkboxes for [], -- and : styles. Default to all on.
9
  Make sure all failures are sent to admin (option?) failed attachments, etc.
10
  debug assistance
11
  Comment not being created when subject contains category command []. I.e. listserv subject lines
 
12
  reply logic not adding to comments
13
  rework attachment logic. video files can come through as application/octect-stream. Mail parsing should separate attachments
14
  into buckets? i.e. video, image, other. Each gets processed differently. I.e. when gallery in turned on images don't get embedded
15
  but videos do.
16
  date: tag is being detected in body when not wanted
17
+ Enhance #img# to specify the featured image
18
 
19
  standardize tags
20
  fix postie settings http://alisothegeek.com/2011/01/wordpress-settings-api-tutorial-1/
get_mail.php CHANGED
@@ -29,7 +29,7 @@ extract($config);
29
  if (!isset($maxemails))
30
  $maxemails = 0;
31
 
32
- $emails = FetchMail($mail_server, $mail_server_port, $mail_userid, $mail_password, $input_protocol, $time_offset, $test_email, $delete_mail_after_processing, $maxemails);
33
  $message = 'Done.';
34
 
35
  EchoInfo(sprintf(__("There are %d messages to process", "postie"), count($emails)));
29
  if (!isset($maxemails))
30
  $maxemails = 0;
31
 
32
+ $emails = FetchMail($mail_server, $mail_server_port, $mail_userid, $mail_password, $input_protocol, $time_offset, $test_email, $delete_mail_after_processing, $maxemails, $email_tls);
33
  $message = 'Done.';
34
 
35
  EchoInfo(sprintf(__("There are %d messages to process", "postie"), count($emails)));
postie-functions.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  /*
4
- $Id: postie-functions.php 696836 2013-04-12 23:57:07Z WayneAllen $
5
  */
6
 
7
  //to turn on debug output add the following line to wp-config.php
@@ -538,12 +538,14 @@ function make_links($text) {
538
  function getPostAuthorDetails(&$subject, &$content, &$mimeDecodedEmail) {
539
 
540
  $theDate = $mimeDecodedEmail->headers['date'];
541
- $theEmail = RemoveExtraCharactersInEmailAddress(trim($mimeDecodedEmail->headers["from"]));
542
 
 
543
  DebugEcho("getPostAuthorDetails: pre email filter $theEmail");
544
  $theEmail = apply_filters("postie_filter_email", $theEmail);
545
  DebugEcho("getPostAuthorDetails: post email filter $theEmail");
546
 
 
 
547
  $regAuthor = get_user_by('email', $theEmail);
548
  if ($regAuthor) {
549
  $theAuthor = $regAuthor->user_login;
@@ -654,7 +656,7 @@ function ConfigurePostie() {
654
  * This function handles determining the protocol and fetching the mail
655
  * @return array
656
  */
657
- function FetchMail($server = NULL, $port = NULL, $email = NULL, $password = NULL, $protocol = NULL, $offset = NULL, $test = NULL, $deleteMessages = true, $maxemails = 0) {
658
  $emails = array();
659
  if (!$server || !$port || !$email) {
660
  EchoInfo("Missing Configuration For Mail Server");
@@ -679,7 +681,7 @@ function FetchMail($server = NULL, $port = NULL, $email = NULL, $password = NULL
679
  if (!HasIMAPSupport()) {
680
  EchoInfo("Sorry - you do not have IMAP php module installed - it is required for this mail setting.");
681
  } else {
682
- $emails = IMAPMessageFetch($server, $port, $email, $password, $protocol, $offset, $test, $deleteMessages, $maxemails);
683
  }
684
  break;
685
  case 'pop3':
@@ -693,11 +695,14 @@ function FetchMail($server = NULL, $port = NULL, $email = NULL, $password = NULL
693
  /**
694
  * Handles fetching messages from an imap server
695
  */
696
- function IMAPMessageFetch($server = NULL, $port = NULL, $email = NULL, $password = NULL, $protocol = NULL, $offset = NULL, $test = NULL, $deleteMessages = true, $maxemails = 0) {
697
  require_once("postieIMAP.php");
698
  $emails = array();
699
  $mail_server = &PostieIMAP::Factory($protocol);
700
- EchoInfo("Connecting to $server:$port ($protocol)");
 
 
 
701
  if ($mail_server->connect($server, $port, $email, $password)) {
702
  $msg_count = $mail_server->getNumberOfMessages();
703
  } else {
@@ -1026,6 +1031,13 @@ function GetContent($part, &$attachments, $post_id, $poster, $config) {
1026
  DebugEcho("image Attachement: $filename");
1027
  $file_id = postie_media_handle_upload($part, $post_id, $poster);
1028
  if (!is_wp_error($file_id)) {
 
 
 
 
 
 
 
1029
  $file = wp_get_attachment_url($file_id);
1030
  $cid = "";
1031
  if (array_key_exists('content-id', $part->headers)) {
@@ -2625,7 +2637,9 @@ function config_GetDefaults() {
2625
  'video2types' => array('x-flv'),
2626
  'video1templates' => $video1Templates,
2627
  'video2templates' => $video2Templates,
2628
- 'wrap_pre' => 'no'
 
 
2629
  );
2630
  }
2631
 
1
  <?php
2
 
3
  /*
4
+ $Id: postie-functions.php 697183 2013-04-14 05:39:42Z WayneAllen $
5
  */
6
 
7
  //to turn on debug output add the following line to wp-config.php
538
  function getPostAuthorDetails(&$subject, &$content, &$mimeDecodedEmail) {
539
 
540
  $theDate = $mimeDecodedEmail->headers['date'];
 
541
 
542
+ $theEmail = $mimeDecodedEmail->headers["from"];
543
  DebugEcho("getPostAuthorDetails: pre email filter $theEmail");
544
  $theEmail = apply_filters("postie_filter_email", $theEmail);
545
  DebugEcho("getPostAuthorDetails: post email filter $theEmail");
546
 
547
+ $theEmail = RemoveExtraCharactersInEmailAddress($theEmail);
548
+
549
  $regAuthor = get_user_by('email', $theEmail);
550
  if ($regAuthor) {
551
  $theAuthor = $regAuthor->user_login;
656
  * This function handles determining the protocol and fetching the mail
657
  * @return array
658
  */
659
+ function FetchMail($server = NULL, $port = NULL, $email = NULL, $password = NULL, $protocol = NULL, $offset = NULL, $test = NULL, $deleteMessages = true, $maxemails = 0, $email_tls = false) {
660
  $emails = array();
661
  if (!$server || !$port || !$email) {
662
  EchoInfo("Missing Configuration For Mail Server");
681
  if (!HasIMAPSupport()) {
682
  EchoInfo("Sorry - you do not have IMAP php module installed - it is required for this mail setting.");
683
  } else {
684
+ $emails = IMAPMessageFetch($server, $port, $email, $password, $protocol, $offset, $test, $deleteMessages, $maxemails, $email_tls);
685
  }
686
  break;
687
  case 'pop3':
695
  /**
696
  * Handles fetching messages from an imap server
697
  */
698
+ function IMAPMessageFetch($server = NULL, $port = NULL, $email = NULL, $password = NULL, $protocol = NULL, $offset = NULL, $test = NULL, $deleteMessages = true, $maxemails = 0, $tls = false) {
699
  require_once("postieIMAP.php");
700
  $emails = array();
701
  $mail_server = &PostieIMAP::Factory($protocol);
702
+ if ($tls) {
703
+ $mail_server->TLSOn();
704
+ }
705
+ EchoInfo("Connecting to $server:$port ($protocol)" . ($tls ? " with TLS" : ""));
706
  if ($mail_server->connect($server, $port, $email, $password)) {
707
  $msg_count = $mail_server->getNumberOfMessages();
708
  } else {
1031
  DebugEcho("image Attachement: $filename");
1032
  $file_id = postie_media_handle_upload($part, $post_id, $poster);
1033
  if (!is_wp_error($file_id)) {
1034
+ //featured image logic
1035
+ //set the first image we come across as the featured image
1036
+ DebugEcho("has_post_thumbnail: " . has_post_thumbnail($post_id));
1037
+ if ($featured_image && !has_post_thumbnail($post_id)) {
1038
+ DebugEcho("featured image: $file_id");
1039
+ set_post_thumbnail($post_id, $file_id);
1040
+ }
1041
  $file = wp_get_attachment_url($file_id);
1042
  $cid = "";
1043
  if (array_key_exists('content-id', $part->headers)) {
2637
  'video2types' => array('x-flv'),
2638
  'video1templates' => $video1Templates,
2639
  'video2templates' => $video2Templates,
2640
+ 'wrap_pre' => 'no',
2641
+ 'featured_image' => false,
2642
+ 'email_tls' => false
2643
  );
2644
  }
2645
 
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.2
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 696838 2013-04-13 00:01:48Z WayneAllen $
31
  */
32
 
33
  define("POSTIE_ROOT", dirname(__FILE__));
@@ -154,6 +154,16 @@ function postie_warnings() {
154
 
155
  add_action('admin_notices', 'postie_imap_warning');
156
  }
 
 
 
 
 
 
 
 
 
 
157
 
158
  if (!function_exists('mb_detect_encoding')) {
159
 
@@ -223,7 +233,6 @@ function check_postie() {
223
  function postie_cron($interval = false) {
224
  //Do not echo output in filters, it seems to break some installs
225
  //error_log("postie_cron: setting up cron task: $interval");
226
-
227
  //$schedules = wp_get_schedules();
228
  //error_log("postie_cron\n" . print_r($schedules, true));
229
 
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.3
8
  Author: Wayne Allen
9
  Author URI: http://allens-home.com/
10
  License: GPL2
27
  */
28
 
29
  /*
30
+ $Id: postie.php 697184 2013-04-14 05:43:22Z WayneAllen $
31
  */
32
 
33
  define("POSTIE_ROOT", dirname(__FILE__));
154
 
155
  add_action('admin_notices', 'postie_imap_warning');
156
  }
157
+ if ($p == 'pop3' && $config['email_tls']) {
158
+
159
+ function postie_tls_warning() {
160
+ echo "<div id='postie-lst-warning' class='error'><p><strong>";
161
+ echo __('Warning: The POP3 connector does not support TLS.', 'postie');
162
+ echo "</strong></p></div>";
163
+ }
164
+
165
+ add_action('admin_notices', 'postie_tls_warning');
166
+ }
167
 
168
  if (!function_exists('mb_detect_encoding')) {
169
 
233
  function postie_cron($interval = false) {
234
  //Do not echo output in filters, it seems to break some installs
235
  //error_log("postie_cron: setting up cron task: $interval");
 
236
  //$schedules = wp_get_schedules();
237
  //error_log("postie_cron\n" . print_r($schedules, true));
238
 
postieIMAP.php CHANGED
@@ -75,9 +75,6 @@ class PostieIMAP {
75
  if (preg_match("/google|gmail/i", $server)) {
76
  //Fix from Jim Hodgson http://www.jimhodgson.com/2006/07/19/postie/
77
  $this->_server_string = "{" . $server . ":" . $port . $option . "}INBOX";
78
- // if (IsDebugMode()) {
79
- // $this->_server_string = "{" . $server . ":" . $port . $option . "}[Gmail]/All Mail";
80
- // }
81
  } else {
82
  $this->_server_string = "{" . $server . ":" . $port . $option . "}";
83
  }
75
  if (preg_match("/google|gmail/i", $server)) {
76
  //Fix from Jim Hodgson http://www.jimhodgson.com/2006/07/19/postie/
77
  $this->_server_string = "{" . $server . ":" . $port . $option . "}INBOX";
 
 
 
78
  } else {
79
  $this->_server_string = "{" . $server . ":" . $port . $option . "}";
80
  }
postie_test.php CHANGED
@@ -87,6 +87,9 @@ DebugEcho("Error log: " . ini_get('error_log'));
87
  } else {
88
  require_once("postieIMAP.php");
89
  $mail_server = &PostieIMAP::Factory($config["input_protocol"]);
 
 
 
90
  if (!$mail_server->connect($config["mail_server"], $config["mail_server_port"], $config["mail_userid"], $config["mail_password"])) {
91
  EchoInfo("Unable to connect. The server said:");
92
  EchoInfo($mail_server->error());
87
  } else {
88
  require_once("postieIMAP.php");
89
  $mail_server = &PostieIMAP::Factory($config["input_protocol"]);
90
+ if ($email_tls){
91
+ $mail_server->TLSOn();
92
+ }
93
  if (!$mail_server->connect($config["mail_server"], $config["mail_server_port"], $config["mail_userid"], $config["mail_password"])) {
94
  EchoInfo("Unable to connect. The server said:");
95
  EchoInfo($mail_server->error());
readme.html CHANGED
@@ -72,6 +72,9 @@ Then use the Task Scheduler control panel to call wget or cron.</p> <hr />
72
 
73
  <h3>Upgrade Notice</h3>
74
  <dl>
 
 
 
75
  <dt>1.5.0</dt>
76
  <dd>New filter postie_filter_email. Used to map &quot;from&quot; to any other email. Allows custom user mapping.</dd>
77
  <dt>1.4.41</dt>
72
 
73
  <h3>Upgrade Notice</h3>
74
  <dl>
75
+ <dt>1.5.3</dt>
76
+ <dd>Postie can now set the first image in an email to be the &quot;Featured&quot; image. There is a new setting &quot;Use First Image as Featured Image&quot; which is off by default.
77
+ Postie now supports Use Transport Layer Security (TLS)</dd>
78
  <dt>1.5.0</dt>
79
  <dd>New filter postie_filter_email. Used to map &quot;from&quot; to any other email. Allows custom user mapping.</dd>
80
  <dt>1.4.41</dt>
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.2
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -421,6 +421,10 @@ It is also possible to turn the WordPress cron off. Please make sure something l
421
  `define('DISABLE_WP_CRON', true);` is not in your wp-config.php file.
422
  == Upgrade Notice ==
423
 
 
 
 
 
424
  = 1.5.0 =
425
  * New filter postie_filter_email. Used to map "from" to any other email. Allows custom user mapping.
426
 
@@ -439,12 +443,17 @@ All script, style and body tags are stripped from html emails.
439
  Attachments are now processed in the order they were attached.
440
 
441
  == CHANGELOG ==
442
- = 1.5.2 (2013.04.12)
 
 
 
 
 
443
  * Fixed bug in post type/format detection when no valid post type/format was found
444
  * Workaround for WP bug when POP3 account has no waiting messages
445
  * Fixed bug where cron was running postie_check on every page load
446
 
447
- = 1.5.1 (2013.04.10)
448
  * Turned on POP3 debug logging if POSTIE_DEBUG is TRUE.
449
  * Disable autocomplete on some setup fields
450
  * Fixed bug where confirmation emails were not being sent to authors
6
  Tags: e-mail, email
7
  Requires at least: 3.0
8
  Tested up to: 3.5.1
9
+ Stable tag: 1.5.3
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
421
  `define('DISABLE_WP_CRON', true);` is not in your wp-config.php file.
422
  == Upgrade Notice ==
423
 
424
+ = 1.5.3 =
425
+ * Postie can now set the first image in an email to be the "Featured" image. There is a new setting "Use First Image as Featured Image" which is off by default.
426
+ * Postie now supports Use Transport Layer Security (TLS)
427
+
428
  = 1.5.0 =
429
  * New filter postie_filter_email. Used to map "from" to any other email. Allows custom user mapping.
430
 
443
  Attachments are now processed in the order they were attached.
444
 
445
  == CHANGELOG ==
446
+ = 1.5.3 (2013.04.13) =
447
+ * Added support for Featured Images
448
+ * Added support for Use Transport Layer Security (TLS)
449
+ * Updated postie_filter_email filter to get unprocessed email address
450
+
451
+ = 1.5.2 (2013.04.12) =
452
  * Fixed bug in post type/format detection when no valid post type/format was found
453
  * Workaround for WP bug when POP3 account has no waiting messages
454
  * Fixed bug where cron was running postie_check on every page load
455
 
456
+ = 1.5.1 (2013.04.10) =
457
  * Turned on POP3 debug logging if POSTIE_DEBUG is TRUE.
458
  * Disable autocomplete on some setup fields
459
  * Fixed bug where confirmation emails were not being sent to authors