March 30th, 2008 › SK2 - Simple Digest plugin

Current Release: 1.20 (download) - Released on July 6th 2006

Functional Summary
A simple digest email is sent every n hours with a report on the recently caught spam (since last mail basically) much the same as you can see through the Spam Karma 2 plug-in options page. There are also options which enable you to set a threshold below which comments and to allow you to have the digest report sorted by karma rather than cronologically.

Known Issues

  • Link at top of email not always correct. - Fixed in v0.02 Alpha
  • Comment that causes digest report does not get a full report - Fixed in v0.21 Alpha
  • Inital timestamp may not get set correctly
  • Foreach error if no spams since last run - probably when a non spam comment occurs - Hopefully fixed in v0.05 Alpha
  • Link at top of email to spam section of SK2 pages doesn’t work - Fixed ready for next version in v0.951.

Features still to be implemented

  • Option to send digest every n spams rather than every n hours
  • Ability to view the part created current digest.
  • Add links after every comment in digest email to perform following actions:
    • Confirm moderated comment as spam - Added in v0.21 Alpha
    • Recover moderated comment as ok - Added in v0.21 Alpha
    • Delete spam comment from database.
  • Display last comment time next to the last run time in the admin ui - and possibly describe last run time better
  • change karma report format to be like this - Added in v1.0:
    • +0.5 - Link Counter: Comment has no URL in content (but one author URL)
    • Total karma on start of line
  • Optional html report
  • Advanced option to disable detailed karma report
  • Configurable Karma threshold below which comments do not appear in the digest. - Added in v1.0 - thanks to zedrdave for the code :-)

Example Digest Report

There are currently 0 comments in moderation
There have been 2 in the last 1 hours.

Spam summary report:

========================================================
Report on comment number 1 (id=1703)
Comment Author: Maurice
Comment Type: Comment
Comment Content:
-----------------------------------------
meuwfgae erdfcv http://tyghbnqsii.com/

Spam Karma 2 Report:
   -2.50 - Encrypted Payload: Encrypted payload valid: IP not matching.
   -3.32 - Post Age and Activity: Entry posted 2 months, 1 week ago. 0 comments in the past 15 days. Current Karma: -2.5.
   -9.18 - web_UI: Manually confirmed moderations.
========
  -15.00 - Overall Karma
========
Rescue comment from spam: url

Bug reports welcome (Please comment below!)

« This entry is part of a series read the rest: 1, 2, 3, 4, 5, 6, 7 »
Read 28 Comments

28 Comments »

[...] e calming fresh colours I managed to find time to squeeze in an update to the Spam Karma 2 Simple Digest plugin - the changes are small but its worth upgrading to the latest [...]

Pingback by Peter Westwood » SK2 - Simple Digest plugin - Update — 9/6/2005 @ 4:40 pm §

 

[...] A minor update to the SK2 Digest Plugin has been released to fix the following feature -”Link at top of email to spam section of SK2 pages doesn’t work” - current version is 0.951 and is available for download from the SK2 Digest Plugin page. I’m sure DrDave will pull this in to the next Spam Karma 2 release. « This entry is part of a series read the rest: 1, 2, 3, 4 » Comment on this post [...]

Pingback by Peter Westwood » SK2 - Simple Digest plugin - Minor Update — 19/7/2005 @ 8:18 pm §

 

I have been using SK2 for some time now and I am very impressed with it so far but I have never been able to get you plugin to actually email me a digest. Is there anything else that I need to do on my site to get it to work beyond clicking on enable and clicking save? Thanks in advance/ :)

Comment by Brett — 29/7/2005 @ 2:42 am §

 

Brett: Nope that’s all you should need to do.

Note that you will only be sent an email if all of the following are true:

Time since last digest email is great than the number of hours configured - This can be checked in the admin ui where it will say something like: Last run was 5 days, 6 hours ago.
There have been some spam comments to caught by Spam Karma - no spam no digest ;-)

What does it say in your admin ui for the last run time? Do you receive the other emails that WordPress generates (For example to let you know of a new comment. If you have that feature enabled).

Comment by westi — 29/7/2005 @ 8:03 am §

 

It says it was last sent over a month ago but I never recieved a message from the plugin. I recieve the other emails from my WP install just fine so I am not sure why I would not get anything from the plugin itself.

Comment by Brett — 29/7/2005 @ 2:25 pm §

 

