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

Annotation of /imapfilter/sample.imapfilterrc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11.2.1 - (hide annotations)
Wed Dec 5 09:58:31 2001 UTC (22 years, 3 months ago) by lefcha
Branch: release-0_7-patches
Changes since 1.11: +2 -2 lines
Updated to include the timeout variable.

1 lefcha 1.9 ###########
2     # Options #
3     ###########
4     #
5 lefcha 1.11.2.1 # Some program options, such as log file and non-response server timeout.
6 lefcha 1.9 #
7     logfile = /home/user/.imapfilter_log
8 lefcha 1.11.2.1 set timeout=120
9 lefcha 1.9
10    
11 lefcha 1.7 ##########################
12     # Accounts and mailboxes #
13     ##########################
14 lefcha 1.8 #
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 lefcha 1.7
20     #
21     # Connects to "imap1.mail.server" at port 143, as "user1" and
22     # using password "secret1".
23     #
24 lefcha 1.8 # Mailboxes that exist at "imap1.mail.server" include: "INBOX", "woody",
25     # "linux-mailist", etc. and are grouped in various ways.
26     #
27 lefcha 1.7 account user1:secret1@imap1.mail.server:143
28 lefcha 1.8 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 lefcha 1.7
35     #
36     # Another account and it's folder settings.
37     #
38 lefcha 1.11 # It connects to an IMAP mail server using the SSLv3 protocol.
39     #
40     account user2:secret2@imap2.mail.server ssl3
41 lefcha 1.8 folder inbox2 INBOX
42     folder games nethack,koules
43 lefcha 1.7
44    
45     ###########
46     # Filters #
47     ###########
48     #
49 lefcha 1.8 # 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 lefcha 1.7 #
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 lefcha 1.8 mask from marketing@company.junk
66     mask from advertising@annoying.promotion
67 lefcha 1.9 mask subject "new great products"
68 lefcha 1.7 action delete
69    
70     #
71     # Another filter useful for sorting of mail.
72     #
73 lefcha 1.11 # This one moves messages with the specified "sender" header and
74     # an internal date newer than 14 days to the mailbox bsd-mailist.
75 lefcha 1.7 #
76     # When no "or" or "and" flag is specified for a filter the default
77     # "and" is used.
78     #
79 lefcha 1.11 filter bsdlist
80 lefcha 1.8 header sender bsd-mailist@mailist.bsd
81 lefcha 1.11 newer 14
82 lefcha 1.7 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 lefcha 1.9 # it will be automatically created). Also, displays their "From" and
91     # "Subject" headers.
92 lefcha 1.7 #
93     filter patch and
94 lefcha 1.8 subject [patch]
95     smaller 50000
96 lefcha 1.9 action copy patches from,subject
97 lefcha 1.7
98     #
99     # One can also display some of the headers of messages that match
100     # a filter.
101     #
102 lefcha 1.9 # 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 lefcha 1.7 #
107     # Note that the "recent and unseen" functionality can also be
108     # accomplished with "new" or even "not old".
109     #
110     filter display
111 lefcha 1.8 recent
112     unseen
113     from tux@penguin.land
114     or from beastie@daemon.land
115 lefcha 1.9 not subject "all work and no play"
116 lefcha 1.7 action list from,subject,date
117 lefcha 1.10
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 lefcha 1.7
127    
128     ########
129     # Jobs #
130     ########
131     #
132 lefcha 1.8 # Last, there is the definition of the jobs where user combines
133 lefcha 1.7 # folders and filters _already_ defined, and specifies which filters
134     # should be applied to which folders.
135     #
136     job spam,display inbox1,inbox2
137 lefcha 1.8 job patch lists
138 lefcha 1.7 job bsdlist inbox1

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26