Currently, TinyTinyRSS can use raw SQL or the Sphinx search engine
for searching. It would be nice if other search engines (such as
Xapian) could be used, or if features of the underlying SQL engine
(such as MySQL's FULLTEXT indexes) could be leveraged. This commit
makes searching into a plugin hook, falling back to the builtin behavior
if no search plugin is active. The Sphinx search behavior has been
broken out into a plugin.
classes/trssmailer.php - Created class TTRSS mailer which extends phpmailer and sets the default mail settings upon instantiation. Class includes quickmail function that allows for a quick email send with no extra configurion necessary.
Changes:
config.php-dist - Added the smtp port option
include/digest.php - Converted it to use the new ttrrssmailer class
include/sanity_config.php - Added the smtp port option to the sanity check
plugins/mail/init.php - Modified to use ttrssmailer class. This particular configuration shows a hybrid use case.
register.php = Modified to use ttrssmailer class.
All code was tested and functioned on my local machine.