Saturday, 12 November 2005
Upgrade of blojsom and PostMailerPlugin
« Languages and Superfluous | Main | Stakhanov, Wikipedia and stranger languages »I upgraded blojsom to version 2.27. Everything went well except of a misunderstanding with TinyMCE templates.
Writing a new post, I noticed that my policies' configuration was excessively restrictive, unless one doesn't need trackbacks :-P . If it isn't the case, it's better to allow every outwards connection:
permission java.net.SocketPermission "*", "connect";
I've slighty adjusted the PostMailerPlugin too:
- cleaned the code,
- added a configurable parameter to specify a list of recipients for the sent emails,
- more important, now I've put here, as well as source code and sample configuration file, a jar file with the precompiled class.
Howto
- copy
blojsom-postmailer.jar
toWEB-INF/lib
, - in your global
/WEB-INF/plugin.properties
file, add the following line:
postmailer=org.blojsom.plugin.postmailer.PostMailerPlugin
- create in
/WEB-INF/(blog-id)
a configuration file namedpostmailer.properties
(you can specify a different name in/WEB-INF/web.xml
). In the sample configuration file you find some documentation about configurable parameters.
2005-Dec-05 CET: update.
Posted by blojsom/
at 3:38 PM CET in
Comments on this entry:
I've followed your instructions for installing postmailer and restarted blojsom. The logs say that it loaded postmailer. However, I am not getting it to send mail to me.
Does postmailer depend on sendmail, or some other item that I don't have installed? This is on a stock Mac OS X Server 10.4.3 box.
PostMailerPlugin uses blojsom SendEmailPlugin to send email, it's the same component that sends email for new comments and trackbacks. Do these features work?