Well, here's the guts of it:
function mg_notify_admin($post_id) {
$post = &get_post($post_id);
$keyword = strtok($post->post_title, ' ');
if (strstr('POST DONE', $keyword)) {
$post_title = substr($post->post_title, strlen($keyword) + 1);
$first_name = get_usermeta($post->post_author, 'first_name');
$last_name = get_usermeta($post->post_author, 'last_name');
$message = "A post has been submitted for moderation.\n"
. "Author: $first_name $last_name \n"
. "Title: $post_title";
wp_mail(get_option('admin_email'), 'Moderation notification',
$message);
}
}
add_action('save_post', 'mg_notify_admin');
(Sorry, can't get indents to display correctly.)
This will fire any time a post is saved and the first word of the title is either 'POST' or 'DONE'. An email will be sent to the site admin letting them know that the post is there. The admin can then log in, edit the post, remove 'POST', and publish.
Note also that this only emails the main site admin. This could be modified to loop through the list of users and notify any user with the publish_posts capability (or other specified criteria).
Aaron.