// A TEXT VERSION OF THE ORIGINAL PAGE LOCATED AT http://www.cateandmichael.com/forums/viewforum.php?f=5 // WHICH ACCOMPANIED THE RELEASE OF MICHAEL AND CATE'S "MTpop2blog" MOBLOGGING SCRIPT Posted: Fri Aug 13, 2004 10:33 pm Post subject: MTpop2blog 'How To' and download -------------------------------------------------------------------------------- MTpop2blog is a simple perl script that MoveableType users can install on their server that will allow entries to be posted from any email account. This allows the user more flexibility in posting, as any email enabled device can post to the weblog (such as mobile phones). MTpop2blog has the following features: - support for 3gp video - insertion of entry into a specific (one) category. - multiple senders can send to mail box. - multiple emails can be processed at once. - multiple Blog Authors (based on sender). - text, images and video can be included in the email, in any order. - text, images and video submitted in the order received in the email. - configurable thumbnail and popup image dimensions. - creation of thumbnails of size specified and included in entry. - creation of larger popup of images linked to the thumbnails. - uses Image::Magick for image resizing. How to: 1: Set up a new mail account on your server (like MTpop2blog@yourdomain.com). 2: Upload MTpop2blog to your webserver. 3: Upload videothumb.jpg to your webserver. 4: Configure MTpop2blog with your MT, mail, and path settings. 5: Uncomment the lines that allow you to debug from the browser. 6: Send a dummy email and navigate in your browser to the location of MTpop2blog. 7: Rerun script in browser until all perl dependencies satisfied. 8: Check that entry successfully submits to weblog. 9: Re-comment the lines that allow you to debug from the browser. 10: Include MTpop2blog in your server's cron job (if your provider does not allow this (like mine), try pseudo-cron). Examples: MTpop2blog by default is configured to exactly match the entry format to suit my website (www.cateandmichael.com), so any entry you view there is an example of what a MTpop2blog entry will look like (I now do most of my entries via multiple MTpop2blog entries configured to support multiple categories). Thanks to: - Charlie Reitsma (www.bixworld.com), original Perl version of pop2blog. - Robert Turenne (www.cogev.com), modifications of Charlie's script. Support: - All support related posts must be posted to the MTpop2blog support forum. DO NOT reply to this post with support requests. - I will not provide support for perl dependencies - this is up to you. - I will provide some support where and when I can for helping you to configure the script to support your weblog. Change Log: V2.00: - Supports 3gp video V1.04: - Improved code to handle strange characters in title (thanks Oscar for that). - Script now runs on both Unix and Windoze systems Note: MIME::Words support now required. V1.03: - Fixed situation where some images would get coded with

in between each image when there shouldn't have been. Images now only have one space between them. V1.02: - Made change to allow MTpop2blog.pl script to be placed in any directory independent of other web server paths (ie all use of path statements are now full paths, not relative ones) - Improved cleaning of spaces and carriage returns at beginning and end of email text sections V1.01: - Fixed "Illegal division by zero" error. Download: - MTpop2blog.zip Debugging version: (Note: This version can be executed directly from the browser URL, and prints out the Subject, text (before and after cleaning), and image indicator) - MTpop2blog_debug.zip Last edited by Michael on Tue Sep 07, 2004 6:35 pm; edited 4 times in total