#  .ebrc: sample configuration file for edbrowse

#  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
# If missing, downloads take place wherever you are.

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

# directory holding the edbrowse cache, and the size of the cache in megabytes
# cachedir = /b3/ebcache
# cachesize = 200

#  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
}

#  Describe the mime types and the plugins to run them.
# Here an example, commented out, then a reference to the
# shared directory that has an assortment of standard plugins.
# 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, or the url
# program = play -q %i
# }
optinclude = /usr/share/edbrowse/plugin
# in case you installed this yourself
optinclude = /usr/local/share/edbrowse/plugin

#  Every time you fetch a web page from the internet,
#  your browser identifies itself to the host.
# Here are some alternate agents, default is edbrowse
agent = Lynx/2.8.4rel.1 libwww-FM/2.14
agent = Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)

#  Ok, we're ready to write our first script.
#  How about a function to access duckduckgo.
#  So   <ddg elephants tigers   will call up duckduckgo,
#  looking for elephants and tigers together.
nojs = duckduckgo.com
        function:ddg {
# duckduckgo lookup
        b https://www.duckduckgo.com/
        /<>/ i1=~0
        i2*
        g/h2 Ad/X
        /h2 {/
        }

nojs = merriam-webster.com
function+mw {
#  mariam-webster dictionary lookup
b http://www.merriam-webster.com/dictionary/~0
sw+
/spelling suggestion/X
if(*){
/{.*}?/
} else {
/^h1/X
/^h2/
}
}

function+unf {
# call up the unformatted (raw) version of an email
/^Unformat/X
etmp
r+1@$
s/.* //
s/\..*//
s;^;/home/mylogin/.trash/rawmail/;
W !cat '.
b
}

#  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
# character limit when displaying a line; lines can be arbitrarily long inside.
ll 700
# turn off javascript, until you are use to the basic functionality
js-
# other personal settings
}

