File: procmailrc

package info (click to toggle)
swish++ 6.1.5-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 2,256 kB
  • ctags: 1,759
  • sloc: ansic: 11,931; lisp: 804; sh: 629; perl: 366; makefile: 80
file content (39 lines) | stat: -rw-r--r-- 1,305 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
###############################################################################
#
# DESCRIPTION
#
#	This is an example .procmailrc file for Procmail to split incoming mail
#	messages into one file per message so they all can be indexed
#	effectively by SWISH++.
#
# SEE ALSO
#
#	procmail(1), procmailrc(5), procmailex(5), http://www.procmail.org/
#
###############################################################################

##
# Pick a directory into which individual mail messages will be split and create
# it if it doesn't already exist.
#
# If you subscribe to a mailing list and you want to split mail into a separate
# directory, replace "split" below with the mailing list name.
##
SPLIT_MAIL_DIR=$HOME/mail/split/`date +%Y/%m`
JUNK=`test -d $SPLIT_MAIL_DIR || mkdir -p $SPLIT_MAIL_DIR`

##
# Copy the current mail message to the split mail directory; the original will
# continue on its way to be processed by later recipies, if any.
#
# If you subscribe to a mailing list and you want to split mail into a separate
# directory, insert a line like "* ^TOlist-name" between the two lines below.
##
:0 c
$SPLIT_MAIL_DIR/.

##
# If you want to split multiple mailing lists, then you need to repeat the
# above four (non-commentary) lines once per list (changing the list name, of
# course).
##