You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.2 KiB

  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. set maximum-size 3M
  6. set delete-oversized
  7. set queue-high 1
  8. set queue-low 0
  9. set purge-after 5
  10. set unmatched-mail keep
  11. action "drop" drop
  12. action "keep" keep
  13. action "wakeup" exec "wol -h 192.168.0.255 -p 9 00:11:22:33:44:55"
  14. action "my-test-action" exec "echo \"OK\" > /tmp/fdm.ok"
  15. # This action extract *.torrent files from incoming email and put it
  16. # to watch-dir your torrect client application
  17. 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"
  18. account "xbmc" disabled
  19. pop3s
  20. server "pop.yandex.ru"
  21. port 995
  22. user "username-enter-here"
  23. pass "password-enter-here"
  24. new-only
  25. cache "/opt/fdm/cache"
  26. match "^Subject:[ \t]+openwrt:[ \t]*wakeup[ \t]*$" in headers actions { "wakeup" "drop" }
  27. match "^Subject:[ \t]+openwrt:[ \t]*torrent[ \t]+add[ \t]*\$" in headers actions { "torrent-add" "drop" }
  28. match "^Subject:[ \t]+openwrt:[ \t]*test[ \t]*$" in headers actions { "my-test-action" "drop" }
  29. match all action "keep"