JB's Homepage

One man on one island.

Teh Awesome

Comments

Started using Wordpress two days ago, and have decided that it’s a
pretty clean system.

I like it so much that I decided to dust off my PHP monkey hat and try
my hand at enhancing the email posting feature. What I have been able
to come up with is in my opinion pretty funky.

Greg Schandl 1.tiff
As my mate Greg demonstrates above, I’ve been able to code a mime
supported wp-mail.php that happily accepts inline photos attachments
and wacks them on the blog. Just what the doctor order for lazy people
like myself who hate CMS’s.

Whilst I was at it I also added a little regex that allows you to mail
what category you want the article to post to, instead of just always
defaulting to ‘general’.

That’s not all, I’m planning on a few more features to this little
script that will check my GPG signature to see if who is sent the
article is actually that person. Not that I’m really parinoid but I
suppose most Americans would get a kick out of that.

At the moment it only does image attachments (pretty much anything you
can send as an image in your email client, it will handle) – so later
I’ll add other attachments like PDF and so on.

Written by JB Hewitt

June 10th, 2004 at 2:46 pm

Posted in General

Viewing 21 Comments

 
close Reblog this comment
blog comments powered by Disqus