Problem getting alias right
I am trying to implement an alias (or script would do) to make it easier to send an email with mailx.
alias sma='read -p "mail <addr> -r admin@host.net"; mail <addr> -r admin@host.net"$REPLY"' The above is useless because I cannot use the left key to get back to the <addr> to put in the email address. The reason I need to do this is because I answer mail from within a particular user, but mail coming into that user account has to be bounced elsewhere. Thanks. |
methinks a simple shell script, put in $HOME/bin, would work better than an alias?
|
Quote:
alias sma='read -p "[mail addr -r admin@inwtx.net] To: "; mail "$REPLY" -r admin@inwtx.net' #send a mail |
All times are GMT -5. The time now is 06:16 PM. |