You are not logged in.
Procmail and Fetchmail are officially not worth my time.
pacman -Sy fdm
Once you get it installed, you'll find example configurations in /etc/fdm/examples . Look them over then start up your own at ~/.fdm.conf
Once you think you have a decent config set up, run fdm as so:
fdm -vvvvnf ~/.fdm.conf
This will let you test you config for syntax errors before you go messing up your mail. Once you have it passing for syntax, run
fdm -vvvva <myaccountname> poll
and see if it can check your mailservers ok.
Finally, add
fdm -vvvla <myaccount1> -a <myaccount2> fetch
to your crontab with
crontab -e
BE HAPPY.
Here is my config for an example:
# ~/.fdm.conf
#
# Copyright Jeff Mickey <jeff>
#
# The following strings are replaced in pipe commands and maildir/mbox
# paths:
# %a: account name
# %s: account-specific string
# %h: user's home directory
# %n: user's uid
# %t: action name if performing action
# %u: name of user
# %H: current hour (00-23)
# %M: current minute (00-59)
# %S: current second (00-59)
# %d: current day of the month (00-31)
# %m: current month (01-12)
# %y: current year
# %W: current day of the week (0-6, Sunday is 0)
# %Y: current day of the year (000-365)
# %Q: current quarter (1-4)
# Default locations for root level mailboxes and mailing lists
$mail = "%h/.mail"
$list_mail = "${mail}/lists"
action "drop" drop
# mailboxen
action "inbox" maildir "${mail}/default"
action "spam" maildir "${mail}/spam"
# Mailing Lists
action "l-arch" maildir "${list_mail}/arch"
action "l-arch-dev" maildir "${list_mail}/arch-dev"
action "l-arch-tur" maildir "${list_mail}/arch-tur"
action "l-gtd" maildir "${list_mail}/gtd"
action "l-gtd-ana" maildir "${list_mail}/gtd-ana"
action "l-gtd_palm" maildir "${list_mail}/gtd_palm"
action "l-ion" maildir "${list_mail}/ion"
action "l-pacman-dev" maildir "${list_mail}/pacman-dev"
action "l-vim-dev" maildir "${list_mail}/vim-dev"
action "l-zsh" maildir "${list_mail}/zsh"
# My mail accounts ( right now everything is forwarded to gmail for spam-filtering that is above and beyond.
account "home" pop3s server "pop.your.mom" port 995 user "i.like@your.mom" pass "sexytime"
# Mail matching and sorting rules
# spam away!
match "^X-Spam-Status: Yes" in headers action "spam"
# move files that have *.exe to spam as well
match attachment any-name "*.exe" action "spam"
# mailing lists
match "^To:.*Getting_Things_Done@yahoogroups.com" in headers action "l-gtd"
match "^To:.*AnalogGTD@yahoogroups.com" in headers action "l-gtd-ana"
match "^To:.*GtD_Palm@yahoogroups.com" in headers action "l-gtd_palm"
match "^To:.*arch@archlinux.org" in headers action "l-arch"
match "^To:.*tur-users@archlinux.org" in headers action "l-arch-tur"
match "^To:.*arch-dev@archlinux.org" in headers action "l-arch-dev"
match "^To:.*pacman-dev@archlinux.org" in headers action "l-pacman-dev"
match "^To:.*ion-general" in headers action "l-ion"
match "^To:.*vim-dev@vim.org" in headers action "l-vim-dev"
match "^To:.*zsh-(workers|users)@sunsite.dk" in headers action "l-zsh"
match all action "inbox"
Offline
Offline
Thanks, it's helpful.
Offline