author | Huie-Ying Lee <huieying.lee@oracle.com> |
Fri, 20 Dec 2013 12:17:34 -0800 | |
changeset 1612 | 3f2ec017627f |
parent 1068 | 0b7caaf07429 |
permissions | -rw-r--r-- |
1068
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
1 |
################################################################ |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
2 |
# Here we go.... # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
3 |
# my very own mail-mangler # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
4 |
################################################################ |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
5 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
6 |
################################################################ |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
7 |
# Updated to have working URLs and arbitrarily version-bumped # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
8 |
# to 1.2 on the grounds it matched the mutt version. Very # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
9 |
# little beyond URLs and list addresses has changed. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
10 |
# 2002-03-21. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
11 |
################################################################ |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
12 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
13 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
14 |
################################################################ |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
15 |
# In the spirit of the net, 90% of this came from other people # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
16 |
# and the remaining 10% might be from me. Most of the 90% # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
17 |
# came from these sources: # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
18 |
# # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
19 |
# "Getting started with procmail" at # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
20 |
# http://www.spambouncer.org/proctut.shtml # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
21 |
# http://www.spambouncer.org/procmail.rc # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
22 |
# ...by Catherine A. Hampton. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
23 |
# # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
24 |
# man procmail (overview) # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
25 |
# man procmailrc (writing the procmailrc) # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
26 |
# man procmailex (example recipes) # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
27 |
# man formail (especially for splitting digests) # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
28 |
# # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
29 |
# and .procmailrcs from several friends. Thanks, folks, # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
30 |
# especially to the one who had more patterns which sent # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
31 |
# things to /dev/null than to mailboxes, for showing me # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
32 |
# what true impatience with email was like! # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
33 |
################################################################ |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
34 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
35 |
################################################################ |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
36 |
# Procmailrc files have two parts. First you tell it where # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
37 |
# everything lives. Then you tell it the recipes. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
38 |
################################################################ |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
39 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
40 |
########################################## |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
41 |
# Varibiggles and where everything lives # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
42 |
########################################## |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
43 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
44 |
################################################################ |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
45 |
# All of these will work quite happily without changing for # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
46 |
# Red Hat Linux 6.0 through to 7.2.They won't necessarily work # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
47 |
# for other flavours without changing paths. See the "Getting # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
48 |
# started with procmail" doc I mentioned above for the likely # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
49 |
# settings for them in other environments. It has a list :) # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
50 |
################################################################ |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
51 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
52 |
################################################################ |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
53 |
# Since I installed procmail, I have changed from using # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
54 |
# sendmail to using exim. Because I can understand the config # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
55 |
# file. If you use exim, you may need to tweak the config file # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
56 |
# as I did. If you do, then check you are reading the docs for # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
57 |
# the right version of exim! This worked for me: # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
58 |
# # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
59 |
# http://www.exim.org/exim-html-3.20/doc/html/spec_18.html # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
60 |
# and look for procmail. It's in the example for the 'pipe # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
61 |
# transport'. Just paste it into /etc/exim.conf. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
62 |
################################################################ |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
63 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
64 |
SHELL=/bin/bash |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
65 |
# Have to have this one (or whatever your shell is) |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
66 |
# Best bet is bash or sh. |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
67 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
68 |
LINEBUF=4096 |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
69 |
# Magic. Apparently it burps on long lines if you don't |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
70 |
# put this in. |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
71 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
72 |
PATH=/bin:/usr/bin:/usr/local/bin |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
73 |
# Where procmail looks for stuff. Works for RH 6.0, 6.1 |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
74 |
# and most other Linux settings I've seen. |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
75 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
76 |
VERBOSE=off |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
77 |
# Change to 'on' to get _long_ procmail log. |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
78 |
# NB: if this is short, I don't want to see long: I get |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
79 |
# a one-line summary for every email procmail looks at! |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
80 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
81 |
MAILDIR=$HOME/Mail |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
82 |
# Not where your mail arrives on the machine. Where |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
83 |
# procmail will assume all the folders you mention in |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
84 |
# your recipes goes. Make sure your email-reading |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
85 |
# program also knows about it. (I understand $HOME/Mail |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
86 |
# is pretty standard, however.) |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
87 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
88 |
LOGFILE=$HOME/Mail/procmaillog |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
89 |
# I don't think this needs to be in your Mail folder, |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
90 |
# but my mail-reader (mutt) is great at different |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
91 |
# sorting, so I put the log into the mail directory :) |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
92 |
# Note learned through experience: if you leave this file |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
93 |
# too long, it will end up with tens of thousands of |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
94 |
# messages. Mutt is not always -that- good at sorting |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
95 |
# that lot quickly :) |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
96 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
97 |
FORMAIL=/usr/bin/formail |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
98 |
# 'formail'. Part of the procmail package. Correct |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
99 |
# the path if this isn't where it lives for you. |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
100 |
# ('which formail' may well tell you.) |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
101 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
102 |
SENDMAIL=/usr/sbin/sendmail |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
103 |
# As with formail, tells procmail where to look for |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
104 |
# sendmail. If sendmail isn't there, mail transfer |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
105 |
# might be handled by a different program. Ask |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
106 |
# your sysadmin :) If you are your own sysadmin, |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
107 |
# then I hope you know. |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
108 |
# Subsequent to writing that, I have learned that this |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
109 |
# file is provided (with this name) by other MTAs too. |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
110 |
# I now use Exim (see note above) and this file is still |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
111 |
# there, courtesy of exim. |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
112 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
113 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
114 |
############################ |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
115 |
# The recipes - I hope... # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
116 |
############################ |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
117 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
118 |
################################################################ |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
119 |
# Gods know how this works. But it's very useful. If you get # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
120 |
# email that is sent simultaneously to you and to two other # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
121 |
# lists, this will nuke two of those so that you only see it # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
122 |
# once. Came from 'man procmail'. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
123 |
################################################################ |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
124 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
125 |
# Nuke duplicate messages |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
126 |
:0 Wh: msgid.lock |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
127 |
| $FORMAIL -D 8192 msgid.cache |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
128 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
129 |
################################################################ |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
130 |
# Next two are from the 'Getting started with procmail' doc. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
131 |
# I'm not too sure about how they work, but they look handy... # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
132 |
################################################################ |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
133 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
134 |
# Create a backup cache of 200 most recent messages in case of |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
135 |
# mistakes (yes, you can change the 200 to 20 or 400 or whatever |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
136 |
# you want) |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
137 |
:0 c |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
138 |
backup |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
139 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
140 |
:0 ic |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
141 |
| cd backup && rm -f dummy `ls -t msg.* | sed -e 1,200d` |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
142 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
143 |
# Regenerate "From" lines to make sure they are valid |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
144 |
:0 fhw |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
145 |
| formail -I "From " -a "From " |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
146 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
147 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
148 |
################################################################ |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
149 |
# For testing shit - I picked a subject line that no-one would # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
150 |
# send me and then tried different recipes on the results, and # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
151 |
# then sent myself a whole pile of email about grobblefruit, # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
152 |
# with different recipes here, to see what happened when I # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
153 |
# tried different headers and so on. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
154 |
################################################################ |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
155 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
156 |
:0: |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
157 |
* ^Subject: Test grobblefruit |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
158 |
IN.testing |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
159 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
160 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
161 |
################################################################ |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
162 |
# Mailing lists # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
163 |
# # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
164 |
# I think this is the thing that most people who finally get # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
165 |
# procmail want to know about: how to get different messages # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
166 |
# from different mailing lists into different folders. This is # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
167 |
# where all that MAILDIR stuff comes from. All the folders I # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
168 |
# name in here are all created off whatever directory I filled # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
169 |
# in as the MAILDIR at the start. And no, they don't suddenly # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
170 |
# appear the instant you edit this file. They only appear when # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
171 |
# procmail finds mail that should go in them. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
172 |
# # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
173 |
# You can have more than one recipe sending email into the # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
174 |
# same folder, btw, yes. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
175 |
# # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
176 |
# General useful (?) comments: # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
177 |
# The "^Resent-From: " pattern works wonderfully on # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
178 |
# lists which generate it. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
179 |
# Making the folder not -quite- the list name means you # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
180 |
# can save mail from it to a folder named for the list. Can # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
181 |
# be handy. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
182 |
# Some lists are indeed a pig to catch everything with. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
183 |
# "TO" is different from "To" and you mustn't put a # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
184 |
# a space after "TO". It catches "To: " and "Cc: ", I # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
185 |
# think. Very handy. But it doesn't catch everything. If # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
186 |
# it's a mailman list, don't use it and see below. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
187 |
# Mailman-run lists all seem to have a Sender: header # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
188 |
# which is very useful to sort with. Just add -admin onto # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
189 |
# the name of the mailing list. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
190 |
# Even more useful for mailman-run lists turns out to be # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
191 |
# "X-BeenThere: [email protected]" # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
192 |
################################################################ |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
193 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
194 |
################################################################ |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
195 |
# I hardly use TO now, but here's an example in case. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
196 |
################################################################ |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
197 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
198 |
:0: |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
199 |
* ^[email protected] |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
200 |
IN.lynx-dev |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
201 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
202 |
########### |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
203 |
# bugtraq # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
204 |
########### |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
205 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
206 |
:0: |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
207 |
* ^Sender:.*Bugtraq List |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
208 |
IN.bugtraq |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
209 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
210 |
######################### |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
211 |
# gnome CVS commit list # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
212 |
######################### |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
213 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
214 |
:0: |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
215 |
* X-BeenThere: [email protected] |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
216 |
IN.cvs-commits |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
217 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
218 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
219 |
############## |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
220 |
# gnome-list # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
221 |
############## |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
222 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
223 |
:0: |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
224 |
* ^X-BeenThere: [email protected] |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
225 |
IN.gnome-list |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
226 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
227 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
228 |
################## |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
229 |
# gnome-doc-list # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
230 |
################## |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
231 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
232 |
:0: |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
233 |
* ^X-BeenThere: [email protected] |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
234 |
IN.gnome-doc-list |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
235 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
236 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
237 |
############################################################### |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
238 |
# linuxchix lists: there are several mailing lists here: see # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
239 |
# the end of this file for the different ways to deal with # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
240 |
# heavy traffic lists with digest options. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
241 |
############################################################### |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
242 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
243 |
:0: |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
244 |
* ^X-BeenThere: [email protected] |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
245 |
IN.linuxchix |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
246 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
247 |
:0: |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
248 |
* ^X-BeenThere: [email protected] |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
249 |
IN.linuxchix |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
250 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
251 |
:0: |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
252 |
* ^X-BeenThere: [email protected] |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
253 |
IN.linuxchix |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
254 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
255 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
256 |
################################################# |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
257 |
# This is what I consider advanced stuff: this # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
258 |
# one doesn't put the digest straight into a # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
259 |
# folder. Instead it runs 'formail +1 -ds', # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
260 |
# which splits the digest into its original # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
261 |
# messages, and then puts the results of that # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
262 |
# into the folder. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
263 |
# # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
264 |
# The address is way way out of date, but I am # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
265 |
# not sure of the current digest address, so I # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
266 |
# have left it. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
267 |
# # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
268 |
# It is commented out because I actually read # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
269 |
# the main list, not the digest, these days. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
270 |
################################################# |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
271 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
272 |
# :0: |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
273 |
# * ^[email protected] |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
274 |
# | formail +1 -ds >> IN.linuxchix |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
275 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
276 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
277 |
############## |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
278 |
# mutt-users # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
279 |
############## |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
280 |
:0: |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
281 |
* ^[email protected] |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
282 |
IN.mutt-users |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
283 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
284 |
:0: |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
285 |
* ^Sender: [email protected] |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
286 |
IN.mutt-users |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
287 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
288 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
289 |
################################################# |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
290 |
# Procmail list # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
291 |
# ...be aware that everyone on this list # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
292 |
# seems to have monster spam filters and thus # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
293 |
# to be completely unconcerned at the huge # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
294 |
# amount of spam it gets: you will either need # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
295 |
# spam filters or tolerance to find the good # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
296 |
# stuff. (I am not subscribed now, but that was # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
297 |
# the case when I was.) # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
298 |
################################################# |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
299 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
300 |
:0: |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
301 |
* ^[email protected] |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
302 |
IN.procmaillist |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
303 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
304 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
305 |
####################################################### |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
306 |
# Red Hat announce -- very handy for security updates # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
307 |
####################################################### |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
308 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
309 |
:0: |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
310 |
* ^X-BeenThere: [email protected] |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
311 |
IN.rh-announce |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
312 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
313 |
:0: |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
314 |
* ^X-BeenThere: [email protected] |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
315 |
IN.rh-announce |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
316 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
317 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
318 |
######################### |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
319 |
# windowmaker: wm-users # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
320 |
######################### |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
321 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
322 |
:0: |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
323 |
*^From [email protected] |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
324 |
IN.wm-user |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
325 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
326 |
################################################################ |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
327 |
# Splitting digests # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
328 |
# # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
329 |
# You don't need to do this, but this seems to be another very # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
330 |
# popular thing to do with procmail. If you're on mailing # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
331 |
# lists using the digest option, sometimes you may want to # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
332 |
# split the digests back up into the original emails. There is # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
333 |
# (of course) more than one way to do this: # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
334 |
# # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
335 |
# (1) don't bother: just read through all the digest in one # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
336 |
# big lump. Simple, easy, and great until you find someone # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
337 |
# sent a 500-line postscript file or a giant jpg which got # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
338 |
# included into the digest :( # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
339 |
# # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
340 |
# (2) use a mail-reader such as mutt, and if you suddenly want # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
341 |
# to split a digest up, then whilst reading the message, hit # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
342 |
# | formail +1 -ds # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
343 |
# which will put the results into your main inbox. If you want # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
344 |
# it in a particular folder (like the one you're reading), do # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
345 |
# | formail +1 -ds >> foldername # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
346 |
# # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
347 |
# (3) make procmail (or formail, actually), split it up ready # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
348 |
# for you to read. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
349 |
# # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
350 |
# So if you want to have each digest automatically split up # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
351 |
# by procmail as it arrives, and to read each message # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
352 |
# individually, then here's some examples of what you can put. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
353 |
# The first two lines are exactly the same. The third one has # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
354 |
# a pipe (vertical line) symbol at the start, and then the # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
355 |
# command you're piping it through. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
356 |
# # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
357 |
# Yes, I picked a notoriously heavy-traffic one for the first # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
358 |
# example... And it -should- work, but it's not a list I read, # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
359 |
# sorry! # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
360 |
# # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
361 |
# Instead of this: # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
362 |
# :0: # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
363 |
# * ^Sender: [email protected] # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
364 |
# IN.linux-kernel # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
365 |
# ...you want this: # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
366 |
# :0: # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
367 |
# * ^Sender: [email protected] # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
368 |
# | formail +1 -ds >> IN.linux-kernel # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
369 |
# # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
370 |
# Da-dah! That's all. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
371 |
# # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
372 |
# And for those where the list name changes and that's what # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
373 |
# you're matching patterns on, instead of this: # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
374 |
# :0: # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
375 |
# * ^[email protected] # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
376 |
# IN.linuxchix # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
377 |
# ...you want this: # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
378 |
# :0: # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
379 |
* ^[email protected] # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
380 |
# | formail +1 -ds >> IN.linuxchix # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
381 |
# # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
382 |
# Magic :) # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
383 |
################################################################ |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
384 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
385 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
386 |
|
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
387 |
################################################################ |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
388 |
# That's it. Any email that doesn't match any of the recipes # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
389 |
# above goes into my usual place for email, which until I read # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
390 |
# it is /var/spool/mail/hobbit. Procmail appears to know about # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
391 |
# that without being told. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
392 |
# # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
393 |
# Quick summary for adding your own or changing these: the # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
394 |
# general format for putting an email into a folder and not # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
395 |
# doing anything fancy to it first is: # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
396 |
# # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
397 |
# :0: # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
398 |
# * <what you're looking for> # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
399 |
# <where you're putting it> # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
400 |
# # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
401 |
# The ^ sign in my recipes is the sign procmail understands as # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
402 |
# "start of the line", so "^From" matches the word "From" when # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
403 |
# it's the start of a header. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
404 |
# # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
405 |
# The "IN." at the start of folder names is not necessary: # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
406 |
# that's just my naming system. Stolen, like everything else, # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
407 |
# from a friend's example. It has the benefit that with my # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
408 |
# mail-reader (mutt), which sorts alphabetically, all of them # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
409 |
# show up first (capitals are earlier in the alphabet if # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
410 |
# you're a computer...) and I can save them easily: from # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
411 |
# IN.blah to blah. If you want to call the folders blah-spool, # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
412 |
# or just blah, then cool. That'll work, too. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
413 |
# # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
414 |
# It is possible that now you have everything in different # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
415 |
# folders, you want to read with a cool program which does # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
416 |
# cool things like display by thread or which understands you # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
417 |
# when you tell it "These are mailing lists" and does handy # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
418 |
# things as a result. If you do, and you discover Mutt, you # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
419 |
# might want to look at my muttrc which is probably next to # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
420 |
# this file. # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
421 |
# # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
422 |
# Have fun! # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
423 |
# -- Telsa # |
0b7caaf07429
15941549 Move procmail from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
424 |
################################################################ |