/[imapfilter]/imapfilter/sample.imapfilterrc
ViewVC logotype

Contents of /imapfilter/sample.imapfilterrc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations)
Sat Dec 8 14:43:25 2001 UTC (22 years, 3 months ago) by lefcha
Branch: MAIN
Changes since 1.11: +2 -2 lines
Updated to include the timeout variable.

1 ###########
2 # Options #
3 ###########
4 #
5 # Some program options, such as log file and non-response server timeout.
6 #
7 logfile = /home/user/.imapfilter_log
8 set timeout = 120
9
10
11 ##########################
12 # Accounts and mailboxes #
13 ##########################
14 #
15 # Each account has a number of folders/mailboxes which are grouped under
16 # an alias name. Folders belong to the last preceding account. A mailbox
17 # can belong to many mailbox groups.
18 #
19
20 #
21 # Connects to "imap1.mail.server" at port 143, as "user1" and
22 # using password "secret1".
23 #
24 # Mailboxes that exist at "imap1.mail.server" include: "INBOX", "woody",
25 # "linux-mailist", etc. and are grouped in various ways.
26 #
27 account user1:secret1@imap1.mail.server:143
28 folder inbox1 INBOX
29 folder friends Woody,Buzz
30 folder bsd bsd-mailist
31 folder linux linux-mailist
32 folder lists linux-mailist,bsd-mailist
33 folder all INBOX,woody,buzz,linux-mailist,bsd-mailist
34
35 #
36 # Another account and it's folder settings.
37 #
38 # It connects to an IMAP mail server using the SSLv3 protocol.
39 #
40 account user2:secret2@imap2.mail.server ssl3
41 folder inbox2 INBOX
42 folder games nethack,koules
43
44
45 ###########
46 # Filters #
47 ###########
48 #
49 # Filters are completely independent from any account or folder settings.
50 # The mask command may be ommited. If no masks are declared inside
51 # a filter entry, then all messages are matched.
52 #
53
54 #
55 # A possible anti-spam filter to get rid of unwanted messages.
56 #
57 # The "or" flag in the arguments of the filter command makes the
58 # filter masks work like this (in pseudocode):
59 # if (from ... )
60 # or if (from ...)
61 # or if (subject ...)
62 # then delete
63 #
64 filter spam or
65 mask from marketing@company.junk
66 mask from advertising@annoying.promotion
67 mask subject "new great products"
68 action delete
69
70 #
71 # Another filter useful for sorting of mail.
72 #
73 # This one moves messages with the specified "sender" header and
74 # an internal date newer than 14 days to the mailbox bsd-mailist.
75 #
76 # When no "or" or "and" flag is specified for a filter the default
77 # "and" is used.
78 #
79 filter bsdlist
80 header sender bsd-mailist@mailist.bsd
81 newer 14
82 action move bsd-mailist
83
84 #
85 # Messages can be copied to a folder, eg. for archive purposes.
86 #
87 # This filter copies all messages with the "[patch]" word in
88 # the subject header and smaller that 50000 bytes, to a mailbox
89 # named "patches" that may or may not exist (in the latter case
90 # it will be automatically created). Also, displays their "From" and
91 # "Subject" headers.
92 #
93 filter patch and
94 subject [patch]
95 smaller 50000
96 action copy patches from,subject
97
98 #
99 # One can also display some of the headers of messages that match
100 # a filter.
101 #
102 # This filter displays and/or writes to logfile the "From", "Subject"
103 # and "Date" headers of recent, unread messages, that come from
104 # "tux@penguin.land" or "beastie@daemon.land" but not with a subject
105 # containing the phrase "all work and no play".
106 #
107 # Note that the "recent and unseen" functionality can also be
108 # accomplished with "new" or even "not old".
109 #
110 filter display
111 recent
112 unseen
113 from tux@penguin.land
114 or from beastie@daemon.land
115 not subject "all work and no play"
116 action list from,subject,date
117
118
119 #
120 # And here is a filter that matches all messages except those that have
121 # an explicit "To" header, a really strict filter.
122 #
123 filter strict
124 not to "name surname <email@address>"
125 action delete
126
127
128 ########
129 # Jobs #
130 ########
131 #
132 # Last, there is the definition of the jobs where user combines
133 # folders and filters _already_ defined, and specifies which filters
134 # should be applied to which folders.
135 #
136 job spam,display inbox1,inbox2
137 job patch lists
138 job bsdlist inbox1

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26