Re: Akismet PyBlosxom Plugin
"Benj. Mako Hill" <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
<quote who="Michael Olson" date="Wed, Oct 25, 2006 at 08:23:09PM -0400"> > > I've built a new version of the Akismet plugin that incorporates > > both my work and Blake's. As Michael Olson's has suggested, I've > > also included a command-line program that can be run locally and > > that can parse and submit spam comments to the Akismet server. > > Cool. I've made an additional script based on that one that is able > to parse the emailed version of the comment, rather than the raw > comment. I need this because logging into the server that hosts my > blog is rather tedious. You're welcome to add this to the > akismet_comments package if you like. There might be an easier way. For example, you could pipe your emails to the command like: grep -e '^Comment location: '|colrm 1 18|xargs /mypath/scripts/akismet_submit_spam.py -d Or, if you read your email on one computer and have your PyBlosxom setup on another, you could just run: grep -e '^Comment location: '|colrm 1 18|xargs ssh myhost /mypath/scripts/akismet_submit_spam.py -d You could even make a little shell script called "remove_blogspam" containing the code above that you pipe said commands to. If you don't mind, I'd rather include that one-line shellscript than the whole second program. Seems easier than maintaining two overlapping and almost identical scripts. Also, there are a few pieces of information (e.g., the IP) that are in every comment file but not included in the email. I hope that helps! Regards, Mako -- Benjamin Mako Hill [email protected] http://mako.cc/ Creativity can be a social contribution, but only in so far as society is free to use the results. --RMS ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ pyblosxom-users mailing list pyblosxom-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/pyblosxom-users
signature.asc
(application/pgp-signature, 191 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFFQMiIic1LIWB1WeYRAjeEAKCHqoGY3JK0BV5zw5Qbnc7HO0ZP3ACfRncf UXADonQugAXpv3IibZFxT3c= =UgRm -----END PGP SIGNATURE-----