1 # /etc/fdm.conf example file
3 # 2. Test: fdm -vv fetch
4 # 3. Enable cron job: crontab -e -u _fdm
11 set unmatched-mail keep
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"
19 # This action extract *.torrent files from incoming email and put it
20 # to watch-dir your torrect client application
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"
24 account "xbmc" disabled
26 server "pop.yandex.ru"
28 user "username-enter-here"
29 pass "password-enter-here"
31 cache "/opt/fdm/cache"
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"