lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

fdm.conf (1217B)


      1 # /etc/fdm.conf example file
      2 # 1. Edit this file
      3 # 2. Test: fdm -vv fetch
      4 # 3. Enable cron job: crontab -e -u _fdm
      5 
      6 set maximum-size      3M
      7 set delete-oversized
      8 set queue-high        1
      9 set queue-low         0
     10 set purge-after       5
     11 set unmatched-mail    keep
     12 
     13 action "drop" drop
     14 action "keep" keep
     15 
     16 action "wakeup" exec "wol -h 192.168.0.255 -p 9 00:11:22:33:44:55"
     17 action "my-test-action" exec "echo \"OK\" > /tmp/fdm.ok"
     18 
     19 # This action extract *.torrent files from incoming email and put it
     20 # to watch-dir your torrect client application
     21 
     22 action "torrent-add" pipe "munpack -f -q -C /your-path/watch-dir/ ; for i in /your-path/watch-dir/*.torrent ; do chmod a+r \$i ; done"
     23 
     24 account "xbmc" disabled
     25         pop3s
     26         server   "pop.yandex.ru"
     27         port     995
     28         user     "username-enter-here"
     29         pass     "password-enter-here"
     30         new-only
     31         cache    "/opt/fdm/cache"
     32 
     33 match "^Subject:[ \t]+openwrt:[ \t]*wakeup[ \t]*$" in headers actions { "wakeup" "drop" }
     34 match "^Subject:[ \t]+openwrt:[ \t]*torrent[ \t]+add[ \t]*\$" in headers actions { "torrent-add" "drop" }
     35 match "^Subject:[ \t]+openwrt:[ \t]*test[ \t]*$" in headers actions { "my-test-action" "drop" }
     36 match all action "keep"