diff options
author | Dmitry V. Zimin <pfzim@mail.ru> | 2014-11-20 17:41:03 +0300 |
---|---|---|
committer | Dmitry V. Zimin <pfzim@mail.ru> | 2014-11-20 17:41:03 +0300 |
commit | c400fe3b09a0f7b6da0fd46de47319e13316633d (patch) | |
tree | 981a5cedffb1a27071a65c47c4f1345b64a811af /mail/fdm/files | |
parent | c950f48e7aa22f1903ec6a9b233c577b0fbba3fc (diff) |
fdm: new package added
Signed-off-by: Dmitry V. Zimin <pfzim@mail.ru>
Diffstat (limited to 'mail/fdm/files')
-rw-r--r-- | mail/fdm/files/etc/fdm.conf | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/mail/fdm/files/etc/fdm.conf b/mail/fdm/files/etc/fdm.conf new file mode 100644 index 000000000..56c9db487 --- /dev/null +++ b/mail/fdm/files/etc/fdm.conf @@ -0,0 +1,36 @@ +# /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" |