1
# .ebrc file, configure the edbrowse program.
2
# This file contains passwords - make sure it is not readable by others.
4
# The pop3 account format is,
5
# pop3server:login:password:returnmail:smtp
7
# Here's my personal mail account, through my isp.
8
# The machine, atmail, is defined in /etc/hosts.
9
# If you don't define it there, you need a fully qualified domain name here.
10
# The last field is blank, hence it is the same as the first field.
11
*atmail:eklhad:x:eklhad@home.com:
13
# My wife's account is a subordinate to mine, hence the same machine.
14
# Sometimes she doesn't log on for a week, so I check it once in a while.
15
atmail:kwnre:x:kwnre@home.com:
17
# Finally my work account.
18
eyemail:karl:x:karl@eyetel-imaging.com:
20
# You should probably use one server, your ISP's local mail server,
21
# to transmit all your outgoing mail.
22
# Your ISP trusts you, and nobody else does,
23
# and there's no password in the SMTP protocol,
24
# so you may find that your far mailbox, in another time zone,
25
# will let you get mail (with your password), but not send mail.
26
# So send everything through your local mail server.
27
# The account with the leading * is the local account.
28
# If you tell this program to send mail via another account,
29
# The mail will "look" like it came from that other account,
30
# and replies will go back to that other account,
31
# but the local server is used to send the mail.
33
# Note that the sm feature in edbrowse also uses your local mail server.
34
# In particular, the return path on the * line will appear
35
# in any message you send out using the sm command.
37
# Your full name is sent with every outgoing email,
38
# so the recipient knows who you are.
39
fullname = Karl Dahlke
41
# Now for some internal parameters.
42
# Give the full pathname for your address book.
43
# This file contains lines of the form alias:email,
44
# which makes it easier to specify recipients when sending mail.
45
addressbook = /home/eklhad/progs/mail/book
47
# A file keeps track of junk subjects,
48
# mail that you don't want to see any more.
49
junkfile = /home/eklhad/progs/mail/junk
51
# A file specifies annoying advertisements (usually),
52
# that you don't want to read again and again.
53
annoyfile = /home/eklhad/progs/mail/annoy
55
# Move to your standard email directory when running this program
57
# This and all subsequent parameters are optional.
58
cd = /home/eklhad/mbox
59
# Unfortunately, when domail returns, and you've saved some of your mail
60
# in various files, and you want to read/edit those files, you have to
61
# cd to this directory yourself, in the parent shell.
62
# It would be nice if we could drag the parent cwd along with us,
64
# Oh well, at least you'll know where all your mail is.
66
# Actually there's another good reason for using the cd directive above.
67
# In your filtering rules, you can simply refer to files and directories
68
# under your mail directory, because you know you're in your mail directory.
69
# No need for long absolute pathnames.
70
# Here's the first filter rule.
71
# Each morning I receive the "word of the day", with definition and etimology,
72
# from Merriam Webster.
73
# Sign up at http://www.m-w.com/dictionary.htm.
74
# It's really quite interesting, but I often want to read it at my leisure,
75
# not while I'm plowing through my mail messages.
76
# So I dump it into a file "wod".
77
# I use to do this manually, almost a reflex action,
78
# but now the filtering rule does it for me.
79
# Keep in mind, if I haven't read my mail for three days,
80
# there will be three of these.
81
# That's ok - they all get appended onto the wod file.
82
# I'll read them all, then delete the file.
83
from = word@merriam-webster.com > wod
85
# Regular updates from nasa science news and space.com.
86
# These are definitely to be read at leisure.
87
from = spacenews@space.com > scom
88
from = snglist@LYRIS.msfc.nasa.gov > nasa
90
# Messages from the failsafe mailing list.
91
# This comes in the form of a digest, once a day.
92
# I generally read it and delete it,
93
# so again, I just put it in a file with a predetermined name.
94
from = failsafe@yahoogroups.com > fsd
96
# I receive the failsave news letter every month, and these are worth keeping.
97
# So I put each mail into its own file.
98
# %mm is the month and %yy is the year,
99
# according to the current date and time.
100
# People who have lived through the y2k scare may want to use %yyyy.
101
# %dd is day (numeric), %hh is hour, %nn is minute, and %ss is seconds.
102
from = failsafe_news@yahoogroups.com > failnews/%mm-%yy
104
# If there's mail you don't ever want to see, from a spammer or a virus,
106
# Here is a mail-to-mail virus that is going around the internet.
107
# Linux is immune of course,
108
# but I still have no interest in reading the mail message.
109
from = hahaha@sexyfun.net > x
111
# Predefined command sets.
112
# The set called init is run at startup.
113
# This is used to set global flags, as you prefer.
114
# If you like help messages on, do this.
118
# Undos and unword a file.
119
# The leading + means the command set will stop if it encounters an error.
124
# Strip out nonascii stuff.
125
# Sorry to be so English-centric.
126
# This will mess you up if you're reading a Spanish word document,
127
# and you lose your nonascii letters.
128
< ,s/[\0-\11\13\14\16-\37\200-\377]//g
129
# After the above, there'll be lots of blank lines.
131
# Break lines at return boundaries.
133
# Strip off trailing junk.
134
< /^ !"#\$%&'()\*/,$d
135
# I'm sure someone who knows Word could improve on this.
137
# Say no to garbage in surveys etc
139
< g/^ *<->[ :|]*no/i i1=+
141
# Web express shortcuts.
142
# Type @ for the list of shortcuts.
143
# They will be printed in the order they appear in this file.
145
# Search engines first.
146
# Type @gg elephant to look up elephant on google.
147
# In the case of google, the post processing commands will be given first,
148
# since they are applied to google in various countries.
150
< g/^Your browser may not have a PDF reader available.$/d
151
< /^{search Next}$/+,$d
152
< 1,/Search took [\d.]+ seconds/d
153
< /^Did you mean:$/,/^Did you mean:$/+2m$
154
< 1,/^Categor[iesy]+:|/d
155
< 1,/{See your message here...}/d
156
<1,/^|Sponsored Link$/d
160
< /^Did you mean:$/,$m0
162
# Access google, for the world, and for a couple of countries.
165
# in the following url, $1 is replaced by your keywords
166
# We may support multiple parameters, eventually, but not right now.
167
url = www.google.com/search?q=$1&hl=n&btnG=Google+Search&meta=
168
# And the post processing commands.
172
desc = google search in Canada
173
url = www.google.ca/search?q=$1&hl=n&btnG=Google+Search&meta=cr%3dcountryCA
177
desc = search freshmeat.net for software
178
url = freshmeat.net/search?q=$1
185
< g/{\(Homepage\|Download\|Subscribe\|Ignore\|Rate\)}/d
186
< g/\(Added\|Updated\|Vitality\):|/d
187
< g/\(Version\|Popularity\|License\):|/d
188
< ,S/No screenshot|//
195
desc = merriam webster dictionary lookup
196
# The * means post method, whereas ? indicates the get method.
197
url = www.m-w.com/cgi-bin/dictionary*book=Dictionary&va=$1
198
< /^{Get the Word of the Day/,$d
199
< 1,/^Click on the Collegiate Thesaurus tab to look up the current word/+2d
201
< 1,/^One entry found for/+d
202
< 1,/^Suggestions for/-d
205
desc = dictionary.com lookup
206
url = www.dictionary.com/search?q=$1&db=%2a
207
# No post-processing yet.
210
desc = stock quotes from yahoo finance
211
url = finance.yahoo.com/q?s=$1&Get+Quotes&d=v1
212
< 1,/^Symbol|Last Trade|Change/d
213
< /^Get a snapshot of today's market action/,$d
215
# First field is date, drop it
217
# third and following fields aren't important
223
< ,S/ 0\.00$/ no change/
225
< g/{[\w ,.-]+},*$/ d