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

Diff of /imapfilter/sample.imapfilterrc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by lefcha, Fri Jan 25 17:10:17 2002 UTC revision 1.14 by lefcha, Fri Jul 26 14:40:42 2002 UTC
# Line 4  Line 4 
4  #  #
5  # Some program options, such as log file and non-response server timeout.  # Some program options, such as log file and non-response server timeout.
6  #  #
7  logfile = /home/user/.imapfilter_log  logfile = /home/user/.imapfilter.log
8  set timeout = 120  set timeout = 120
9    expunge = no
10    subscribe = yes
11    
12    
13  ##########################  ##########################
# Line 21  set timeout = 120 Line 23  set timeout = 120
23  # Connects to "imap1.mail.server" at port 143, as "user1" and  # Connects to "imap1.mail.server" at port 143, as "user1" and
24  # using password "secret1".  # using password "secret1".
25  #  #
26  # Mailboxes that exist at "imap1.mail.server" include: "INBOX", "woody",  # Mailboxes that exist at "imap1.mail.server" include: "INBOX",
27  # "linux-mailist", etc. and are grouped in various ways.  # "bsd-maillist", "linux-maillist", etc. and are grouped in various ways.
28  #  #
29  account user1:secret1@imap1.mail.server:143  account account1 user1:secret1@imap1.mail.server:143
30    folder inbox1 INBOX    folder inbox1 INBOX
31    folder friends Woody,Buzz    folder bsd bsd-maillist
32    folder bsd bsd-mailist    folder linux linux-maillist
33    folder linux linux-mailist    folder lists linux-maillist,bsd-maillist
34    folder lists linux-mailist,bsd-mailist    folder all INBOX,linux-maillist,bsd-maillist
   folder all INBOX,woody,buzz,linux-mailist,bsd-mailist  
35    
36  #  #
37  # Another account and it's folder settings.  # Another account and it's folder settings.
38  #  #
39  # It connects to an IMAP mail server using the SSLv3 protocol.  # It connects to an IMAP mail server using the SSLv3 protocol.
40  #  #
41  account 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 games nethack,koules,"clan bomber"
44    #
45    # A third account which password is intentionally ommited, either because
46    # it will be supplied interactively or because it will be stored securely
47    # using the integrated password editor.
48    #
49    account account3 user3@imap3.mail.server
50      folder inbox3 INBOX
51    
52    
53  ###########  ###########
# Line 68  filter spam or Line 76  filter spam or
76  action delete  action delete
77    
78  #  #
79    # And here is a filter that matches all messages except those that have
80    # an explicit "To" header, a really strict filter.
81    #
82    filter strict
83      not to "name surname <email@address>"
84    action delete
85    
86    #
87  # Another filter useful for sorting of mail.  # Another filter useful for sorting of mail.
88  #  #
89  # This one moves messages with the specified "sender" header and  # This one moves messages with the specified "sender" header and
90  # an internal date newer than 14 days to the mailbox bsd-mailist.  # an internal date newer than 14 days to the mailbox bsd-maillist.
91  #  #
92  # 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
93  # "and" is used.  # "and" is used.
94  #  #
95  filter bsdlist  filter bsdlist
96    header sender bsd-mailist@mailist.bsd    header sender bsd-maillist@maillist.server
97    newer 14    newer 14
98  action move bsd-mailist  action move bsd-maillist
99    
100  #  #
101  # Messages can be copied to a folder, eg. for archive purposes.  # Messages can be copied to a folder, eg. for archive purposes.
# Line 91  action move bsd-mailist Line 107  action move bsd-mailist
107  # "Subject" headers.  # "Subject" headers.
108  #  #
109  filter patch and  filter patch and
110    subject [patch]    subject "[patch]"
111    smaller 50000    smaller 50000
112  action copy patches from,subject  action copy patches from,subject
113    
114  #  #
115  # One can also display some of the headers of messages that match  # One can also just display some of the headers of messages that match
116  # a filter.  # a filter.
117  #  #
118  # This filter displays and/or writes to logfile the "From", "Subject"  # This filter displays and/or writes to logfile the "From", "Subject"
# Line 115  filter display Line 131  filter display
131    not subject "all work and no play"    not subject "all work and no play"
132  action list from,subject,date  action list from,subject,date
133    
134    #
135    # Messages can be copied between two different accounts, ie. two
136    # different IMAP mail servers.
137    #
138    # This filter copies matching messages to INBOX of "account3".
139    #
140    filter security or
141      from security@security.announcements
142      from security-announce@my.unix.os
143    action rcopy account3 INBOX subject,date
144    
145    #
146    # Likewise, messages can be moved between different accounts.
147    #
148    filter weekly-news
149      from "weekly-news@news.letter"
150    action rmove account3 news
151    
152  #  #
153  # And here is a filter that matches all messages except those that have  # One can set flags of messages.  This can be accomplished with the "flag"
154  # an explicit "To" header, a really strict filter.  # keyword. It is possible to add, remove or replace the flags of a message.
155  #  #
156  filter strict  # The filter below, adds the "flagged" flag (which is used to mark a message
157    not to "name surname <email@address>"  # important) to matching mail.
158  action delete  #
159    filter new-release
160      from announce@my.bsd.os
161      or from announce@my.linux.os
162      subject "new release"
163      or body "new release"
164    action flag add flagged
165    
166    
167  ########  ########

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26