[...] A minor update to the SK2 Digest Plugin has been released to fix the following feature - “Links in the digest emails don’t work” - It turns out the admin pages moved between sk2 beta4 and sk2 final. Current version is 0.952 and is available for download from the SK2 Digest Plugin page. « This entry is part of a series read the rest: 1, 2, 3, 4, 5 » Comment on this post [...]

Pingback by Peter Westwood » SK2 - Simple Digest plugin - Another Minor Update — 30/7/2005 @ 8:27 am §

 

Brett: Firstly can you check through the recent SK2 log messages for either of the following messages “Comment would have caused digest but no new spam received since last digest.” or “Last run time in the future - resetting to now”.

Secondly, you can try a manual run of the digest plugin to generate a digest email for all the spam since it last run as follows: Goto Manage » Spam Karma 2 in the WordPress admin pages; Switch to the Recent Spam Harvest page; Tick the checkbox next to the last spam comment; In the dropdown under the filter heading select Simple Digest; Click on the Run selected entries button. This should generate a digest email (or you may get some php error messages which could be why you are not getting any digest emails).

Comment by westi — 30/7/2005 @ 8:39 am §

 

Thank you for a very convenient addition to Spam Karma!

Let me suggest a tiny improvement that I think people will like.

Change line 123 from:
$mail_content .= “Comment Content: \r\n”

to

$mail_content .= “Comment Content:\r\n—————– \r\n”

This way, it’ll be easy to find the text of a potential comment spam in your digest.

Enjoy!

Comment by Lee — 22/10/2005 @ 12:11 am §

 

[...] I am pleased to announce an important update to my Spam Karma 2 Simple Digest plugin - the functional changes are small but its worth upgrading to the latest version as some of them may prove quite useful to you if you suffer from high spam levels. [...]

Pingback by Peter Westwood » SK2 - Simple Digest plugin - Version 1.0 Released — 26/10/2005 @ 10:00 pm §

 

I just recently installed SK2, but I’ve been noticing that the last 5 times or so I receive my digest email, I’m getting multiple copies. It started out with just one or two, but it seems to be getting worse - yesterday it was at least 8 and today it was 16 copies of the same digest sent at the same time. Any idea what’s going on? Have I messed up some settings or is there some other problem?

Comment by Carson — 19/4/2006 @ 12:21 pm §

 

Carson: The only reason I can think for this is the way in which the digest is triggered.

The digest email is triggered when a comment is received and the last digest was long enough ago - however if multiple comments arrive at this time then you can get multiple digest emails as the last digest timestamp is not updated until the end of the digest generation process.

Are you being hit by a lot of spam at the same time?

Comment by westi — 19/4/2006 @ 1:16 pm §

 

http://www.blog.brunet.bn blog have been using SK2 for some time now and I am very impressed with it so far but I just want to know how to delete the spam comments directly when they sent.Is there anything else that I need to do on my setting? Thanks in advance/

Comment by Seemon SIM — 3/6/2006 @ 10:03 am §

 

Seemon SIM: SK2 won’t delete the spam comment straight away. This is to allow you the chance to review them before they are destroyed in case any real comments end up in the spam section. It also uses the spam corpus stored in your database as part of the checking it does on new comments so you don’t want to delete them straight away. You can however set it to delete spam older than a certain number of days so your database doesn’t fill up.

Hope this helps.

Comment by westi — 8/6/2006 @ 9:14 pm §

 

I am having the same issue as CARSON; the multiple versions of the digest email being sent. And the number of copies is going up and up..

Comment by jamie — 5/7/2006 @ 2:00 pm §

 

Jamie are you getting a high volume of spam at the moment with multiple comment spam attempts hitting your blog at the same time?

If this is becoming a large problem I can probably change the logic around recording the last run time to improve the behaviour.

The real crux of the problem is there maybe many comments being submitted at the same time and each of them could cause a digest email to be generated if the time is correct and the first one has not completed and marked the digest as generated. I have some other small updatess in testing and will add an update for this problem and release and updated version soon.

Comment by westi — 5/7/2006 @ 2:25 pm §

 

yes that is correct; there is a high volume of spam hitting at the same time. So that is probably triggering it.

By the way, After I sent that last comment I realised that I hadn’t taken the time to thank you for this super plugin. The copies of the digest email are certainly not as bothersome as the spam would be, and judging fron the SPAM HARVEST I would have been hit with a ton by now.
So, THANK YOU!

