14 |
# Accounts and mailboxes # |
# Accounts and mailboxes # |
15 |
########################## |
########################## |
16 |
# |
# |
17 |
# Each account has a number of folders/mailboxes which are grouped under |
# Each account has a number of folders/mailboxes which are grouped under an |
18 |
# an alias name. Folders belong to the last preceding account. A mailbox |
# alias name. Folders belong to the last preceding account. A mailbox can |
19 |
# can belong to many mailbox groups. |
# belong to many mailbox groups. |
20 |
# |
# |
21 |
|
|
22 |
# |
# |
23 |
# Connects to "imap1.mail.server" at port 143, as "user1" and |
# Connects to "imap1.mail.server" at port 143, as "user1" and using password |
24 |
# using password "secret1". |
# "secret1". |
25 |
# |
# |
26 |
# Mailboxes that exist at "imap1.mail.server" include: "INBOX", |
# Mailboxes that exist at "imap1.mail.server" include: "INBOX", "bsd-maillist", |
27 |
# "bsd-maillist", "linux-maillist", etc. and are grouped in various ways. |
# "linux-maillist", etc. and are grouped in various ways. |
28 |
# |
# |
29 |
account account1 user1:secret1@imap1.mail.server:143 |
account account1 user1:secret1@imap1.mail.server:143 |
30 |
folder inbox1 INBOX |
folder inbox1 INBOX |
40 |
# |
# |
41 |
account account2 user2:secret2@imap2.mail.server ssl3 |
account account2 user2:secret2@imap2.mail.server ssl3 |
42 |
folder inbox2 INBOX |
folder inbox2 INBOX |
43 |
folder games nethack,koules,"clan bomber" |
folder example "hello, world" |
44 |
|
|
45 |
# |
# |
46 |
# A third account which password is intentionally ommited, either because |
# A third account which password is intentionally ommited, either because it |
47 |
# it will be supplied interactively or because it will be stored securely |
# will be supplied interactively or because it will be stored securely using |
48 |
# using the integrated password editor. |
# the integrated password editor. |
49 |
# |
# |
50 |
account account3 user3@imap3.mail.server |
account account3 user3@imap3.mail.server |
51 |
folder inbox3 INBOX |
folder inbox3 INBOX |
55 |
# Filters # |
# Filters # |
56 |
########### |
########### |
57 |
# |
# |
58 |
# Filters are completely independent from any account or folder settings. |
# Filters are completely independent from any account or folder settings. The |
59 |
# The mask command may be ommited. If no masks are declared inside |
# mask command may be ommited. If no masks are declared inside a filter entry, |
60 |
# a filter entry, then all messages are matched. |
# then all messages are matched. |
61 |
# |
# |
62 |
|
|
63 |
# |
# |
64 |
# A possible anti-spam filter to get rid of unwanted messages. |
# A possible anti-spam filter to get rid of unwanted messages. |
65 |
# |
# |
66 |
# The "or" flag in the arguments of the filter command makes the |
# The "or" flag in the arguments of the filter command makes the filter masks |
67 |
# filter masks work like this (in pseudocode): |
# work like this (in pseudocode): |
68 |
# if (from ... ) |
# if (from ...) |
69 |
# or if (from ...) |
# or if (from ...) |
70 |
# or if (subject ...) |
# or if (subject ...) |
71 |
# then delete |
# then delete |
72 |
# |
# |
73 |
filter spam or |
filter spam or |
77 |
action delete |
action delete |
78 |
|
|
79 |
# |
# |
80 |
# And here is a filter that matches all messages except those that have |
# And here is a filter that matches all messages except those that have an |
81 |
# an explicit "To" header, a really strict filter. |
# explicit "To" header, a really strict filter. |
82 |
# |
# |
83 |
filter strict |
filter strict |
84 |
not to "name surname <email@address>" |
not to "name surname <email@address>" |
87 |
# |
# |
88 |
# Another filter useful for sorting of mail. |
# Another filter useful for sorting of mail. |
89 |
# |
# |
90 |
# This one moves messages with the specified "sender" header and |
# This one moves messages with the specified "sender" header and an internal |
91 |
# an internal date newer than 14 days to the mailbox bsd-maillist. |
# date newer than 14 days to the mailbox bsd-maillist. |
92 |
# |
# |
93 |
# When no "or" or "and" flag is specified for a filter the default |
# When no "or" or "and" flag is specified for a filter the default "and" is |
94 |
# "and" is used. |
# used. |
95 |
# |
# |
96 |
filter bsdlist |
filter bsdlist |
97 |
header sender bsd-maillist@maillist.server |
header sender bsd-maillist@maillist.server |
166 |
or body "new release" |
or body "new release" |
167 |
action flag add flagged |
action flag add flagged |
168 |
|
|
169 |
|
# |
170 |
|
# In some cases, such as when archiving messages, it is useful to make use of |
171 |
|
# date conversion specifiers and/or the default variable, in the name of the |
172 |
|
# destination mailbox of a filter. |
173 |
|
# |
174 |
|
# Date conversion specifiers are introduced with the at sign '@', for the date |
175 |
|
# of the message, and the percent sign '%', for the system's current date. |
176 |
|
# |
177 |
|
# The default variable "$_" is replaced with the name of the mailbox that the |
178 |
|
# filter is currently applied to. |
179 |
|
# |
180 |
|
# For example, this filter does a month based archiving of messages that are |
181 |
|
# older than 60 days. When applied to the bsd-maillist and linux-maillist |
182 |
|
# mailboxes, messages would be moved to mailboxes named bsd-maillist-2003-07, |
183 |
|
# bsd-maillist-2003-08, etc. and linux-maillist-2003-07, |
184 |
|
# linux-maillist-2003-08, etc., respectively. |
185 |
|
# |
186 |
|
filter archive |
187 |
|
older 60 |
188 |
|
action move $_-@Y-@m |
189 |
|
|
190 |
|
|
191 |
######## |
######## |
192 |
# Jobs # |
# Jobs # |
197 |
# should be applied to which folders. |
# should be applied to which folders. |
198 |
# |
# |
199 |
job spam,display inbox1,inbox2 |
job spam,display inbox1,inbox2 |
200 |
job patch lists |
job patch,archive lists |
201 |
job new-release,bsdlist inbox1 |
job new-release,bsdlist inbox1 |