1.5.3 Released

  • Added support for Featured Images
  • Added support for Use Transport Layer Security (TLS)
  • Updated postie_filter_email filter to get unprocessed email address

1.5.2 Released

  • Fixed bug in post type/format detection when no valid post type/format was found
  • Workaround for WP bug when POP3 account has no waiting messages
  • Fixed bug where cron was running postie_check on every page load

1.5.1 Released

  • Turned on POP3 debug logging if POSTIE_DEBUG is TRUE.
  • Disable autocomplete on some setup fields
  • Fixed bug where confirmation emails were not being sent to authors
  • Fixed bug where post were not saved if the default admin user didn’t exist and the from user was not a WordPress user

Fatal error: Out of memory

If Postie isn’t working right and you see “Fatal error: Out of memory…” in your logs it is time to increase how much memory PHP allocates to WordPress.

By default 40Mb is allocated.

To change your memory open up your wp-config.php file and add one of the following settings

Increase PHP Memory to 64MB

define('WP_MEMORY_LIMIT', '64M');

Increase PHP Memory to 96MB

define('WP_MEMORY_LIMIT', '96M');

Please note, this setting may not work if your host does not allow for increasing the PHP memory limit–in that event, contact your host to increase the PHP memory limit. Also, note that many hosts set the PHP limit at 8MB.

1.5.0 Released

  • Apply Postie Time Correction to date: command
  • Add support for Post Formats
  • Add support for Post Status
  • Add warning if Admin username is invalid
  • Fixed bug where date: was not always being detected in html emails
  • Improved handling of attachments and mapping to file extensions for template selection
  • Video templates now include scale=”tofit”
  • Add support for older png mime type
  • New filter postie_filter_email. Used to map “from” to any other email. Allows custom user mapping.

Supporting WebP

WebP is a new image format being promoted by Google.

By default WordPress (and therefor Postie) doesn’t support WebP images attached to emails. However, it is quite easy to add support.

First add WebP support to WordPress by installing the wp-webp plugin.

The second step is to ensure your web server is sending the correct MIME type for *.webp images (image/webp). A little Googling will explain how to check/add MIME types for your server. If you are using shared hosting contact your hoster to see if it is set up correctly.

Version 1.5 is here

Since taking over Postie 6 months ago my goal has been to stabilize the product and make sure all the support questions got answered.

Version 1.5 is the start of new features which have been a long time coming. Without further adieu here is what is part of 1.5:

  • Setting the Post Format
  • Setting the Post Status
  • Additional filter (postie_filter_email) for Postie plugins
  • Better attachment handling
  • Featured image support
  • Additional preferences
  • Better comment handling

Filter: postie_post_before

This filter is called just before Postie saves the post.

At the point the filter is called a placeholder post has been created, but it doesn’t have any content. All the attachments have been uploaded and associated with this post.

Parameters:

  • $post
  • $headers (available starting at version 1.7.28)

The $post parameter is an array describing the post extracted from the email.

Essentially any field described here can show up.

You may modify any of the array elements.

The $headers parameter is an array of email headers. Note that this will vary depending on where the email came from. You can get a sense of what is possible here: https://tools.ietf.org/html/rfc2076

You must return the $post array from your function. You may return null to prevent the post from being saved.

Example without headers

add_filter('postie_post_before', 'my_postie_post_before');

function my_postie_post_before($post) {
    //Do something
    return $post;
}

Example with headers

add_filter('postie_post_before', 'my_postie_post_before', 10, 2);

function my_postie_post_before($post, $headers) {
    //Do something
    return $post;
}
Array index Notes
post_author the WordPress user that is the author of the post.
post_date the localized date of the post.
post_date_gmt the GMT/UMT date of the post.
post_content the actual content of the post.
post_title the post title (email subject line).
post_name the sanitized post title.
post_excerpt the post excerpt.
ID the post id.
post_status the post status.
post_category an array of category IDs
ping_status
comment_status
post_type

Note that if Postie detects a email reply it will add a comment to the original post and the data in the array will be as follows:

comment_author
comment_post_ID
comment_author_email
comment_date
comment_date_gmt
comment_content
comment_author_url
comment_author_IP
comment_approved
comment_agent
comment_type
comment_parent
user_id

See this for more details.

Postie & WP Super Cache

Some users have reported that Postie stops checking mail when WP Super Cache is installed.

You can fix this by adding “wp-content/plugins/postie/get_mail.php” to W3TC “Never cache the following pages” on the “Page Cache Settings tab”