#  .ebrc: sample configuration file for edbrowse (version 3.5.4 or above)

#  email account; you may have several.
#  a gmail account, most people have one of these now adays.
#  This is pop3 access. To fetch and read your mail from this account:
#  edbrowse -fm1
mail {
inserver = pop.gmail.com
outserver = smtp.gmail.com
secure
login = edbrowse
password = rhinoceros
from = Donald Duck
reply = edbrowse@gmail.com
}

#  Imap access to your gmail account.
#  If this remains the second email account in this file, then imap access is:
#  edbrowse -f2
mail {
imap
inserver = imap.gmail.com
outserver = smtp.gmail.com
secure
login = edbrowse
password = rhinoceros
from = Donald Duck
reply = edbrowse@gmail.com
}

#  Add address book.
#adbook=/home/mylogin/outside/adbook

#  inbox. Should be an absolute path.
#maildir = /home/mylogin/mbox

#  Place downloaded files here. Should be an absolute path.
# downdir = /home/mylogin/downloads

#  The cookie jar - where we store the http cookies.
#jar = /home/mylogin/outside/cookies

#  file of ssl certificates
# certfile = /etc/ssl/cert.pem
# certfile = /etc/pki/tls/cert.pem

#  wait 30 seconds for a response from a web server
webtimer = 30
#  wait 3 minutes for a response from a mail server
mailtimer = 180

#  Redirect mail based on the sender, or the destination account.
fromfilter {
fred flintstone > fredmail
fred.flintstone@bedrock.us > fredmail
jerk@hotmail.com > x
word@m-w.com > -wod
}

# tofilter { }

#  Describe the mime types and the plugins to run them.
plugin {
type = audio/basic
desc = audio file in a wave format
suffix = wav,voc,au,ogg
content = audio/x-wav
#  %i is the temp input file generated by edbrowse
program = play -q %i
}

plugin {
type = audio/mp3
desc = audio file in mp3 format
suffix = mp3
content = audio/mpeg
program = mpg123 -q -C %i
}

#  this plugin renders a file, rather than "playing" the file.
plugin {
type = pdf
desc = pdf file
suffix = pdf
content = application/pdf
program = pdftohtml -i -noframes %i %o >/dev/null
#  indicate the output is in html, rather than text
outtype = H
}

#  Every time you fetch a web page from the internet,
#  your browser identifies itself to the host.
agent = Lynx/2.8.4rel.1 libwww-FM/2.14
agent = Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90)

#  Ok, we're ready to write our first script.
#  How about a function to access google.
#  So   <gg elephants tigers   will call up google,
#  looking for elephants and tigers together.
function+gg {
b http://www.google.com
/<>/ i=~0
/</ i1*
/^About/+2
}

#  mariam-webster dictionary lookup, ~1 is parameter 1, the word to look up.
#  <mw elephant
function+mw {
b http://www.merriam-webster.com/dictionary/~1
}

#  This function is run at edbrowse startup.
function:init {
# make directories writable, so you can rename or delete files
dw
# Display the size of each file in a directory listing
ls=s
# other personal settings
}

# and much more...
