## FolderHooks

# If you set folder settings with a hook and later on go back to a
# default folder the settings will not be restored. That's why all
# default folder settings that are changed elsewhere have to be (re)set
# here.

# Be very precise with spaces and tab-stops here. I had a tabstop in the
# wrong place and I was looking for hours to find the invissible error.
# If you use vi you can make them visible. See dot-vimrc_ideas.

# The general formula is:
#   folder-hook folder 'command ; command ; \
#			command'

folder-hook . \
	'set sort=threads ;\
 	push P ;\
	unscore * ;\
	unset score ;\
	bind index r reply ;\
	bind pager r reply ;\
	bind index m mail ;\
	bind pager m mail ;\
	set pager_index_lines=0 ;\
	ignore * ;\
	unignore From: To: Date: Subject: Cc: Bcc: ;\
	set index_format="%3C %Z %[%b %d %H:%M] - %-22.22L (%3l) %s" ;\
	set sendmail="/var/qmail/bin/sendmail -oem -oi" ;\
        set weed=yes ;\
	my_hdr From: Remco B. Brink <remco@rc6.org>'

send-hook . 'set signature=~/.signature'

folder-hook inbox \
	'set reverse_name'

# The output from the folder posted looks a bit different. Obvious no?
folder-hook posted 'set index_format="%3C %Z %[%b %d %H:%M] - %-22.22t (%3l) %s"'

# This nifty line marks all messages from arpwatch starting with new for
# deletion. And gives the other messages a color. What do you mean bloated?
folder-hook arpwatch \
	set sort=subject ;\
	set score ;\
	score ~snew?station* =1 ;\
	score ~snew?activity* =2 ;\
	score ~schanged* =3 ;\
	score ~sflip* =4 ;\
	set score_threshold_delete =1

# Mailinglists: Also check dot-procmailrc

# To avoid al confusion. Now we have to use the list-reply function. This is
# to avoid that we reply to the mailer himself by accident.

set ignore_list_reply_to

subscribe   drupal-devel@drupal.org
folder-hook drupal-devel \
	'set index_format="%Z %[%d %b %H:%M]  %-60.60s  %35.35F" ;\
	ignore * ;\
	set pager_index_lines=8 ;\
	bind index r list-reply ;\
	bind pager r list-reply ;\
	macro pager m <mail>drupal-devel@drupal.org ;\
	macro index m <mail>drupal-devel@drupal.org ;\
	set score ;\
	score ~d>4d 1 ;\
	score ~d<4d 10 ;\
	set score_threshold_delete=1'

subscribe   efn-listen@ifi.uio.no
folder-hook efn-listen@ifi.uio.no \
	'set index_format="%Z %[%d %b %H:%M]  %-60.60s  %35.35F" ;\
	ignore * ;\
	set pager_index_lines=8 ;\
	bind index r list-reply ;\
	bind pager r list-reply ;\
	macro pager m <mail>efn-listen@ifi.uio.no ;\
	macro index m <mail>efn-listen@ifi.uio.no ;\
	set score ;\
	score ~d>4d 1 ;\
	score ~d<4d 10 ;\
	set score_threshold_delete=1'

subscribe   focus-linux@securityfocus.com
folder-hook focus-linux@securityfocus.com \
	'set index_format="%Z %[%d %b %H:%M]  %-60.60s  %35.35F" ;\
	ignore * ;\
	set pager_index_lines=8 ;\
	bind index r list-reply ;\
	bind pager r list-reply ;\
	macro pager m <mail>focus-linux@securityfocus.com ;\
	macro index m <mail>focus-linux@securityfocus.com ;\
	set score ;\
	score ~d>4d 1 ;\
	score ~d<4d 10 ;\
	set score_threshold_delete=1'

subscribe   freshmeat-news@freshmeat.net
folder-hook freshmeat-news@freshmeat.net \
	'set index_format="%Z %[%d %b %H:%M]  %-60.60s  %35.35F" ;\
	ignore * ;\
	set pager_index_lines=8 ;\
	bind index r list-reply ;\
	bind pager r list-reply ;\
	macro pager m <mail>freshmeat-news@freshmeat.net ;\
	macro index m <mail>freshmeat-news@freshmeat.net ;\
	set score ;\
	score ~d>4d 1 ;\
	score ~d<4d 10 ;\
	set score_threshold_delete=1'

subscribe   incidents@securityfocus.com
folder-hook incidents@securityfocus.com \
	'set index_format="%Z %[%d %b %H:%M]  %-60.60s  %35.35F" ;\
	ignore * ;\
	set pager_index_lines=8 ;\
	bind index r list-reply ;\
	bind pager r list-reply ;\
	macro pager m <mail>incidents@securityfocus.com ;\
	macro index m <mail>incidents@securityfocus.com ;\
	set score ;\
	score ~d>4d 1 ;\
	score ~d<4d 10 ;\
	set score_threshold_delete=1'

subscribe   ip@v2.listbox.com
folder-hook ip@v2.listbox.com \
	'set index_format="%Z %[%d %b %H:%M]  %-60.60s  %35.35F" ;\
	ignore * ;\
	set pager_index_lines=8 ;\
	bind index r list-reply ;\
	bind pager r list-reply ;\
	macro pager m <mail>ip@v2.listbox.com ;\
	macro index m <mail>ip@v2.listbox.com ;\
	set score ;\
	score ~d>4d 1 ;\
	score ~d<4d 10 ;\
	set score_threshold_delete=1'

