• Is there a way to get WP to stop emailing my own comments back to me? I already know that I have posted a comment and what I have said. Thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • I have notifications filtered into a folder, and the author name could be used as a filter also, with your name being set to be auto-deleted ?

    Thread Starter southsou

    (@southsou)

    podz:
    Thanks. Could you be a little more specific as to how you do this?

    I use Thunderbird.
    All posts from my site have this in the subject line:
    [What makes you happy ?] Comment:
    My filter therefore has this:
    For “incoming messages” where the “Subject” contains “What makes you happy” move to folder “Weblog”
    If I added another filter to that where “Sender” contains “Podz”, and then then changed the destination folder to Trash, all my messages would go there instead.

    Thread Starter southsou

    (@southsou)

    Oh, I thought you were talking about a WP filter, not a local email filter. OK. Thanks again.

    In functions.php change the following line :
    if ('' == $user->user_email) return false; // If there's no email to send the comment to
    to
    if ('' == $user->user_email || $comment->comment_author_email == $user->user_email) return false; // If there's no email to send the comment to
    This will stop WP from sending you a mail if the email address you used when you posted the comment was the same as the email address for the author of the post (which is the address the notification email gets sent to)

    FAQ’d.

    Thread Starter southsou

    (@southsou)

    2fargon:
    Thank you. That’s what I was looking for.

    Thread Starter southsou

    (@southsou)

    2fargon:
    Oops. Tried that substitution. Now all I see is a blank page when I go to my web site or try to use the site admin page.

    Thread Starter southsou

    (@southsou)

    Ugly, but this works for me:
    In wp-comments-post.php, changed the following line:
    if ((get_settings(‘comments_notify’)) && ($approved)) {
    wp_notify_postauthor($comment_ID, ‘comment’);
    to:
    if ((get_settings(‘comments_notify’)) && ($approved) && ($author != ‘xxx’)) {
    wp_notify_postauthor($comment_ID, ‘comment’);
    where xxx (without quotes) is the name I use on my site for my own posts and comments.

    Thread Starter southsou

    (@southsou)

    Left out closing bracket in above post. Should be:
    if ((get_settings(‘comments_notify’)) && ($approved) && ($author != ‘xxx’)) {
    wp_notify_postauthor($comment_ID, ‘comment’);
    }

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Can I prevent WP from emailing my own comments?’ is closed to new replies.