Post By Email Weekly Update

I’ve spent the past week converting the Post By Email plugin into proper OOP form, trying to incorporate the best practices for plugins as well as the WP coding standards (from which I learned a few things… like why you’d want to leave the end tag out of PHP files!).  I cribbed a lot from Tom McFarlin’s WordPress Plugin Boilerplate.

On activation, the plugin now copies the global Post By Email options into its local settings and hides those settings from Settings->Writing.  There’s also an options page that uses the Settings API.

Hilariously (and illustrating the dire need for an upgrade), I’m having a hard time figuring out how to test this; it turns out it’s actually quite difficult to find a free email provider that still does unsecured POP.  Suggestions?  I might have to add SSL support just to be able to retrieve any emails.

Anyhow, I’m calling this version 0.9, with 1.0 being all the functionality from core (nothing extra yet).  Once I upgrade it to a full 1.0 version, I’ll post installation instructions here so the curious can try it out and tell me what breaks.

Next steps:

  • Show log info on plugin options page  (e.g. “Last checked at 2:15pm, 1 message posted.”)
  • Find an email account to test with (or just add SSL?)
  • Add a “check mail now” button on the options page