tresni / freenas-rss-extension

Automatically exported from code.google.com/p/freenas-rss-extension
0 stars 0 forks source link

Email with info on automatically added torrents. #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What would you like to see added/changed?
Option to send a Email  with the torrent that has been added when adding from 
RSS automatically.

How would this improve your experience? What is the benefit of your
suggestion?
Knowing when your at work or out and about when and what torrents are added is 
handy and serious geek-cred!

Please provide any additional information below.
Ive taken some PHP classes from a FreeNAS disk-notifier script and modded in 
email support for myself.  With these two PHP classes (class.phpgmailer.php and 
class.smtp.php) it was reasonably easy to mod in a email into rss_cron.php 
(line 136)
Im happy to share this code however im sure youll rather work it into a future 
version properly.

Original issue reported on code.google.com by durandal...@gmail.com on 27 Jun 2010 at 12:47

GoogleCodeExporter commented 9 years ago
You should attach a patch file for what you did.  While I may add this in the 
future, it's definitely not my focus at the moment.

Did you try using the PHP mail() function instead of the classes?

Original comment by tre...@gmail.com on 28 Jun 2010 at 8:12

GoogleCodeExporter commented 9 years ago
Thanks,

I think over the weekend if i get a chance I'll write it using the PHP mail() 
function and attach here a patch file for it.  It should be easy enough to slot 
in without disturbing the existing code, so its likely just as easy to keep it 
as a separate patch for the time being.

Original comment by durandal...@gmail.com on 29 Jun 2010 at 11:33

GoogleCodeExporter commented 9 years ago
Ive re-done the email patch using FreeNAS's email module.  Its now tied into 
the email settings set up in FreeNAS's email notification page.

This means when a torrent is added, a email is sent to the email address in the 
system notification page.  Ive written it to handle single and multiple 
torrents per run.

Patch is a single file patch and should be run by:

Copy patch into the 'sys' folder of where RSS is installed (i.e. 
/mnt/your_hdd_here/location_of_rss_script/sys/)
Log in via SSH, CD to the 'sys' directory and run 'patch rss_cron.sh < 
rss_email.patch'

No further setup required, script should email you every time it adds a Torrent 
now.

Original comment by durandal...@gmail.com on 3 Jul 2010 at 11:47

Attachments:

GoogleCodeExporter commented 9 years ago
Very nicely done.  I am going to modify slightly (to use a single array instead 
of 2 separate variables), but that's the only thing I can think of off the 
cuff.  This will be added to trunk with my next update.

Original comment by tre...@gmail.com on 6 Jul 2010 at 5:30

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r94.

Original comment by tre...@gmail.com on 31 Jul 2010 at 6:54