blog moved to Posterous

It's been a long time since I've written anything on here. Maybe that's because the blog was running on a really old Drupal 4.7 installation and I didn't feel like updating it. Last week I finally bit the bullet and migrated the blog to Posterous. I like Posterous because of their clean interface and easy to use e-mail posting capabilities. Their handling of post attachments is also really smart; organizing images into galleries, previewing PDFs using Scribd, etc.

Unfortunately Posterous does not have direct import functionality for Drupal, but they do have an easy to use API. I threw together a quick PHP script that reads blog posts and comments from my old Drupal 4.7 blog and imports them into Posterous. I've attached the script to this post since it might be useful to someone else. One thing to note is that the script does not preserve post formatting, so you will have to reformat your posts once imported into Posterous. That's because Drupal does not store the filtered content in the database. I didn't have very many posts, so this wasn't a big deal, but if you are importing lots of posts then you probably want to modify the script to filter the content and add HTML formatting before sending it to Posterous.

Click here to download:
import-drupal-to-posterous.php (3 KB)