From: Richard Whitehouse Date: Sun, 4 Mar 2012 12:46:33 +0000 (+0000) Subject: Initial commit X-Git-Url: https://git.richardwhiuk.com/?a=commitdiff_plain;h=596793e7eff45dec23455d3691affc0448ef491a;p=dotfiles.git Initial commit --- 596793e7eff45dec23455d3691affc0448ef491a diff --git a/bash_logout b/bash_logout new file mode 100644 index 0000000..de4f5f7 --- /dev/null +++ b/bash_logout @@ -0,0 +1,7 @@ +# ~/.bash_logout: executed by bash(1) when login shell exits. + +# when leaving the console clear the screen to increase privacy + +if [ "$SHLVL" = 1 ]; then + [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q +fi diff --git a/bashrc b/bashrc new file mode 100644 index 0000000..837effb --- /dev/null +++ b/bashrc @@ -0,0 +1,106 @@ +# ~/.bashrc: executed by bash(1) for non-login shells. +# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) +# for examples + +# If not running interactively, don't do anything +[ -z "$PS1" ] && return + +# don't put duplicate lines in the history. See bash(1) for more options +# ... or force ignoredups and ignorespace +HISTCONTROL=ignoredups:ignorespace + +# append to the history file, don't overwrite it +shopt -s histappend + +# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) +HISTSIZE=1000 +HISTFILESIZE=2000 + +# check the window size after each command and, if necessary, +# update the values of LINES and COLUMNS. +shopt -s checkwinsize + +# make less more friendly for non-text input files, see lesspipe(1) +[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" + +# set variable identifying the chroot you work in (used in the prompt below) +if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then + debian_chroot=$(cat /etc/debian_chroot) +fi + +# set a fancy prompt (non-color, unless we know we "want" color) +case "$TERM" in + xterm-256color) color_prompt=yes;; + xterm-color) color_prompt=yes;; + xterm) color_prompt=yes;; ## Xterm is a liar. + linux) color_prompt=yes;; + screen) color_prompt=yes;; +esac + +# uncomment for a colored prompt, if the terminal has the capability; turned +# off by default to not distract the user: the focus in a terminal window +# should be on the output of commands, not on the prompt +#force_color_prompt=yes + +if [ -n "$force_color_prompt" ]; then + if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then + # We have color support; assume it's compliant with Ecma-48 + # (ISO/IEC-6429). (Lack of such support is extremely rare, and such + # a case would tend to support setf rather than setaf.) + color_prompt=yes + else + color_prompt= + fi +fi + +if [ "$color_prompt" = yes ]; then + PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' +else + PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' +fi +unset color_prompt force_color_prompt + +# enable color support of ls and also add handy aliases +if [ -x /usr/bin/dircolors ]; then + test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" + alias ls='ls --color=auto' + #alias dir='dir --color=auto' + #alias vdir='vdir --color=auto' + + alias grep='grep --color=auto' + alias fgrep='fgrep --color=auto' + alias egrep='egrep --color=auto' +fi + +# some more ls aliases +alias ll='ls -alF' +alias la='ls -A' +alias l='ls -CF' + +# Alias definitions. +# You may want to put all your additions into a separate file like +# ~/.bash_aliases, instead of adding them here directly. +# See /usr/share/doc/bash-doc/examples in the bash-doc package. + +if [ -f ~/.bash_aliases ]; then + . ~/.bash_aliases +fi + +# enable programmable completion features (you don't need to enable +# this, if it's already enabled in /etc/bash.bashrc and /etc/profile +# sources /etc/bash.bashrc). +if [ -f /etc/bash_completion ] && ! shopt -oq posix; then + . /etc/bash_completion +fi + +export EDITOR=vim +export VISUAL=vim + +if [ -f ~/.bashrc_local ]; then + . ~/.bashrc_local +fi + +if [ "a$STY" == "a" ]; then + screen -x +fi + diff --git a/gitconfig b/gitconfig new file mode 100644 index 0000000..73c6279 --- /dev/null +++ b/gitconfig @@ -0,0 +1,5 @@ +[user] + email = github@richardwhiuk.com + name = Richard Whitehouse +[core] + excludesfile = /home/richardwhiuk/.gitignore_global diff --git a/gitignore_global b/gitignore_global new file mode 100644 index 0000000..655ad80 --- /dev/null +++ b/gitignore_global @@ -0,0 +1,28 @@ +# Compiled Source # + +*.class +*.dll +*.exe +*.o +*.pyc + +# Log + +*.log +*.pcap +*.tr +*.sql + +# vim temp + +*.swp + +# OS + +.DS_Store +.DS_Store? +ehthumbs.db +Icon? +Thumbs.db +.AppleDouble + diff --git a/mailfiter b/mailfiter new file mode 100644 index 0000000..27f035f --- /dev/null +++ b/mailfiter @@ -0,0 +1,1092 @@ +if (/^X-Cam-SpamScore: sss/) +{ + to "Maildir/.Junk" +} + +if (/^From:.*@.*paypal/) +{ + to "Maildir/.Finance.PayPal" +} + +if (/^From:.*@slc\.co\.uk/) +{ + to "Maildir/.Finance" +} + +if( hasaddr("facebook@richardwhiuk.com")) +{ + to "Maildir/.Social Networks.Facebook" +} + +if ( hasaddr("fanfiction@richardwhiuk.com") ) +{ + to "Maildir/.Roleplaying.HP.FanFiction" +} + +if (/^From:.*@.*linkedin\.com/) +{ + to "Maildir/.Social Networks.LinkedIn" +} + +if ( hasaddr("runescape.twitter@richardwhiuk.com") ) +{ + to "Maildir/.Social Networks.Twitter" +} + +if ( hasaddr("twitter@richardwhiuk.com") ) +{ + to "Maildir/.Social Networks.Twitter" +} + +if (/^From:.*@plus\.google\.com/) +{ + to "Maildir/.Social Networks.Google+" +} + +if ( hasaddr("google@richardwhiuk.com") ) +{ + if(/^From:.*@plus\.google\.com/) + { + to "Maildir/.Social Networks.Google+" + } + + if(/^From:.*calendar.*@google/) + { + to "Maildir/.Calendar" + } + + if(/^From:.*@.*calendar.*google/) + { + to "Maildir/.Calendar" + } + + if(/^Sender:.*calendar.*@.*google/) + { + to "Maildir/.Calendar" + } + + to "Maildir/.IT.Google" + +} + +if(/^From:.*@google\.com/) +{ + to "Maildir/.IT.Google" +} + +if (/^From:.*noreply@talks.cam.ac.uk/) +{ + to "Maildir/.Calendar.Cambridge Talks" +} + +if (/^From:.*@gocompare\.com/) +{ + to "Maildir/.Shopping.Gocompare" +} + +if (/^From:.*@.*confused\.com/) +{ + to "Maildir/.Shopping.Confused com" +} + +if (/^From:.*@.*livenation\.co\.uk/) +{ + to "Maildir/.Shopping.Live Nation" +} + +if (/^From:.*@.*ticketmaster\.co\.uk/) +{ + to "Maildir/.Shopping.Ticketmaster" +} + +if (/^From:.*@.*pizzahut\.co\.uk/) +{ + to "Maildir/.Shopping.Pizza Hut" +} + +if (/^From:.*@.*\.pizzaexpress\.com/) +{ + to "Maildir/.Shopping.PizzaExpress" +} + +if (/^From:.*@.*dominos.*\.co\.uk/) +{ + to "Maildir/.Shopping.Dominos" +} + +if (/^From:.*@dealcloud\.co\.uk/) +{ + to "Maildir/.Shopping.dealcloud" +} + +if (/^From:.*@overclockers\.co\.uk/) +{ + to "Maildir/.Shopping.Overclockers" +} + +if ( hasaddr("scan@richardwhiuk.com") ) +{ + to "Maildir/.Shopping.Scan" +} + +if (/^From:.*vouchercloud.com/) +{ + to "Maildir/.Shopping.vouchercloud" +} + +if (/^From:.*@.*tesco/) +{ + to "Maildir/.Shopping.Tesco" +} + +if ( hasaddr("aboutme@richardwhiuk.com") ) +{ + to "Maildir/.IT.Aboutme" +} + +if ( hasaddr("amazon@richardwhiuk.com") ) +{ + to "Maildir/.IT.Amazon" +} + +if (/^From:.*@atutor\.ca/) +{ + to "Maildir/.IT.ATutor" +} + +if (/^From:.*@.*apple\.com/) +{ + to "Maildir/.IT.Apple" +} + +if (/^From:.*@appleinsider\.com/) +{ + to "Maildir/.IT.AppleInsider" +} + +if ( hasaddr("apple@richardwhiuk.com") ) +{ + to "Maildir/.IT.Apple" +} + +if (/^From:.*@apple.com/) +{ + to "Maildir/.IT.Apple" +} + +if (/^From:.*@krcs\.co\.uk/) +{ + to "Maildir/.IT.Apple.KRCS" +} + +if (/^From:.*@.*bbc\.co\.uk/) +{ + to "Maildir/.IT.BBC" +} + +if (/^From:.*@.*canon.*\.co/) +{ + to "Maildir/.IT.Canon" +} + +if (/^From:.*@.*computershopper\.co\.uk/) +{ + to "Maildir/.IT.Computer Shopper" +} + +if (/^From: .*@docebo.org/) +{ + to "Maildir/.IT.Docebo" +} + +if (/^From: .*@docebo.com/) +{ + to "Maildir/.IT.Docebo" +} + +if ( hasaddr("doodle@richardwhiuk.com") ) +{ + to "Maildir/.IT.Doodle" +} + +if ( hasaddr("dropbox@richardwhiuk.com") ) +{ + to "Maildir/.IT.Dropbox" +} + +if ( hasaddr("bioware@richardwhiuk.com") ) +{ + to "Maildir/.IT.EA" +} + +if (/^From:.*@.*ea\.com/) +{ + to "Maildir/.IT.EA" +} + +if ( hasaddr("forrst@richardwhiuk.com") ) +{ + to "Maildir/.IT.Forrst" +} + +if(/^From:.*gamespot@direct\.cnet\.com/) +{ + to "Maildir/.IT.Gamespot" +} + +if (/^From:.*@gamespot\.online\.com/) +{ + to "Maildir/.IT.Gamespot" +} + +if ( hasaddr("github@richardwhiuk.com") ) +{ + to "Maildir/.IT.GitHub" +} + +if ( hasaddr("gizmodo@richardwhiuk.com") ) +{ + to "Maildir/.IT.Gizmodo" +} + +if ( hasaddr("gliffy@richardwhiuk.com") ) +{ + to "Maildir/.IT.Gliffy" +} + +if ( hasaddr("grooveshark@richardwhiuk.com") ) +{ + to "Maildir/.IT.Grooveshark" +} + +if ( hasaddr("heroku@richardwhiuk.com") ) +{ + to "Maildir/.IT.Heroku" +} + +if (/^From:.*@joomla.org/) +{ + to "Maildir/.IT.Joomla" +} + +if ( hasaddr("launchpad@richardwhiuk.com") ) +{ + to "Maildir/.IT.Launchpad" +} + +if (/^From.*@o2-email\.co\.uk/) +{ + to "Maildir/.IT.O2" +} + +if ( hasaddr("putty-announce@lists.tartarus.org") ) +{ + to "Maildir/.IT.PuTTY" +} + +if ( hasaddr("putty@richardwhiuk.com") ) +{ + to "Maildir/.IT.PuTTY" +} + +if ( hasaddr("masterbranch@richardwhiuk.com") ) +{ + to "Maildir/.IT.Masterbranch" +} + +if ( hasaddr("mediawiki-announce@lists.wikimedia.org") ) +{ + to "Maildir/.IT.MediaWiki" +} + +if (/^From:.*@.*microsoft\..*com/) +{ + to "Maildir/.IT.Microsoft" +} + +if ( hasaddr("live@richardwhiuk.com") ) +{ + to "Maildir/.IT.Micrsoft" +} + +if ( hasaddr("MemberPlugin@yahoogroups.com") ) +{ + to "Maildir/.IT.MemberPlugin" +} + +if(/^Sender:.*MemberPlugin@yahoogroups.com/) +{ + to "Maildir/.IT.MemberPlugin" +} + +if( hasaddr("nvidia@richardwhiuk.com") ) +{ + to "Maildir/.IT.Nvidia" +} + +if(/^From:.*@phparch\.com/) +{ + to "Maildir/.IT.PHP.Architect" +} + +if(/^From:.*@.*raxco\.com/) +{ + to "Maildir/.IT.Raxco" +} + +if(/^From: .*@jenkinssoftware\.com/) +{ + to "Maildir/.IT.RakNet" +} + +if(/^From: .*@raknet\.com/) +{ + to "Maildir/.IT.RakNet" +} + +if( hasaddr("dev@lists.roundcube.net") ) +{ + to "Maildir/.IT.Roundcube" +} + +if( hasaddr("cs-raven-discuss@lists.cam.ac.uk") ) +{ + to "Maildir/.IT.Raven" +} + +if( hasaddr("seti@richardwhiuk.com") ) +{ + to "Maildir/.IT.SETI" +} + +if(/^From:.*@spotify/) +{ + to "Maildir/.IT.Spotify" +} + +if(/^From:.*@surveilr\.net/) +{ + to "Maildir/.IT.Surveilr" +} + +if(/^From:.*@ipswitchmail\.com/) +{ + to "Maildir/.IT.WS FTP" +} + +if(/^From:.*@visual-paradigm\.com/) +{ + to "Maildir/.IT.Visual Paradigm" +} + +if (/^From:.*@.*wikia\.com/) +{ + to "Maildir/.IT.Wikia" +} + +if( hasaddr("zdnet@richardwhiuk.com") ) +{ + to "Maildir/.IT.ZDNet" +} + +if(/^From:.*@zonealarm/) +{ + to "Maildir/.IT.ZoneAlarm" +} + +if(/^From:.*headoflegal@me\.com/) +{ + to "Maildir/.Causes.Politics.Head of Legal" +} + +if(/^From:.*@.*1010global\.org/) +{ + to "Maildir/.Causes.Politics.1010" +} + +if(/^From:.*@1010uk\.org/) +{ + to "Maildir/.Causes.Politics.1010" +} + +if (/^From:.*@yestofairervotes\.org/) +{ + to "Maildir/.Causes.Politics.PR" +} + +if (/^From:.*@electoralreform.co.uk/) +{ + to "Maildir/.Causes.Politics.PR" +} + +if (/^From:.*@labouryes.org.uk/) +{ + to "Maildir/.Causes.Politics.PR" +} + +if (/^From:.*cc596@cam\.ac\.uk/) +{ + to "Maildir/.Causes.Politics.PR" +} + +if (/^From:.*The Great Unrest/) +{ + to "Maildir/.Causes.Politics.The Great Unrest" +} + +if (/^From:.*@kingsgateuk\.com/) +{ + to "Maildir/.Causes.Religion.Kings Gate" +} + +if (/^From:.*@offer.pcpro.co.uk/) +{ + exit +} + +if (/^From:.*@.*custompc\.co\.uk/) +{ + to "Maildir/.IT.Custom PC" +} + +if (/^From:.*@experts-exchange\.com/) +{ + to "Maildir/.IT.Experts Exchange" +} + +if (/^From:.*@.*sourceforge/) +{ + to "Maildir/.IT.SourceForge" +} + +if (/^From:.*yearbookmachine\.com/) +{ + to "Maildir/.Societies.Yearbook" +} + +if (/^From: .*mail@cambridgegeeknights\.net/) +{ + to "Maildir/.Societies.Geek Night" +} + +if ( hasaddr("web@homertonball.com") ) +{ + to "Maildir/.Societies.HMB" +} + +if (/^From:.*hus-comms@homerton.cam.ac.uk/) +{ + to "Maildir/.Societies.HUS" +} + +if (/^List-Id: .* /) +{ + to "Maildir/.Societies.HUS" +} + +if (/^Return-Path: /) +{ + to "Maildir/.Societies.HUS" +} + +if (/^To:.*hom-hus-bulletin-.*@lists\.cam\.ac\.uk/) +{ + to "Maildir/.Societies.HUS" +} + +if ( hasaddr("hus-admins@srcf.net") ) +{ + to "Maildir/.Societies.HUS.Website" +} + +if ( hasaddr("hus-admins@srcf.ucam.org") ) +{ + to "Maildir/.Societies.HUS.Website" +} + +if (/^From:.*@alumni\.cam\.ac\.uk/) +{ + to "Maildir/.Admin.Cambridge Alumni" +} + +if (/^From:.*@camtools\.cam\.ac\.uk/) +{ + to "Maildir/.Admin.CamTools" +} + +if ( hasaddr("students-part2@cl.cam.ac.uk") ) +{ + to "Maildir/.Admin.CL" +} + +if ( hasaddr("students-part1b@cl.cam.ac.uk") ) +{ + to "Maildir/.Admin.CL" +} + +if ( hasaddr("students-part1a@cl.cam.ac.uk") ) +{ + to "Maildir/.Admin.CL" +} + +if ( hasaddr("students-all@cl.cam.ac.uk") ) +{ + to "Maildir/.Admin.CL" +} + +if ( hasaddr("student-admin@cl.cam.ac.uk") ) +{ + to "Maildir/.Admin.CL" +} + +if ( hasaddr("hom-resnet@lists.cam.ac.uk") ) +{ + to "Maildir/.Admin.Homerton IT" +} + +if (/^Organization: Homerton College/) +{ + to "Maildir/.Admin.Homerton" +} + +if (/^From:.*library@homerton\.cam\.ac\.uk/) +{ + to "Maildir/.Admin.Homerton" +} + +if (/^From: .*roll@homerton.cam.ac.uk/) +{ + to "Maildir/.Admin.Homerton.Alumni" +} + +if ( hasaddr("hom-alumni@lists.cam.ac.uk") ) +{ + to "Maildir/.Admin.Homerton.Alumni" +} + +if ( hasaddr("cs-nld@lists.cam.ac.uk") ) +{ + to "Maildir/.Admin.Computing Service" +} + +if ( hasaddr("soc-cub@lists.cam.ac.uk") ) +{ + to "Maildir/.Societies.Sport.Bowmen" +} + +if ( hasaddr("soc-cuibs@lists.cam.ac.uk") ) +{ + to "Maildir/.Societies.CUIBS" +} + +if ( hasaddr("soc-sparrow@lists.cam.ac.uk") ) +{ + to "Maildir/.Societies.Sparrowism" +} + +if (/List-Id: SRCF admin /) +{ + to "Maildir/.Societies.SRCF.Sysadmin.Archive" +} + +if ( hasaddr("soc-srcf-users@lists.cam.ac.uk") ) +{ + to "Maildir/.Societies.SRCF" +} + +if(/^From: soc-srcf-support-owner@lists.cam.ac.uk/) +{ + to "Maildir/.Societies.SRCF.List Admin" +} + +if(/^From: soc-srcf-maintenance-request@lists.cam.ac.uk/) +{ + to "Maildir/.Societies.SRCF.List Admin" +} + +if (/^List-Id: .* /) +{ + to "Maildir/.Societies.SRCF.List Admin" +} + +if ( hasaddr("webmaster@srcf.net") ) +{ + if(/^From:.*SRCF Wiki/) + { + to "Maildir/.Societies.SRCF.Wiki" + } +} + +if ( hasaddr("webmaster@srcf.ucam.org") ) +{ + if(/^From:.*SRCF Wiki/) + { + to "Maildir/.Societies.SRCF.Wiki" + } +} + +if ( hasaddr("soc-srcf-support@lists.cam.ac.uk") ) +{ + to "Maildir/.Societies.SRCF.Support" +} + +if ( hasaddr("support@srcf.ucam.org") ) +{ + to "Maildir/.Societies.SRCF.Support" +} + +if ( hasaddr("support@srcf.net") ) +{ + to "Maildir/.Societies.SRCF.Support" +} + +if ( hasaddr("soc-srcf-users-owner@lists.cam.ac.uk") ) +{ + to "Maildir/.Societies.SRCF.Sysadmin" +} + +if ( hasaddr("soc-srcf-admin@lists.cam.ac.uk") ) +{ + to "Maildir/.Societies.SRCF.Sysadmin" +} + +if (/List-Id: .* /) +{ + to "Maildir/.Societies.CUER" +} + +if ( hasaddr("press@cuer.co.uk") ) +{ + to "Maildir/.Societies.CUER" +} + +if ( hasaddr("cuer-webmaster@srcf.net") ) +{ + to "Maildir/.Societies.CUER" +} + +if ( hasaddr("soc-cuer-active@lists.cam.ac.uk") ) +{ + to "Maildir/.Societies.CUER" +} + +if ( hasaddr("outreach@cuer.co.uk") ) +{ + to "Maildir/.Societies.CUER.Outreach" +} + +if ( hasaddr("soc-cuer-outreach@lists.cam.ac.uk") ) +{ + to "Maildir/.Societies.CUER.Outreach" +} + +if ( hasaddr("cuer-admins@srcf.net") ) +{ + to "Maildir/.Societies.CUER.Website" +} + +if ( hasaddr("cuer-admins@srcf.ucam.org") ) +{ + to "Maildir/.Societies.CUER.Website" +} + +if (/^From:.*wordpress@cuer\.co\.uk/) +{ + to "Maildir/.Societies.CUER.Website" +} + +if (/^From:.*@wordpress\.com/) +{ + if(/^Subject:.*\[CUER SunSpot\]/) + { + to "Maildir/.Societies.CUER.Website.Blog" + } +} + +if (/^From:.*@varsitytrip.com/) +{ + to "Maildir/.Societies.Varsity Trip" +} + +if (/^From:.*@offthepiste\.com/) +{ + to "Maildir/.Societies.Varsity Trip.Off the Piste" +} + +if (/^From:.*@kililive.com/) +{ + to "Maildir/.Music.Kililive" +} + +if (/^To:.*root@.*whiuk\.com/) +{ + if(/^From:.*Jasper/) + { + to "Maildir/.Projects.Cluster.Jasper" + } + + if(/^From:.*Emerald/) + { + to "Maildir/.Projects.Cluster.Emerald" + } + + if(/^From:.*Onyx/) + { + to "Maildir/.Projects.Cluster.Onyx" + } + + if(/^From:.*Scarlet/) + { + to "Maildir/.Projects.Cluster.Scarlet" + } + + if(/^From:.*root@.*whiuk\.com/) + { + if(/^Subject:.*Cron.*onyx/) + { + to "Maildir/.Projects.Cluster.Onyx.Cron" + } + + if(/^Subject:.*Cron.*scarlet/) + { + to "Maildir/.Projects.Cluster.Scarlet.Cron" + } + + if(/^Subject:.*Cron.*jasper/) + { + to "Maildir/.Projects.Cluster.Jasper.Cron" + } + + if(/^Subject:.*\/dev\/md.*onyx/) + { + to "Maildir/.Projects.Cluster.Onyx.mdadm" + } + + } + + if(/^From:.*munin@.*whiuk.com/) + { + if(/^Message-Id:.*scarlet/) + { + to "Maildir/.Projects.Cluster.Munin" + } + } +} + +if(/^From:.*root@.*whiuk.com/) +{ + if(/^Subject: Cron.*scarlet/) + { + to "Maildir/.Projects.Cluster.Scarlet.Cron" + } +} + +if (/^From:.*@retrosnub.co.uk/) +{ + to "Maildir/.Hosting.Retrosnub" +} + +if (/^From:.*@netfirms-inc\.com/) +{ + to "Maildir/.Hosting.Netfirms" +} + +if (/^From:.*@netfirms\.com/) +{ + to "Maildir/.Hosting.Netfirms" +} + +if (/^From:.*@123-reg\.co\.uk/) +{ + to "Maildir/.Hosting.123-reg" +} + +if (/^From:.*@.*bravenet\.com/) +{ + to "Maildir/.Hosting.Bravenet" +} + +if (/^List-Id: .* /) +{ + to "Maildir/.Societies.SciSoc" +} + +if ( hasaddr("soc-scisoc@lists.cam.ac.uk") ) +{ + to "Maildir/.Societies.SciSoc" +} + +if ( hasaddr("soc-cuhwc@lists.cam.ac.uk") ) +{ + to "Maildir/.Societies.HWC" +} + +if ( hasaddr("soc-cuic@lists.cam.ac.uk") ) +{ + to "Maildir/.Societies.CUIC" +} + +if ( hasaddr("soc-futures@lists.cam.ac.uk") ) +{ + to "Maildir/.Societies.Futures" +} + +if (/^From:.*@adctheatre\.com/) +{ + to "Maildir/.Societies.ADC" +} + +if (/beyondprofit\.org\.uk/) +{ + to "Maildir/.Societies.Beyond Profit" +} + +if ( hasaddr("wsc@yahoogroups.com") ) +{ + to "Maildir/.Societies.CUER.WSC" +} + +if (/^Sender:.*wsc@yahoogroups\.com/) +{ + to "Maildir/.Societies.CUER.WSC" +} + +if ( hasaddr("soc-cuer-banter@lists.cam.ac.uk") ) +{ + to "Maildir/.Societies.CUER.Banter" +} + +if (/^List-Id: /) +{ + to "Maildir/.Societies.CUCATS" +} + +if ( hasaddr("cucats-members@srcf.ucam.org") ) +{ + to "Maildir/.Societies.CUCATS" +} + +if ( hasaddr("cucats-executive-owner@srcf.ucam.org") ) +{ + to "Maildir/.Societies.CUCATS.List Admin" +} + +if ( hasaddr("cucats-members-owner@srcf.ucam.org") ) +{ + to "Maildir/.Societies.CUCATS.List Admin" +} + +if ( hasaddr("cucats-executive@srcf.ucam.org") ) +{ + to "Maildir/.Societies.CUCATS.Executive" +} + +if (/^To:.*cusu-ugrad.*@lists\.cam\.ac\.uk/) +{ + to "Maildir/.Societies.CUSU" +} + +if ( hasaddr("c452scanner@cusu.cam.ac.uk") ) +{ + to "Maildir/.Societies.CUSU.Sysadmin.Scanner" +} + +if ( hasaddr("cert@cusu.cam.ac.uk") ) +{ + to "Maildir/.Societies.CUSU.Sysadmin" +} + +if ( hasaddr("sysadmins@cusu.cam.ac.uk") ) +{ + if (/^Subject:.*Munin/) + { + to "Maildir/.Societies.CUSU.Sysadmin.Munin" + } + + if (/^Subject:.*package updates/) + { + to "Maildir/.Societies.CUSU.Sysadmin.APT" + } + + if (/^Subject:.*apt-listchanges/) + { + to "Maildir/.Societies.CUSU.Sysadmin.APT" + } + + if (/^Subject:.*Cron.*tw_sched.*/) + { + to "Maildir/.Societies.CUSU.Sysadmin.RAID" + } + + to "Maildir/.Societies.CUSU.Sysadmin" +} + +if ( hasaddr("computing@cusu.cam.ac.uk") ) +{ + to "Maildir/.Societies.CUSU.Sysadmin" +} + +if ( hasaddr("pottersplace3@yahoogroups.com") ) +{ + to "Maildir/.Roleplaying.HP.Potters Place" +} + +if ( hasaddr("HPforGrownups@yahoogroups.com") ) +{ + to "Maildir/.Roleplaying.HP.HPFGU" +} + +if (/^From:.*@startrek\..*/) +{ + to "Maildir/.Roleplaying.Trek" +} + +if (/^Sender:.*ufprecruitmentcenter@yahoogroups\.com/) +{ + to "Maildir/.Roleplaying.Trek.Recruit" +} + +if ( hasaddr("ufprecruitmentcenter@yahoogroups.com") ) +{ + to "Maildir/.Roleplaying.Trek.Recruit" +} + +if ( hasaddr("announce@ucip.org") ) +{ + to "Maildir/.Roleplaying.Trek.UCIP" +} + +if ( hasaddr("everyone-owner@lists.hindfamily.net") ) +{ + to "Maildir/.Family.List" +} + +if ( hasaddr("everyone@lists.hindfamily.net") ) +{ + to "Maildir/.Family.List" +} + +if ( hasaddr("everyone@hindfamily.net") ) +{ + to "Maildir/.Family.List" +} + +if (/^From:.*@bravenewtalent.com/) +{ + to "Maildir/.Careers.BraveNewTalent" +} + +if ( hasaddr("click@careers.cam.ac.uk") ) +{ + to "Maildir/.Careers.Cambridge" +} + +if (/^From:.*@careers\.cam\.ac\.uk/) +{ + to "Maildir/.Careers.Cambridge" +} + +if (/^From:.*@.*milkround\.com/) +{ + to "Maildir/.Careers.Milkround" +} + +if (/^From:.*@.*targetjobs\./) +{ + to "Maildir/.Careers.TargetJobs" +} + +if (/^From:.*@grb.uk.com/) +{ + to "Maildir/.Careers.GRB Team" +} + +if(/^From:.*@steampowered.com/) +{ + to "Maildir/.Games.Steam" +} + +if(/^From:.*@quakelive\.com/) +{ + to "Maildir/.Games.Quake Live" +} + +if(/^From:.*@.*runescape\.com/) +{ + to "Maildir/.Games.Jagex.Runescape" +} + +if(/^From:.*@.*jagex\.com/) +{ + to "Maildir/.Games.Jagex" +} + +if(/^From:.*@.*fantasy\.premierleague\.com/) +{ + to "Maildir/.Games.Fantasy Football" +} + +if(/^From:.*@superbru\.com/) +{ + to "Maildir/.Games.Fantasy Football" +} + +if( hasaddr("poker@richardwhiuk.com") ) +{ + to "Maildir/.Games.Poker" +} + +if(/^From:.*@innogames\.com/) +{ + to "Maildir/.Games.Tribal Wars" +} + +if(/^From:.*@wurmonline\.com/) +{ + to "maildir/.Games.Wurm Online" +} + +if( hasaddr("blizzard@richardwhiuk.com") ) +{ + to "Maildir/.Games.Blizzard" +} + +# Comics + +if( hasaddr("lfgcomic@richardwhiuk.com") ) +{ + to "Maildir/.Comics.LFG" +} + +if(/^From:.*@ucasmedia.com/) +{ + to "Maildir/.School.UCAS" +} + +if(/^From:.*@.*nationalrail\.co\.uk/) +{ + to "Maildir/.Travel.National Rail" +} + +if(/^From:.*@.*16-25railcard\.co\.uk/) +{ + to "Maildir/.Travel.Railcard" +} + +if(/^From:.*@.*tfl\.gov\.uk/) +{ + to "Maildir/.Travel.TFL" +} + +# SPAM + +if(/^From:.*@datingdirectaffinity\.com/) +{ + exit +} + +if(/^From:.*@.*dealcloud\.co\.uk/) +{ + exit +} + diff --git a/screenrc b/screenrc new file mode 100644 index 0000000..41061c6 --- /dev/null +++ b/screenrc @@ -0,0 +1,9 @@ +caption always +caption string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]' + +vbell off +startup_message off +defscrollback 1000 + +shell /bin/bash +source .screenrc.local diff --git a/selected_editor b/selected_editor new file mode 100644 index 0000000..c85d073 --- /dev/null +++ b/selected_editor @@ -0,0 +1,2 @@ +# Generated by /usr/bin/select-editor +SELECTED_EDITOR="/usr/bin/vim.basic"