Skip to content

Instantly share code, notes, and snippets.

@joefiorini
Created December 16, 2010 16:44
Show Gist options
  • Save joefiorini/743626 to your computer and use it in GitHub Desktop.
Save joefiorini/743626 to your computer and use it in GitHub Desktop.
Shell function to support multiple accounts for vmail (http://danielchoi.com/software/vmail.html) using one command.
mail() {
if [[ $1 = "p" ]]; then
rvm system exec vmail -c ~/.vmailrc-p
elif [[ $1 = "w" ]]; then
rvm system exec vmail -c ~/.vmailrc-w
else
echo "Please specify an account."
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment