1 |
|
|
2 |
|
########### |
3 |
|
# Options # |
4 |
|
########### |
5 |
|
# |
6 |
|
# Some program options, such as log file. |
7 |
|
# |
8 |
|
logfile = /home/user/.imapfilter_log |
9 |
|
|
10 |
|
|
11 |
########################## |
########################## |
12 |
# Accounts and mailboxes # |
# Accounts and mailboxes # |
13 |
########################## |
########################## |
62 |
filter spam or |
filter spam or |
63 |
mask from marketing@company.junk |
mask from marketing@company.junk |
64 |
mask from advertising@annoying.promotion |
mask from advertising@annoying.promotion |
65 |
mask subject new great products |
mask subject "new great products" |
66 |
action delete |
action delete |
67 |
|
|
68 |
# |
# |
84 |
# This filter copies all messages with the "[patch]" word in |
# This filter copies all messages with the "[patch]" word in |
85 |
# the subject header and smaller that 50000 bytes, to a mailbox |
# the subject header and smaller that 50000 bytes, to a mailbox |
86 |
# named "patches" that may or may not exist (in the latter case |
# named "patches" that may or may not exist (in the latter case |
87 |
# it will be automatically created). |
# it will be automatically created). Also, displays their "From" and |
88 |
|
# "Subject" headers. |
89 |
# |
# |
90 |
filter patch and |
filter patch and |
91 |
subject [patch] |
subject [patch] |
92 |
smaller 50000 |
smaller 50000 |
93 |
action copy patches |
action copy patches from,subject |
94 |
|
|
95 |
# |
# |
96 |
# One can also display some of the headers of messages that match |
# One can also display some of the headers of messages that match |
97 |
# a filter. |
# a filter. |
98 |
# |
# |
99 |
# This filter prints the "From", "Subject" and "Date" headers of |
# This filter displays and/or writes to logfile the "From", "Subject" |
100 |
# recent, unread messages, that come from "tux@penguin.land" or |
# and "Date" headers of recent, unread messages, that come from |
101 |
# "beastie@daemon.land" but not with a subject containing the |
# "tux@penguin.land" or "beastie@daemon.land" but not with a subject |
102 |
# phrase "all work and no play". |
# containing the phrase "all work and no play". |
103 |
# |
# |
104 |
# Note that the "recent and unseen" functionality can also be |
# Note that the "recent and unseen" functionality can also be |
105 |
# accomplished with "new" or even "not old". |
# accomplished with "new" or even "not old". |
109 |
unseen |
unseen |
110 |
from tux@penguin.land |
from tux@penguin.land |
111 |
or from beastie@daemon.land |
or from beastie@daemon.land |
112 |
not subject all work and no play |
not subject "all work and no play" |
113 |
action list from,subject,date |
action list from,subject,date |
114 |
|
|
115 |
|
|