subscribe   isn@attrition.org
folder-hook isn@attrition.org \
	'set index_format="%Z %[%d %b %H:%M]  %-60.60s  %35.35F" ;\
	ignore * ;\
	set pager_index_lines=8 ;\
	bind index r list-reply ;\
	bind pager r list-reply ;\
	macro pager m <mail>isn@attrition.org ;\
	macro index m <mail>isn@attrition.org ;\
	set score ;\
	score ~d>4d 1 ;\
	score ~d<4d 10 ;\
	set score_threshold_delete=1'

subscribe   jadmin@jabber.org
folder-hook jadmin@jabber.org \
	'set index_format="%Z %[%d %b %H:%M]  %-60.60s  %35.35F" ;\
	ignore * ;\
	set pager_index_lines=8 ;\
	bind index r list-reply ;\
	bind pager r list-reply ;\
	macro pager m <mail>jadmin@jabber.org ;\
	macro index m <mail>jadmin@jabber.org ;\
	set score ;\
	score ~d>4d 1 ;\
	score ~d<4d 10 ;\
	set score_threshold_delete=1'

subscribe   redaksjonen@nattguiden.no
folder-hook redaksjonen@nattguiden.no \
	'set index_format="%Z %[%d %b %H:%M]  %-60.60s  %35.35F" ;\
	ignore * ;\
	set pager_index_lines=8 ;\
	bind index r list-reply ;\
	bind pager r list-reply ;\
	macro pager m <mail>redaksjonen@nattguiden.no ;\
	macro index m <mail>redaksjonen@nattguiden.no ;\
	set score ;\
	score ~d>4d 1 ;\
	score ~d<4d 10 ;\
	set score_threshold_delete=1'

subscribe   techcrew@nattguiden.no
folder-hook techcrew@nattguiden.no \
	'set index_format="%Z %[%d %b %H:%M]  %-60.60s  %35.35F" ;\
	ignore * ;\
	set pager_index_lines=8 ;\
	bind index r list-reply ;\
	bind pager r list-reply ;\
	macro pager m <mail>techcrew@nattguiden.no ;\
	macro index m <mail>techcrew@nattguiden.no ;\
	set score ;\
	score ~d>4d 1 ;\
	score ~d<4d 10 ;\
	set score_threshold_delete=1'

subscribe   oslo@pm.org
folder-hook oslo@pm.org \
	'set index_format="%Z %[%d %b %H:%M]  %-60.60s  %35.35F" ;\
	ignore * ;\
	set pager_index_lines=8 ;\
	bind index r list-reply ;\
	bind pager r list-reply ;\
	macro pager m <mail>oslo@pm.org ;\
	macro index m <mail>oslo@pm.org ;\
	set score ;\
	score ~d>4d 1 ;\
	score ~d<4d 10 ;\
	set score_threshold_delete=1'

subscribe   politech@politechbot.com
folder-hook politech@politechbot.com \
	'set index_format="%Z %[%d %b %H:%M]  %-60.60s  %35.35F" ;\
	ignore * ;\
	set pager_index_lines=8 ;\
	bind index r list-reply ;\
	bind pager r list-reply ;\
	macro pager m <mail>politech@politechbot.com ;\
	macro index m <mail>politech@politechbot.com ;\
	set score ;\
	score ~d>4d 1 ;\
	score ~d<4d 10 ;\
	set score_threshold_delete=1'

subscribe   politi@oslocity.org
folder-hook politi@oslocity.org \
	'set index_format="%Z %[%d %b %H:%M]  %-60.60s  %35.35F" ;\
	ignore * ;\
	set pager_index_lines=8 ;\
	bind index r list-reply ;\
	bind pager r list-reply ;\
	macro pager m <mail>politi@oslocity.org ;\
	macro index m <mail>politi@oslicity.org ;\
	set score ;\
	score ~d>4d 1 ;\
	score ~d<4d 10 ;\
	set score_threshold_delete=1'

subscribe   mixfreaks@yahoogroups.org
folder-hook mixfreaks@yahoogroups.org \
	'set index_format="%Z %[%d %b %H:%M]  %-60.60s  %35.35F" ;\
	ignore * ;\
	set pager_index_lines=8 ;\
	bind index r list-reply ;\
	bind pager r list-reply ;\
	macro pager m <mail>mixfreaks@yahoogroups.org ;\
	macro index m <mail>mixfreaks@yahoogroups.org ;\
	set score ;\
	score ~d>4d 1 ;\
	score ~d<4d 10 ;\
	set score_threshold_delete=1'

subscribe   icecast@xiph.org
folder-hook icecast@xiph.org \
	'set index_format="%Z %[%d %b %H:%M]  %-60.60s  %35.35F" ;\
	ignore * ;\
	set pager_index_lines=8 ;\
	bind index r list-reply ;\
	bind pager r list-reply ;\
	macro pager m <mail>icecast@xiph.org ;\
	macro index m <mail>icecast@xiph.org ;\
	set score ;\
	score ~d>4d 1 ;\
	score ~d<4d 10 ;\
	set score_threshold_delete=1'

# In this folder all messages get deleted after inspection.
folder-hook zspam \
	'set index_format="%Z %[%d %b %H:%M]  %-60.60s  %35.35F" ;\
        set sort=subject ;\
	ignore * ;\
	set pager_index_lines=8 ;\
	set score ;\
	set score_threshold_delete=0 ;\
        set weed=no'