# /etc/fdm.conf example file # 1. Edit this file # 2. Test: fdm -vv fetch # 3. Enable cron job: crontab -e -u _fdm set maximum-size 3M set delete-oversized set queue-high 1 set queue-low 0 set purge-after 5 set unmatched-mail keep action "drop" drop action "keep" keep action "wakeup" exec "wol -h 192.168.0.255 -p 9 00:11:22:33:44:55" action "my-test-action" exec "echo \"OK\" > /tmp/fdm.ok" # This action extract *.torrent files from incoming email and put it # to watch-dir your torrect client application 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" account "xbmc" disabled pop3s server "pop.yandex.ru" port 995 user "username-enter-here" pass "password-enter-here" new-only cache "/opt/fdm/cache" match "^Subject:[ \t]+openwrt:[ \t]*wakeup[ \t]*$" in headers actions { "wakeup" "drop" } match "^Subject:[ \t]+openwrt:[ \t]*torrent[ \t]+add[ \t]*\$" in headers actions { "torrent-add" "drop" } match "^Subject:[ \t]+openwrt:[ \t]*test[ \t]*$" in headers actions { "my-test-action" "drop" } match all action "keep"