-
-
Save n0nick/2397607 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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mail() { | |
ACCT="$1" | |
shift | |
if [[ $ACCT = "p" ]]; then | |
sh -c cd ~/.vmail ; vmail -c ~/.vmailrc-p "$@" | |
elif [[ $ACCT = "w" ]]; then | |
sh -c cd ~/.vmail ; 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