Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.08 KB

README.md

File metadata and controls

37 lines (29 loc) · 1.08 KB

smf-mailer

This is a simple JavaScript Node.js program that is intended to be run periodically (cron) to monitor the Recent Posts page(s) of a Simple Machines Forum (SMF) and email all new articles discovered.

NB The main branch has been updated to work with SMF 2.1.x. If using SMF 2.0.x, use the version of this script tagged V2.0.0.

History

This was originally written in CoffeeScript but has been Decaffeinated to modern JavaScript. And then later converted to use async/await. It checked the RSS feeds for new messages, but from Version 4 it was rewritten to use the Recent Posts page(s).

The trade-off between the two methods is that Recent Posts gives you the messages in one or two page fetches, but there is no indication of message attachments. The RSS feed method allows complete message and attachment access, but at the expense of more http round-trips and server load (which caused problems with HostPapa hosting).

License

MIT