Comment by jamie — 5/7/2006 @ 2:36 pm §

 

[...] I am pleased to announce another important update to my Spam Karma 2 Simple Digest plugin - the latest version has some great new features developed on the back of the recent heavy spam runs that I am sure many of you have been suffering. [...]

Pingback by Peter Westwood » SK2 - Simple Digest plugin - Version 1.20 Released — 6/7/2006 @ 7:53 pm §

 

Peter, thanks for writing Simple Digest — it makes the best anti-spam solution even better. I thought I should point out a little buglet though…

I noticed that if SK2 had caught exactly one spam during the report period, then the report would say, “There has been one comment spam caught since the last digest report 1 ago” instead of “…5 days ago”. The bug is in the line after the “//### l10n Add” comment. You could fix it something like this:

$mail_content .= __ngettext("There has been one comment spam caught ", "There have been " . $new_spams . " comment spams caught ", $new_spams, 'sk2');
$mail_content .= "since the last digest report " . sk2_time_since($last_run) ." ago.\r\n";

Thanks again for your work on this plugin.

Comment by Bennett — 16/7/2006 @ 12:39 am §

 

Bennet: Thats for that bug report. I’ll make sure it’s fixed in the next version

Comment by westi — 17/7/2006 @ 8:08 am §

 

Hi, I have a feature request :)

In my case, most spam comments are nicely catched and are under the threshold. So I get a daily mail, saying I have spam, but the mail is empty because they are all under the threshold. Wouldn’t it be handy to have an option to disable the mail sending if they are all under the threshold?

The code change is minor, so I did it on my install, but I think it would be nice to have an option for it in a future version.. What do you think? :)

Comment by mattie — 23/7/2006 @ 11:57 am §

 

Mattie: That feature is already in the latest code and has been in for a while. I wonder what version of the plugin you are running? If there are no spams to report you should just get a log message. Try updating to v1.20 as available above and see if that helps.

Comment by westi — 23/7/2006 @ 3:40 pm §

 

woops.. I’m terribly sorry! Somehow it didn’t occur to me that it was already there in the newer version.. (I guess it’s the heat ;)).

I was indeed using v1.0, the one included in the current SK 2.2.. I upgraded, and see it’s been fixed. Sorry for the silly remark and thanks for the great plugin!

Comment by mattie — 23/7/2006 @ 4:13 pm §

 

I’m not sure why I didn’t notice it earlier (I’ve been away for some time too ;)) but..
With the latest version, I’m still getting mails saying I have spam which are all under the threshold for example:
—————————–

There have been 3 comment spams caught since the last digest report 1 day, 4 hours ago.

Spam summary report (skipping karma under -20):
Summary is ordered by date.

All spams caught recently are under the threshold (go to SK2 Admin screen to see them).

—————————–
So it would be nice if there would be an option to not send mails with empty report? Or I am doing something wrong here? :)

Comment by mattie — 19/8/2006 @ 3:06 pm §

 

mattie it seems you have found a subtle bug in the code which decides wether or not to send a digest email!

It counts the number of spam comments since the last digest email - not the number of spam comments with a karma above the threshold!

I’ll have to fix that and release an updated version ;-)

Comment by westi — 19/8/2006 @ 3:54 pm §

 

ah, that’s nice! :) (in the sense that my remark wasn’t completely useless ;))

looking forward for an update.. ;)

Comment by mattie — 21/8/2006 @ 6:04 pm §

 

Thanks for making the plugin, which works nicely on my blog. I changed the address in my WP User Profile a week or so ago, and the digests are still sent to the previous address. Is there a way to “reset” the password in Simple Digest, or is this likely to be a WP issue instead?

cd

Comment by heycd — 11/11/2006 @ 5:14 pm §

 

cd: The plugin uses the admin email address which is the email address you entered when you originally installed WordPress. This is stored as an option in the wp_options table in the database and is independant of the profile info I believe.

Comment by westi — 14/11/2006 @ 8:55 am §

 

Thank you, found it and changed it. Interesting that other nearby entries can be changed from WP’s interface, such as the blog name and slogan, but not that one. I figured that this had surely surfaced before I ran into it, but guess not.

I love this live comment system by the way. You need to share the recipe…&^)

Comment by cd — 15/11/2006 @ 2:32 am §

 

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

30 queries. 1.293 seconds. Powered by WordPress. This blog is protected by Spam Karma 2: 208535 Spams eaten and counting...