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

Annotation of /imapfilter/sample.imapfilterrc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (hide annotations)
Tue Oct 2 13:31:25 2001 UTC (22 years, 6 months ago) by lefcha
Branch: MAIN
Changes since 1.8: +19 -8 lines
Added documentation of program options.

1 lefcha 1.9
2     ###########
3     # Options #
4     ###########
5     #
6     # Some program options, such as log file.
7     #
8     logfile = /home/user/.imapfilter_log
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     account user2:secret2@imap2.mail.server
39 lefcha 1.8 folder inbox2 INBOX
40     folder games nethack,koules
41 lefcha 1.7
42    
43     ###########
44     # Filters #
45     ###########
46     #
47 lefcha 1.8 # Filters are completely independent from any account or folder settings.
48     # The mask command may be ommited. If no masks are declared inside
49     # a filter entry, then all messages are matched.
50 lefcha 1.7 #
51    
52     #
53     # A possible anti-spam filter to get rid of unwanted messages.
54     #
55     # The "or" flag in the arguments of the filter command makes the
56     # filter masks work like this (in pseudocode):
57     # if (from ... )
58     # or if (from ...)
59     # or if (subject ...)
60     # then delete
61     #
62     filter spam or
63 lefcha 1.8 mask from marketing@company.junk
64     mask from advertising@annoying.promotion
65 lefcha 1.9 mask subject "new great products"
66 lefcha 1.7 action delete
67    
68     #
69     # Another filter useful for sorting of mail.
70     #
71     # This one moves messages with the specified "sender" header to
72     # the mailbox bsd-mailist.
73     #
74     # When no "or" or "and" flag is specified for a filter the default
75     # "and" is used.
76     #
77     filter bsdlist or
78 lefcha 1.8 header sender bsd-mailist@mailist.bsd
79 lefcha 1.7 action move bsd-mailist
80    
81     #
82     # Messages can be copied to a folder, eg. for archive purposes.
83     #
84     # This filter copies all messages with the "[patch]" word in
85     # the subject header and smaller that 50000 bytes, to a mailbox
86     # named "patches" that may or may not exist (in the latter case
87 lefcha 1.9 # it will be automatically created). Also, displays their "From" and
88     # "Subject" headers.
89 lefcha 1.7 #
90     filter patch and
91 lefcha 1.8 subject [patch]
92     smaller 50000
93 lefcha 1.9 action copy patches from,subject
94 lefcha 1.7
95     #
96     # One can also display some of the headers of messages that match
97     # a filter.
98     #
99 lefcha 1.9 # This filter displays and/or writes to logfile the "From", "Subject"
100     # and "Date" headers of recent, unread messages, that come from
101     # "tux@penguin.land" or "beastie@daemon.land" but not with a subject
102     # containing the phrase "all work and no play".
103 lefcha 1.7 #
104     # Note that the "recent and unseen" functionality can also be
105     # accomplished with "new" or even "not old".
106     #
107     filter display
108 lefcha 1.8 recent
109     unseen
110     from tux@penguin.land
111     or from beastie@daemon.land
112 lefcha 1.9 not subject "all work and no play"
113 lefcha 1.7 action list from,subject,date
114    
115    
116     ########
117     # Jobs #
118     ########
119     #
120 lefcha 1.8 # Last, there is the definition of the jobs where user combines
121 lefcha 1.7 # folders and filters _already_ defined, and specifies which filters
122     # should be applied to which folders.
123     #
124 lefcha 1.8
125 lefcha 1.7 job spam,display inbox1,inbox2
126 lefcha 1.8 job patch lists
127 lefcha 1.7 job bsdlist inbox1

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26